API reference
Access
Request fields, access rules and response contracts for access.
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/teamList team members
Returns active and revoked memberships for the current company.
AccessCompany session or API key
curl --fail-with-body --request GET \
'https://api.digitalcard.technology/api/v1/team' \
-H "Authorization: Bearer $DIGITALCARD_API_KEY" Success: 200 · Request completed.
OpenAPI operation and schemas
{
"operationId": "get__api_v1_team",
"tags": [
"Access"
],
"summary": "List team members",
"description": "Returns active and revoked memberships for the current company.\n\nAccess: Company session or API key",
"security": [
{
"session": []
},
{
"apiKey": []
}
],
"parameters": [],
"responses": {
"200": {
"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"
}
}
} /api/v1/teamAdd a team member
Creates or restores a membership with an explicit role.
AccessCompany owner or admin
| Body field | Type | Details |
|---|---|---|
emailrequired | string | Format: email |
rolerequired | string | One of: admin, finance, operator, analyst |
curl --fail-with-body --request POST \
'https://api.digitalcard.technology/api/v1/team' \
-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_team",
"tags": [
"Access"
],
"summary": "Add a team member",
"description": "Creates or restores a membership with an explicit role.\n\nAccess: Company owner or admin",
"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": {
"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,}$"
},
"role": {
"type": "string",
"enum": [
"admin",
"finance",
"operator",
"analyst"
]
}
},
"required": [
"email",
"role"
]
}
}
}
}
} /api/v1/team/{id}Revoke team access
Revokes a membership. The owner and current user cannot be revoked through this route.
AccessCompany owner or admin
curl --fail-with-body --request PATCH \
'https://api.digitalcard.technology/api/v1/team/<id>' \
-H "Authorization: Bearer $DIGITALCARD_API_KEY" \
-H "Idempotency-Key: $IDEMPOTENCY_KEY" \
-H 'Content-Type: application/json' \
--data-binary @request.json Success: 200 · Request completed.
OpenAPI operation and schemas
{
"operationId": "patch__api_v1_team__id_",
"tags": [
"Access"
],
"summary": "Revoke team access",
"description": "Revokes a membership. The owner and current user cannot be revoked through this route.\n\nAccess: Company owner or admin",
"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": {
"200": {
"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": {}
}
}
}
}
} /api/v1/api-keysList API keys
Lists key metadata without secret tokens.
AccessCompany owner or admin
curl --fail-with-body --request GET \
'https://api.digitalcard.technology/api/v1/api-keys' \
-H "Authorization: Bearer $DIGITALCARD_API_KEY" Success: 200 · Request completed.
OpenAPI operation and schemas
{
"operationId": "get__api_v1_api_keys",
"tags": [
"Access"
],
"summary": "List API keys",
"description": "Lists key metadata without secret tokens.\n\nAccess: Company owner or admin",
"security": [
{
"session": []
},
{
"apiKey": []
}
],
"parameters": [],
"responses": {
"200": {
"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"
}
}
} /api/v1/api-keysCreate an API key
Creates a company-scoped key with an operator, finance or analyst role. The token is returned once.
AccessCompany owner or admin session
| Body field | Type | Details |
|---|---|---|
namerequired | string | Length: 2 to 100. |
rolerequired | string | One of: operator, finance, analyst |
daysrequired | integer | Minimum: 1; maximum: 365. |
Success: 201 · Resource created.
OpenAPI operation and schemas
{
"operationId": "post__api_v1_api_keys",
"tags": [
"Access"
],
"summary": "Create an API key",
"description": "Creates a company-scoped key with an operator, finance or analyst role. The token is returned once.\n\nAccess: Company owner or admin session",
"security": [
{
"session": []
}
],
"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"
},
"token": {
"type": "string"
}
},
"required": [
"id",
"token"
],
"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": {
"name": {
"type": "string",
"minLength": 2,
"maxLength": 100
},
"role": {
"type": "string",
"enum": [
"operator",
"finance",
"analyst"
]
},
"days": {
"type": "integer",
"minimum": 1,
"maximum": 365
}
},
"required": [
"name",
"role",
"days"
]
}
}
}
}
} /api/v1/api-keys/{id}Revoke an API key
Immediately revokes a company API key.
AccessCompany owner or admin
curl --fail-with-body --request DELETE \
'https://api.digitalcard.technology/api/v1/api-keys/<id>' \
-H "Authorization: Bearer $DIGITALCARD_API_KEY" \
-H "Idempotency-Key: $IDEMPOTENCY_KEY" Success: 200 · Request completed.
OpenAPI operation and schemas
{
"operationId": "delete__api_v1_api_keys__id_",
"tags": [
"Access"
],
"summary": "Revoke an API key",
"description": "Immediately revokes a company API key.\n\nAccess: Company owner or admin",
"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": {
"200": {
"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"
}
}
}