AAtlas CRM

Webhooks

Create a webhook endpoint

Register an HTTPS endpoint to receive workspace events.

Overview

Use this API to register an HTTPS endpoint to receive workspace events. It requires bearer api key authentication and the webhooks:write scope.

POST/webhooks/endpoints

cURL

POST
bash
curl --request POST \  --url 'https://api.atlascrm.dev/v1/webhooks/endpoints' \  --header 'Authorization: Bearer crm_live_xxx' \  --header 'Content-Type: application/json' \  --data '{  "url": "https://example.com/webhooks/crm",  "events": "[\"contact.created\"]"}'

Authorization

Bearer API key

webhooks:write

Sample Request Body

json
{  "url": "https://example.com/webhooks/crm",  "events": "[\"contact.created\"]"}

Sample Response

json
{  "status": "success",  "data": {    "id": "wh_123",    "url": "https://example.com/webhooks/crm",    "events": [      "contact.created"    ],    "signingSecret": "whsec_xxx"  }}

Status Codes

CodeDescription
201Webhook endpoint was created.

Headers

AuthorizationstringRequired

Bearer token for your workspace.

Example: Bearer crm_live_xxx

Request body

urlstringRequired

HTTPS endpoint URL.

Example: https://example.com/webhooks/crm

eventsstring[]Required

Event types to subscribe to.

Example: ["contact.created"]

Response fields

data.idstring

Webhook endpoint identifier.

data.signingSecretstring

Secret used to verify signatures.