Create a KYC level
/v1/kyc/levelsRequires an API client bearer token.
Creates a reusable level definition (screens of typed, untyped and capture-block fields) for a programme. A key the programme already has is a 409 `level_exists`; a definition that cannot be used is a 400 `invalid_level` carrying `problems[]`. Requires Idempotency-Key and the programme_admin role.
Parameters
Header parameters
| Name | Required | Description |
|---|---|---|
| Idempotency-Key | required | Client-chosen. An identical retry with the same key returns the stored response; reusing the key with a different payload returns 409. |
Request body
+ show properties− hide properties
+ show properties− hide properties
+ show properties− hide properties
One of
typed
+ show properties− hide properties
block
untyped
+ show properties− hide properties
Example
curl -X POST https://api.rigid.fi/v1/kyc/levels \
-H "Authorization: Bearer $RIGID_API_TOKEN" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{
"programme_id": "uuid",
"level_key": "string",
"display_name": "string",
"definition": {
"screens": [
{}
]
}
}'Responses
201The created level.
+ show properties− hide properties
+ show properties− hide properties
+ show properties− hide properties
One of
typed
+ show properties− hide properties
block
untyped
+ show properties− hide properties
400Validation error
401Authentication required
403Forbidden
409The programme already has a level with this key (code `level_exists`), or the Idempotency-Key was reused with a different payload
429Too many policy writes from this caller — see Retry-After
500Internal server error