POST/v2/users/{user-id}/impersonateImpersonate user

Allow businesses to create an OAuth Grant on behalf of one of their users
headerAuthorizationAuthentication token (bearer token or API key).
{
"client" : String,
"scope" : String
}

Response

status401Invalid authentication token
{
"code" : String, UUID 4 formatted (e.g. "a426e157-8a5c-456a-8865-bec6394867ab"),
"expiration" : Date/time with a timezone (ISO 8601, e.g. "2022-06-23T13:53:02+02:00")
}

Example: Create an OAuth grant code without the right client

POST/v2/users/1/impersonate

headerAuthorizationBearer 5bac6931-15f1-43f6-b853-5b6781725007
{
"client": "BoldApp",
"scope": "read"
}

Response

status400
headerAccess-Control-Expose-Headersauthorization, content-type
headerAccess-Control-Allow-Headersauthorization, content-type
headerAccess-Control-Allow-MethodsGET, POST, DELETE, OPTIONS, PUT
headerAccess-Control-Allow-Origin*
headerStrict-Transport-Securitymax-age=31536000; includeSubDomains
headerX-Frame-OptionsSAMEORIGIN
headerX-Content-Type-Optionsnosniff
headerX-XSS-Protection1; mode=block
headerContent-Security-Policydefault-src 'none'; frame-ancestors 'none'; base-uri 'none'; form-action 'none'
headerReferrer-Policyno-referrer
headerFeature-Policyself
headerPermissions-policyinterest-cohort=()
{
"message": "Impersonate requires an organization level authorization",
"errorMessage": "Impersonate requires an organization level authorization"
}