POST
/
auth
/
client-credentials
Create Client Credential
curl --request POST \
  --url https://api.streamkap.com/auth/client-credentials \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "description": "<string>",
  "service_id": "<string>",
  "role_ids": [
    "<string>"
  ]
}'
{
  "created_by_user": {
    "id": "<string>",
    "email": "<string>",
    "name": "<string>",
    "profile_picture_url": "<string>",
    "phone_number": "<string>",
    "tenant_id": "<string>",
    "created_at": "<string>",
    "last_login": "<string>"
  },
  "client_id": "<string>",
  "description": "<string>",
  "created_at": "<string>",
  "roles": [
    {
      "id": "<string>",
      "key": "<string>",
      "name": "<string>",
      "description": "<string>",
      "created_at": "<string>",
      "updated_at": "<string>"
    }
  ],
  "service_id": "<string>",
  "secret": "<string>"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
role_ids
string[]
required
Minimum length: 1
description
string | null
service_id
string | null

Response

Successful Response

created_by_user
object | null
required
client_id
string
required
roles
Role · object[]
required
service_id
string | null
required
secret
string
required
description
string | null
created_at