light-mode-image
Learn
Claims source

API Reference

Configure a Claims source

POST/v1/claim-sources

Authorization

bearerAuth
AuthorizationBearer <token>

In: header

Request Body

application/json

The claim source payload

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

curl -X POST "https://example.com/v1/claim-sources" \  -H "Content-Type: application/json" \  -d '{    "name": "Claims source accepting a x-api-key header",    "url": "https://example.com/api/data",    "authorization": {      "type": "api-key",      "value": "6hrFDATxrG9w14QY9wwnmVhLE0Wg6LIvwOwUaxz761m1J"    },    "requestParameters": {      "account_type": {        "mapFrom": "claims.accountType",        "defaultValue": "account.student"      },      "account_id": {        "mapFrom": "claims.accountId"      }    }  }'

{  "name": "Claims source accepting a x-api-key header",  "url": "https://example.com/api/data",  "authorization": {    "type": "api-key",    "value": "****************************************61m1J"  },  "requestParameters": {    "account_type": {      "mapFrom": "claims.accountType",      "defaultValue": "account.student"    },    "account_id": {      "mapFrom": "claims.accountId"    }  }}

Retrieve all Claim sources

GET/v1/claim-sources

Authorization

bearerAuth
AuthorizationBearer <token>

In: header

Query Parameters

limit?number

Range size of returned entries, default 100

Range1 <= value <= 1000
cursor?string

Starting point for the range of entries

Response Body

application/json

application/json

curl -X GET "https://example.com/v1/claim-sources"
{  "nextCursor": "string",  "data": [    {      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",      "name": "string",      "url": "string",      "requestMethod": "GET",      "requestParameters": {        "mapFrom": "string"      },      "authorization": {        "type": "api-key",        "value": "string"      }    }  ]}

Retrieve a Claim source

GET/v1/claim-sources/{id}

Authorization

bearerAuth
AuthorizationBearer <token>

In: header

Path Parameters

id*string

Claims source ID

Formatuuid

Response Body

application/json

application/json

application/json

curl -X GET "https://example.com/v1/claim-sources/497f6eca-6276-4993-bfeb-53cbbbba6f08"
{  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",  "name": "string",  "url": "string",  "requestMethod": "GET",  "requestParameters": {    "mapFrom": "string"  },  "authorization": {    "type": "api-key",    "value": "string"  }}

Update a Claim source

PUT/v1/claim-sources/{id}

Authorization

bearerAuth
AuthorizationBearer <token>

In: header

Path Parameters

id*string

Claims source ID

Formatuuid

Request Body

application/json

The updated claims source payload

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

curl -X PUT "https://example.com/v1/claim-sources/497f6eca-6276-4993-bfeb-53cbbbba6f08" \  -H "Content-Type: application/json" \  -d '{    "name": "string",    "url": "string",    "requestParameters": {      "mapFrom": "string"    },    "authorization": {      "type": "api-key"    }  }'
{  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",  "name": "string",  "url": "string",  "requestMethod": "GET",  "requestParameters": {    "mapFrom": "string"  },  "authorization": {    "type": "api-key",    "value": "string"  }}

Delete a Claim source

DELETE/v1/claim-sources/{id}

Authorization

bearerAuth
AuthorizationBearer <token>

In: header

Path Parameters

id*string

Claims source ID

Formatuuid

Response Body

application/json

application/json

curl -X DELETE "https://example.com/v1/claim-sources/497f6eca-6276-4993-bfeb-53cbbbba6f08"
Empty

How would you rate this page?

Last updated on

On this page