useGrant
Clients

Create client

Create a new client within a specified provider.

POST
/v1/providers/{providerId}/clients

Authorization

AuthorizationRequiredBearer <token>

In: header

Request Body

application/jsonRequired
nameRequiredstring

Name of the client.

audienceRequiredstring

Audience of the client.

Path Parameters

providerIdRequiredstring

Unique identifier for a provider.

Format: "uuid"
curl -X POST "https://sdk.usegrant.dev/v1/providers/497f6eca-6276-4993-bfeb-53cbbbba6f08/clients" \
  -H "Authorization: Bearer <token>" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "Acme Auth Client",
    "audience": "sts.amazonaws.com"
  }'

Client created successfully.

{
  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
  "name": "Acme Auth Client",
  "audience": "sts.amazonaws.com"
}