POST
/
api
/
auth
/
clients
/
{clientId}
/
secrets
curl --request POST \
  --url http://localhost:55001/api/auth/clients/{clientId}/secrets \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "name": "<string>",
  "metadata": {}
}'
{
  "data": {
    "name": "<string>",
    "metadata": {},
    "id": "<string>",
    "lastDigits": "<string>",
    "clear": "<string>"
  }
}

Authorizations

Authorization
string
header
required

The access token received from the authorization server in the OAuth 2.0 flow.

Path Parameters

clientId
string
required

Client ID

Body

application/json

Response

200 - application/json

Created secret

The response is of type object.