useGrant
Domains

Add domain

Add a new domain for the provider.

POST
/v1/providers/{providerId}/domains

Authorization

AuthorizationRequiredBearer <token>

In: header

Request Body

application/jsonRequired
domainRequiredstring

The domain to create.

Path Parameters

providerIdRequiredstring

Unique identifier for a provider.

Format: "uuid"
curl -X POST "https://sdk.usegrant.dev/v1/providers/497f6eca-6276-4993-bfeb-53cbbbba6f08/domains" \
  -H "Authorization: Bearer <token>" \
  -H "Content-Type: application/json" \
  -d '{
    "domain": "usegrant.dev"
  }'

Domain added successfully.

{
  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
  "name": "string",
  "verified": true
}