Create a claim

View as Markdown
POST
/resources/claim_resources

Creates a new claim that may be referenced by identity scopes to control inclusion in tokens and UserInfo responses.

Authorization

API-Key
headerX-API-KEY<token>

MonoCloud APIs require authentication with an API key. Retrieve your key from the Tenant Settings section of the MonoCloud dashboard and include it in the request header as: X-API-Key: <your_api_key>

Request Body

application/json

The request payload used to create a claim.

TypeScript Definitions

Use the request body type in TypeScript.

Create Claim Resource Request: Creates a claim that defines how claim values are resolved from the identity context.

Response Headers

201

location?string

Returns the location header

Formaturi

Response Body

201

application/json

The claim was created successfully

TypeScript Definitions

Use the response body type in TypeScript.

Claim Response: Represents a claim that may be included in identity tokens, access tokens, or UserInfo responses.

Errors

401Unauthorized
403Forbidden

curl -X POST "https://your-domain.us.monocloud.com/api/resources/claim_resources" \  -H "X-API-KEY: <token>" \  -H "Content-Type: application/json" \  -d '{    "name": "string",    "source": "string"  }'
{  "id": "string",  "display_name": null,  "description": null,  "show_in_discovery_document": true,  "creation_time": 0,  "last_updated": 0,  "name": "string",  "source": "string",  "is_default": true}
© 2026 MonoCloud. All rights reserved.