/ Developers API v1Open workspace

API reference

Webhooks

Request fields, access rules and response contracts for webhooks.

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

List webhook endpoints

Lists company webhook destinations without signing secrets.

AccessCompany owner or admin

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

Success: 200 · Request completed.

OpenAPI operation and schemas
OpenAPI 3.1
{
  "operationId": "get__api_v1_webhooks",
  "tags": [
    "Webhooks"
  ],
  "summary": "List webhook endpoints",
  "description": "Lists company webhook destinations without signing secrets.\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"
    }
  }
}
POST/api/v1/webhooks

Create a webhook endpoint

Registers a public HTTPS destination. The signing secret is returned once.

AccessCompany owner or admin

Body fieldTypeDetails
urlrequiredstringFormat: uri
Request
curl --fail-with-body --request POST \
  'https://api.digitalcard.technology/api/v1/webhooks' \
  -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_webhooks",
  "tags": [
    "Webhooks"
  ],
  "summary": "Create a webhook endpoint",
  "description": "Registers a public HTTPS destination. The signing secret is returned once.\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",
      "content": {
        "application/json": {
          "schema": {
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "secret": {
                "type": "string"
              }
            },
            "required": [
              "id",
              "secret"
            ],
            "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": {
            "url": {
              "type": "string",
              "maxLength": 2048,
              "format": "uri"
            }
          },
          "required": [
            "url"
          ]
        }
      }
    }
  }
}
DELETE/api/v1/webhooks/{id}

Disable a webhook endpoint

Disables future deliveries to this endpoint.

AccessCompany owner or admin

Request
curl --fail-with-body --request DELETE \
  'https://api.digitalcard.technology/api/v1/webhooks/<id>' \
  -H "Authorization: Bearer $DIGITALCARD_API_KEY" \
  -H "Idempotency-Key: $IDEMPOTENCY_KEY"

Success: 200 · Request completed.

OpenAPI operation and schemas
OpenAPI 3.1
{
  "operationId": "delete__api_v1_webhooks__id_",
  "tags": [
    "Webhooks"
  ],
  "summary": "Disable a webhook endpoint",
  "description": "Disables future deliveries to this endpoint.\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"
    }
  }
}

Search documentation

Use ↑ ↓ to navigate · Enter to open