Initiate sudo authentication

POST/auth/sudo/start

Base URL: https://api.tinkermode.com

Request a sudo authorization token for an authorized project administrator (the "sudoer"). This is usually done from some kind of "admin server" created for administrators to manage their applications or support their users. The returned token should be passed onto the sudoer immediately to complete the sudo process. This API call is not allowed for BYOU projects.

Authentication

Send an Authorization header of the form ModeCloud <AUTH_CODE>.

Must contain a project API key with "Admin" privileges.

Request body

Content type: application/x-www-form-urlencoded

PropertyTypeRequiredConstraintsDescription
sudoerstringYesIdentity of the administrator requesting sudo access.
targetAppIdstringYesID of the app expected to be used to access the API.
targetUserIdintegerYesUser ID of the sudo target.

Responses

200 Sudo authorization token issued and returned in the response body.

Content type: application/json

PropertyTypeRequiredConstraintsDescription
tokenstringNoread-only (server-generated)The sudo authorization token itself.

401 Authorization is required to access this resource.

Content type: application/json

PropertyTypeRequiredConstraintsDescription
dataobjectNoread-only (server-generated)Any relevant data related to error.
reasonstringYesread-only (server-generated)Reason of error.

403 Request failed because of invalid data or denied permission.

Content type: application/json

PropertyTypeRequiredConstraintsDescription
dataobjectNoread-only (server-generated)Any relevant data related to error.
reasonstringYesread-only (server-generated)Reason of error.

429 Request failed because of rate limit.

Content type: application/json

PropertyTypeRequiredConstraintsDescription
dataobjectNoread-only (server-generated)Any relevant data related to error.
reasonstringYesread-only (server-generated)Reason of error.

500 An unexpected error has occurred.

Content type: application/json

PropertyTypeRequiredConstraintsDescription
dataobjectNoread-only (server-generated)Any relevant data related to error.
reasonstringYesread-only (server-generated)Reason of error.

503 The service is temporarily unavailable.

Content type: application/json

PropertyTypeRequiredConstraintsDescription
dataobjectNoread-only (server-generated)Any relevant data related to error.
reasonstringYesread-only (server-generated)Reason of error.