Clients
Create Client
POST
/
clients
Copy
curl --request POST \
--url https://api.identety.dev/clients \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '{
"name": "<string>",
"type": "public",
"redirectUris": [
"<string>"
],
"allowedScopes": [
"<string>"
],
"allowedGrants": [
"authorization_code"
],
"settings": {}
}'
Copy
{
"id": "uuid-123",
"clientId": "client_abc123",
"clientSecret": "secret_xyz789",
"name": "My Client",
"type": "public",
"redirectUris": [
"https://example.com/callback"
],
"allowedScopes": [
"openid",
"profile"
],
"allowedGrants": [
"authorization_code"
],
"isActive": true,
"settings": {
"tokenEndpointAuthMethod": "client_secret_basic",
"accessTokenTTL": 3600
}
}
Authorizations
Body
application/json
Response
201
application/json
Client created successfully.
The response is of type object
.
Copy
curl --request POST \
--url https://api.identety.dev/clients \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '{
"name": "<string>",
"type": "public",
"redirectUris": [
"<string>"
],
"allowedScopes": [
"<string>"
],
"allowedGrants": [
"authorization_code"
],
"settings": {}
}'
Copy
{
"id": "uuid-123",
"clientId": "client_abc123",
"clientSecret": "secret_xyz789",
"name": "My Client",
"type": "public",
"redirectUris": [
"https://example.com/callback"
],
"allowedScopes": [
"openid",
"profile"
],
"allowedGrants": [
"authorization_code"
],
"isActive": true,
"settings": {
"tokenEndpointAuthMethod": "client_secret_basic",
"accessTokenTTL": 3600
}
}
Assistant
Responses are generated using AI and may contain mistakes.