/ Developers API v1Open workspace

API reference

Programs

Request fields, access rules and response contracts for programs.

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/programs

List programs

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 current program.

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/programs' \
  -H "Authorization: Bearer $DIGITALCARD_API_KEY"

Success: 200 · Request completed.

OpenAPI operation and schemas
OpenAPI 3.1
{
  "operationId": "get__api_v1_programs",
  "tags": [
    "Programs"
  ],
  "summary": "List programs",
  "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 current program.",
  "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"
                    },
                    "name": {
                      "type": "string"
                    },
                    "currency": {
                      "type": "string"
                    },
                    "purpose": {
                      "type": "string",
                      "enum": [
                        "distribution",
                        "expense",
                        "both"
                      ]
                    },
                    "reloadable": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991
                    },
                    "status": {
                      "type": "string"
                    },
                    "brand_name": {
                      "type": "string"
                    },
                    "brand_color": {
                      "type": "string"
                    },
                    "logo_url": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "support_email": {
                      "type": "string"
                    },
                    "fee_amount": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "description": "Signed integer in the ISO 4217 minor unit of the record currency."
                    },
                    "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",
                    "name",
                    "currency",
                    "purpose",
                    "reloadable",
                    "status",
                    "brand_name",
                    "brand_color",
                    "logo_url",
                    "support_email",
                    "fee_amount",
                    "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"
    }
  }
}

Search documentation

Use ↑ ↓ to navigate · Enter to open