/ Developers API v1Open workspace

API reference

Branding

Request fields, access rules and response contracts for branding.

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.

GET/api/v1/domains

List custom domains

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.

Query parameters: limit (1 to 200, default 50), before, programId, administrator-only companyId and format=csv. Read pagination and exports.

Request
curl --fail-with-body --request GET \
  'https://api.digitalcard.technology/api/v1/domains' \
  -H "Authorization: Bearer $DIGITALCARD_API_KEY"

Success: 200 · Request completed.

OpenAPI operation and schemas
OpenAPI 3.1
{
  "operationId": "get__api_v1_domains",
  "tags": [
    "Branding"
  ],
  "summary": "List custom domains",
  "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.",
  "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"
                    },
                    "hostname": {
                      "type": "string"
                    },
                    "hostname_status": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "certificate_status": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "validation_json": {
                      "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",
                    "hostname",
                    "hostname_status",
                    "certificate_status",
                    "validation_json",
                    "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"
    }
  }
}
PATCH/api/v1/programs/{id}/branding

Update program branding

Updates the program name, accent color, support email and optional logo.

AccessCompany owner or admin; platform administrator

Body fieldTypeDetails
namerequiredstringLength: 2 to 120.
colorrequiredstring
supportEmailrequiredstringFormat: email
logoUrlstringFormat: uri
Request
curl --fail-with-body --request PATCH \
  'https://api.digitalcard.technology/api/v1/programs/<id>/branding' \
  -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
OpenAPI 3.1
{
  "operationId": "patch__api_v1_programs__id__branding",
  "tags": [
    "Branding"
  ],
  "summary": "Update program branding",
  "description": "Updates the program name, accent color, support email and optional logo.\n\nAccess: Company owner or admin; platform administrator",
  "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": {
            "name": {
              "type": "string",
              "minLength": 2,
              "maxLength": 120
            },
            "color": {
              "type": "string",
              "pattern": "^#[a-fA-F0-9]{6}$"
            },
            "supportEmail": {
              "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,}$"
            },
            "logoUrl": {
              "type": "string",
              "format": "uri"
            }
          },
          "required": [
            "name",
            "color",
            "supportEmail"
          ]
        }
      }
    }
  }
}
POST/api/v1/domains

Connect a beneficiary domain

Requests a Cloudflare for SaaS custom hostname and returns ownership verification information.

AccessCompany owner or admin; platform administrator

Body fieldTypeDetails
programIdrequiredstring
hostnamerequiredstringLength: 4 to 253.
Request
curl --fail-with-body --request POST \
  'https://api.digitalcard.technology/api/v1/domains' \
  -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
OpenAPI 3.1
{
  "operationId": "post__api_v1_domains",
  "tags": [
    "Branding"
  ],
  "summary": "Connect a beneficiary domain",
  "description": "Requests a Cloudflare for SaaS custom hostname and returns ownership verification information.\n\nAccess: Company owner or admin; platform administrator",
  "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}$"
            },
            "hostname": {
              "type": "string",
              "minLength": 4,
              "maxLength": 253
            }
          },
          "required": [
            "programId",
            "hostname"
          ]
        }
      }
    }
  }
}
POST/api/v1/domains/{id}/refresh

Refresh domain verification

Refreshes ownership and certificate status. The domain activates only when both are active.

AccessCompany owner or admin; platform administrator

Request
curl --fail-with-body --request POST \
  'https://api.digitalcard.technology/api/v1/domains/<id>/refresh' \
  -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
OpenAPI 3.1
{
  "operationId": "post__api_v1_domains__id__refresh",
  "tags": [
    "Branding"
  ],
  "summary": "Refresh domain verification",
  "description": "Refreshes ownership and certificate status. The domain activates only when both are active.\n\nAccess: Company owner or admin; platform administrator",
  "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": {}
        }
      }
    }
  }
}
GET/api/v1/email-senders

List program email senders

Lists configured sender identities and verification state.

AccessCompany session or API key; platform administrator

Request
curl --fail-with-body --request GET \
  'https://api.digitalcard.technology/api/v1/email-senders' \
  -H "Authorization: Bearer $DIGITALCARD_API_KEY"

Success: 200 · Request completed.

OpenAPI operation and schemas
OpenAPI 3.1
{
  "operationId": "get__api_v1_email_senders",
  "tags": [
    "Branding"
  ],
  "summary": "List program email senders",
  "description": "Lists configured sender identities and verification state.\n\nAccess: Company session or API key; platform administrator",
  "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"
    }
  }
}
POST/api/v1/email-senders

Configure a program sender

Stores the program email identity pending administrator domain verification.

AccessCompany owner or admin; platform administrator

Body fieldTypeDetails
programIdrequiredstring
emailrequiredstringFormat: email
namerequiredstringLength: 2 to 120.
Request
curl --fail-with-body --request POST \
  'https://api.digitalcard.technology/api/v1/email-senders' \
  -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
OpenAPI 3.1
{
  "operationId": "post__api_v1_email_senders",
  "tags": [
    "Branding"
  ],
  "summary": "Configure a program sender",
  "description": "Stores the program email identity pending administrator domain verification.\n\nAccess: Company owner or admin; platform administrator",
  "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}$"
            },
            "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,}$"
            },
            "name": {
              "type": "string",
              "minLength": 2,
              "maxLength": 120
            }
          },
          "required": [
            "programId",
            "email",
            "name"
          ]
        }
      }
    }
  }
}

Search documentation

Use ↑ ↓ to navigate · Enter to open