Send the user to the install URL
/integrations/install/{client_id}?redirect_uri={redirect_uri}&state={state}
Start the OAuth authorization code flow.
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
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| 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 | string | no | 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. |
Responses
| Status | When |
|---|---|
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 |
curl -X GET "https://backend.mysmsgateway.app/integrations/install/{client_id}?redirect_uri={redirect_uri}&state={state}"{
"Location": "https://your-app.com/oauth/callback?code=4f8a7e1d2c9b3a5f6e0d1c2b7a8f9e6d&state=xyz123"
}The public client_id of your app (issued when your app is registered).
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.
Exchange code for tokens »
