shield logo
Docs
Shield

Create API User

POST
/realms/{REALM_ID}/clients/{CLIENT_ID}/api-users

Create API User

/realms/{REALM_ID}/clients/{CLIENT_ID}/api-users

The Authorization access token

Authorization

Authorization
Required
Bearer <token>

In: header

Request Body

application/jsonOptional

bodyobject

Header Parameters

api-keystring

Path Parameters

REALM_ID
Required
string

CLIENT_ID
Required
string

curl -X POST "http://{{base_url}}/realms/string/clients/string/api-users" \
  -H "api-key: {{MASTER_API_KEY}}" \
  -H "Authorization: Bearer <token>" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "Portal preprod",
    "role": "client",
    "access": "write",
    "expires": "1h"
  }'

Successful response

Edit on GitHub

Last updated on