Skip to Content
Docs

Create a client grant

POST
/client-grants

required scopes: contextual:client-grants:create

Authorization

jwt
headerAuthorizationBearer <JWT>

Header Parameters

Request Body

application/json
  1. body
client_id*string
resource_server_id*string
scopes*array<string|>

Response Body

application/json
  1. response
id*string
client_id*string
resource_server_id*string
audience?string
scopes*array<string|>
_metaData*
Example Request
curl -X POST 'https://auth.your-tenant-id.my.contextual.io/api/v1/client-grants' \  -H 'Content-Type: application/json' \  -d '{  "client_id": "string",  "resource_server_id": "string",  "scopes": [    "string"  ]}'
Example Response
{  "id": "string",  "client_id": "string",  "resource_server_id": "string",  "audience": "string",  "scopes": [    "string"  ],  "_metaData": {    "id": "string",    "createdAt": "2019-08-24T14:15:22Z",    "updatedAt": "2019-08-24T14:15:22Z"  }}