API reference
Beneficiaries
Request fields, access rules and response contracts for beneficiaries.
All endpoint paths include /api/v1. For protected writes, persist a stable idempotency key before making the request. Company integrations use https://api.digitalcard.technology.
/api/v1/recipientsList beneficiaries
Returns records in descending identifier order. Use the cursor to read the next page. Platform administrators may additionally filter by companyId.
AccessCompany sessions and company API keys; beneficiary sessions see their own record.
Query parameters: limit (1 to 200, default 50), before, programId, administrator-only companyId and format=csv. Read pagination and exports.
curl --fail-with-body --request GET \
'https://api.digitalcard.technology/api/v1/recipients' \
-H "Authorization: Bearer $DIGITALCARD_API_KEY" Success: 200 · Request completed.
OpenAPI operation and schemas
{
"operationId": "get__api_v1_recipients",
"tags": [
"Beneficiaries"
],
"summary": "List beneficiaries",
"description": "Returns records in descending identifier order. Use the cursor to read the next page. Platform administrators may additionally filter by companyId.\n\nAccess: Company sessions and company API keys; beneficiary sessions see their own record.",
"security": [
{
"session": []
},
{
"apiKey": []
}
],
"parameters": [
{
"name": "limit",
"in": "query",
"schema": {
"type": "integer",
"minimum": 1,
"maximum": 200,
"default": 50
},
"description": "Page size."
},
{
"name": "before",
"in": "query",
"schema": {
"type": "string"
},
"description": "The nextCursor returned by the previous page."
},
{
"name": "programId",
"in": "query",
"schema": {
"type": "string"
},
"description": "Filter by program, except on the programs collection."
},
{
"name": "companyId",
"in": "query",
"schema": {
"type": "string"
},
"description": "Company filter for platform administrators only."
},
{
"name": "format",
"in": "query",
"schema": {
"type": "string",
"enum": [
"csv"
]
},
"description": "Export the current page as CSV."
}
],
"responses": {
"200": {
"description": "Successful response",
"content": {
"application/json": {
"schema": {
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"items": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"company_id": {
"type": "string"
},
"program_id": {
"type": "string"
},
"first_name": {
"type": "string"
},
"last_name": {
"type": "string"
},
"email": {
"type": "string"
},
"country": {
"type": "string",
"pattern": "^[A-Z]{2}$"
},
"kyc_status": {
"type": "string"
},
"status": {
"type": "string"
},
"created_at": {
"type": "string",
"format": "date-time",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
},
"updated_at": {
"type": "string",
"format": "date-time",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
}
},
"required": [
"id",
"company_id",
"program_id",
"first_name",
"last_name",
"email",
"country",
"kyc_status",
"status",
"created_at",
"updated_at"
],
"additionalProperties": false
}
},
"nextCursor": {
"type": [
"string",
"null"
]
}
},
"required": [
"items",
"nextCursor"
],
"additionalProperties": false
}
}
}
},
"401": {
"$ref": "#/components/responses/Unauthorized"
},
"403": {
"$ref": "#/components/responses/Forbidden"
},
"409": {
"$ref": "#/components/responses/Conflict"
},
"422": {
"$ref": "#/components/responses/Invalid"
},
"429": {
"$ref": "#/components/responses/RateLimited"
},
"500": {
"$ref": "#/components/responses/Failed"
}
}
} /api/v1/recipientsCreate a beneficiary
Registers a beneficiary within an active program and validates the permitted residence country.
AccessCompany owner, admin or operator
| Body field | Type | Details |
|---|---|---|
programIdrequired | string | |
emailrequired | string | Format: email |
firstNamerequired | string | Length: 1 to 100. |
lastNamerequired | string | Length: 1 to 100. |
countryrequired | string |
curl --fail-with-body --request POST \
'https://api.digitalcard.technology/api/v1/recipients' \
-H "Authorization: Bearer $DIGITALCARD_API_KEY" \
-H "Idempotency-Key: $IDEMPOTENCY_KEY" \
-H 'Content-Type: application/json' \
--data-binary @request.json Success: 201 · Resource created.
OpenAPI operation and schemas
{
"operationId": "post__api_v1_recipients",
"tags": [
"Beneficiaries"
],
"summary": "Create a beneficiary",
"description": "Registers a beneficiary within an active program and validates the permitted residence country.\n\nAccess: Company owner, admin or operator",
"security": [
{
"session": []
},
{
"apiKey": []
}
],
"parameters": [
{
"name": "Idempotency-Key",
"in": "header",
"required": true,
"description": "One stable key per intended write. Reuse the key and identical body when recovering a transport failure.",
"schema": {
"type": "string",
"minLength": 12,
"maxLength": 128,
"pattern": "^[A-Za-z0-9_.:-]+$"
}
}
],
"responses": {
"201": {
"description": "Successful response",
"content": {
"application/json": {
"schema": {
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"id": {
"type": "string"
}
},
"required": [
"id"
],
"additionalProperties": false
}
}
}
},
"401": {
"$ref": "#/components/responses/Unauthorized"
},
"403": {
"$ref": "#/components/responses/Forbidden"
},
"409": {
"$ref": "#/components/responses/Conflict"
},
"422": {
"$ref": "#/components/responses/Invalid"
},
"429": {
"$ref": "#/components/responses/RateLimited"
},
"500": {
"$ref": "#/components/responses/Failed"
}
},
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"programId": {
"type": "string",
"pattern": "^[A-Za-z0-9_-]{12,100}$"
},
"email": {
"type": "string",
"maxLength": 254,
"format": "email",
"pattern": "^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"
},
"firstName": {
"type": "string",
"minLength": 1,
"maxLength": 100
},
"lastName": {
"type": "string",
"minLength": 1,
"maxLength": 100
},
"country": {
"type": "string",
"pattern": "^[A-Z]{2}$"
}
},
"required": [
"programId",
"email",
"firstName",
"lastName",
"country"
]
}
}
}
}
} /api/v1/recipients/importImport beneficiaries
Imports 1 to 200 beneficiaries atomically. CSV columns: email, firstName, lastName, country.
AccessCompany owner, admin or operator
| Body field | Type | Details |
|---|---|---|
programIdrequired | string | |
csvrequired | string | Length: 1 to 1000000. |
curl --fail-with-body --request POST \
'https://api.digitalcard.technology/api/v1/recipients/import' \
-H "Authorization: Bearer $DIGITALCARD_API_KEY" \
-H "Idempotency-Key: $IDEMPOTENCY_KEY" \
-H 'Content-Type: application/json' \
--data-binary @request.json Success: 201 · Resource created.
OpenAPI operation and schemas
{
"operationId": "post__api_v1_recipients_import",
"tags": [
"Beneficiaries"
],
"summary": "Import beneficiaries",
"description": "Imports 1 to 200 beneficiaries atomically. CSV columns: email, firstName, lastName, country.\n\nAccess: Company owner, admin or operator",
"security": [
{
"session": []
},
{
"apiKey": []
}
],
"parameters": [
{
"name": "Idempotency-Key",
"in": "header",
"required": true,
"description": "One stable key per intended write. Reuse the key and identical body when recovering a transport failure.",
"schema": {
"type": "string",
"minLength": 12,
"maxLength": 128,
"pattern": "^[A-Za-z0-9_.:-]+$"
}
}
],
"responses": {
"201": {
"description": "Successful response"
},
"401": {
"$ref": "#/components/responses/Unauthorized"
},
"403": {
"$ref": "#/components/responses/Forbidden"
},
"409": {
"$ref": "#/components/responses/Conflict"
},
"422": {
"$ref": "#/components/responses/Invalid"
},
"429": {
"$ref": "#/components/responses/RateLimited"
},
"500": {
"$ref": "#/components/responses/Failed"
}
},
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"programId": {
"type": "string",
"pattern": "^[A-Za-z0-9_-]{12,100}$"
},
"csv": {
"type": "string",
"minLength": 1,
"maxLength": 1000000
}
},
"required": [
"programId",
"csv"
]
}
}
}
}
} /api/v1/recipients/{id}/inviteInvite a beneficiary
Queues a branded invitation using the program sender and verified beneficiary domain.
AccessCompany owner, admin or operator
curl --fail-with-body --request POST \
'https://api.digitalcard.technology/api/v1/recipients/<id>/invite' \
-H "Authorization: Bearer $DIGITALCARD_API_KEY" \
-H "Idempotency-Key: $IDEMPOTENCY_KEY" \
-H 'Content-Type: application/json' \
--data-binary @request.json Success: 202 · Accepted for asynchronous processing. Read the operation for the confirmed provider outcome.
OpenAPI operation and schemas
{
"operationId": "post__api_v1_recipients__id__invite",
"tags": [
"Beneficiaries"
],
"summary": "Invite a beneficiary",
"description": "Queues a branded invitation using the program sender and verified beneficiary domain.\n\nAccess: Company owner, admin or operator",
"security": [
{
"session": []
},
{
"apiKey": []
}
],
"parameters": [
{
"name": "id",
"in": "path",
"required": true,
"schema": {
"type": "string"
}
},
{
"name": "Idempotency-Key",
"in": "header",
"required": true,
"description": "One stable key per intended write. Reuse the key and identical body when recovering a transport failure.",
"schema": {
"type": "string",
"minLength": 12,
"maxLength": 128,
"pattern": "^[A-Za-z0-9_.:-]+$"
}
}
],
"responses": {
"202": {
"description": "Accepted for asynchronous processing; inspect the operation status.",
"content": {
"application/json": {
"schema": {
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"messageId": {
"type": "string"
}
},
"required": [
"messageId"
],
"additionalProperties": false
}
}
}
},
"401": {
"$ref": "#/components/responses/Unauthorized"
},
"403": {
"$ref": "#/components/responses/Forbidden"
},
"409": {
"$ref": "#/components/responses/Conflict"
},
"422": {
"$ref": "#/components/responses/Invalid"
},
"429": {
"$ref": "#/components/responses/RateLimited"
},
"500": {
"$ref": "#/components/responses/Failed"
}
},
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {}
}
}
}
}
}