useGrant
Tenants

Create tenant provider

Create a new provider for a tenant.

POST
/v1/tenants/{tenantId}/providers

Authorization

AuthorizationRequiredBearer <token>

In: header

Request Body

application/jsonRequired
urlRequiredstring

The URL of the provider.

fingerprintsRequiredarray<string>

The fingerprints of the provider.

audienceRequiredstring

The audience of the provider.

earliestIssuanceTimeAllowedRequirednumber

The earliest issuance time allowed for the provider.

Path Parameters

tenantIdRequiredstring

Unique identifier for a tenant.

Format: "uuid"
curl -X POST "https://sdk.usegrant.dev/v1/tenants/497f6eca-6276-4993-bfeb-53cbbbba6f08/providers" \
  -H "Authorization: Bearer <token>" \
  -H "Content-Type: application/json" \
  -d '{
    "url": "https://usegrant.dev",
    "fingerprints": [
      "990F4193972F2BECF12DDEDA5237F9C952F20D9E"
    ],
    "audience": "sts.amazonaws.com",
    "earliestIssuanceTimeAllowed": 1713033600
  }'

Provider created successfully.