myCRMSIM

myCRMSIM API 1.0

Get Started
​
No token

Send the user to the install URL

GET

/integrations/install/{client_id}?redirect_uri={redirect_uri}&state={state}

Start the OAuth authorization code flow.

Auth: none (public)

This is a dashboard URL (https://app.mycrmsim.com, or the white-label dashboard host), not an API-host endpoint — you redirect the user's browser here. They see a consent page listing the scopes your app requests. If they are not logged in, myCRMSIM redirects them to the login page first and returns them here after sign-in. When they click Install, the browser is redirected to your redirect_uri with a single-use ?code= query parameter, plus state echoed verbatim when you sent one. If they click Cancel, the browser is redirected to your redirect_uri with ?error=access_denied (and the same state) and no code is issued.

Parameters

NameInTypeRequiredDescription
client_id
path
string
yes
The public client_id of your app (issued when your app is registered).
redirect_uri
query
string
yes
Where myCRMSIM should send the user after consent. Must match the redirect_uri registered on the app.
state
query
stringnoOpaque value generated by your app (CSRF token). It is not interpreted by myCRMSIM and is returned unchanged, URL-encoded, as state on both the success and the cancel redirect. Verify it on your callback before exchanging the code.

Responses

StatusWhen
302
On Install: redirect to your redirect_uri with ?code=<32-char hex> (and your state)
302
On Cancel: redirect to your redirect_uri with error=access_denied (and your state); no code is issued
Request
curl -X GET "https://backend.mysmsgateway.app/integrations/install/{client_id}?redirect_uri={redirect_uri}&state={state}"
Responses
On Install: redirect to your redirect_uri with ?code=<32-char hex> (and your state)
{
  "Location": "https://your-app.com/oauth/callback?code=4f8a7e1d2c9b3a5f6e0d1c2b7a8f9e6d&state=xyz123"
}
Try It!
Path parameters

The public client_id of your app (issued when your app is registered).

Query parameters

Where myCRMSIM should send the user after consent. Must match the redirect_uri registered on the app.

Opaque value generated by your app (CSRF token). It is not interpreted by myCRMSIM and is returned unchanged, URL-encoded, as `state` on both the success and the cancel redirect. Verify it on your callback before exchanging the code.

Request URL
GEThttps://backend.mysmsgateway.app/integrations/install/%7Bclient_id%7D&state={state}
Next

Exchange code for tokens »