JAI CRM
Home Documentation API Mobile app endpoints

Mobile app endpoints

10 endpoints: Rules, Pending, Requests, Request and more.

Every endpoint in Mobile app: 10 operations across 6 resources. Each one takes the same API key and returns the same error shapes as the rest of the API; see Authentication and Errors and limits.

Every path below is relative to https://app.jaicrm.ai. A key only reaches what it was granted when it was created, an endpoint you cannot use answers 403 rather than hiding.

Rules

GET/api/approvals/rules

List rules

curl -X GET https://app.jaicrm.ai/api/approvals/rules 
  -H 'Authorization: Bearer YOUR_API_KEY'

POST/api/approvals/rules

Create a rule

curl -X POST https://app.jaicrm.ai/api/approvals/rules 
  -H 'Authorization: Bearer YOUR_API_KEY'

PATCH/api/approvals/rules/{id}

Change a rule

ParameterTypeRequiredNotes
idstringRequiredThe record’s id.
curl -X PATCH https://app.jaicrm.ai/api/approvals/rules/RECORD_ID 
  -H 'Authorization: Bearer YOUR_API_KEY'

DELETE/api/approvals/rules/{id}

Delete a rule

ParameterTypeRequiredNotes
idstringRequiredThe record’s id.
curl -X DELETE https://app.jaicrm.ai/api/approvals/rules/RECORD_ID 
  -H 'Authorization: Bearer YOUR_API_KEY'

Requests

GET/api/approvals/requests

List requests

curl -X GET https://app.jaicrm.ai/api/approvals/requests 
  -H 'Authorization: Bearer YOUR_API_KEY'

POST/api/approvals/requests/{id}/decide

Create a decide

ParameterTypeRequiredNotes
idstringRequiredThe record’s id.
curl -X POST https://app.jaicrm.ai/api/approvals/requests/RECORD_ID/decide 
  -H 'Authorization: Bearer YOUR_API_KEY'

Pending

GET/api/approvals/pending

List pending

curl -X GET https://app.jaicrm.ai/api/approvals/pending 
  -H 'Authorization: Bearer YOUR_API_KEY'

Request

POST/api/approvals/request

Create a request

curl -X POST https://app.jaicrm.ai/api/approvals/request 
  -H 'Authorization: Bearer YOUR_API_KEY'

Ask

POST/api/approvals/ask

Create an ask

curl -X POST https://app.jaicrm.ai/api/approvals/ask 
  -H 'Authorization: Bearer YOUR_API_KEY'

Android

GET/api/app/android

List android

curl -X GET https://app.jaicrm.ai/api/app/android 
  -H 'Authorization: Bearer YOUR_API_KEY'

Something missing or wrong here? Tell us. A question that needed asking usually means a page that needed writing.