One webhook endpoint
GET
/api/v1/workspaces/{workspaceId}/webhook-endpoints/{endpointId}
const url = 'https://api.crossmart.io/api/v1/workspaces/example/webhook-endpoints/example';const options = {method: 'GET', headers: {'x-api-key': '<x-api-key>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://api.crossmart.io/api/v1/workspaces/example/webhook-endpoints/example \ --header 'x-api-key: <x-api-key>'Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”workspaceId
required
string
endpointId
required
string
Responses
Section titled “Responses”Media typeapplication/json
object
id
required
string format: uuid
url
required
string
description
required
string
eventTypes
required
Array<string>
enabled
required
False when turned off by someone or after repeated failures
boolean
disabledReason
required
MANUAL: turned off by someone. FAILING: turned off by Crossmart.
string
disabledAt
required
string format: date-time
consecutiveFailures
required
Failed attempts since the last delivery that went through
number
lastDelivery
required
The latest delivery attempt, whatever event it carried; null before the first
object
attemptedAt
required
string format: date-time
outcome
required
SUCCEEDED: the endpoint answered 2xx. FAILED: anything else, or no answer.
string
responseStatus
required
Null when no response came: a timeout or a connection error
number
error
required
Why the attempt failed; null on success
string
previousSecretExpiresAt
required
Until then deliveries are also signed with the secret the last rotation replaced
string format: date-time
createdAt
required
string format: date-time
updatedAt
required
string format: date-time
Example
{ "url": "https://example.com/crossmart/webhooks", "description": "Order notifications to n8n", "eventTypes": [ "order.created" ], "disabledReason": "MANUAL", "lastDelivery": { "outcome": "SUCCEEDED", "responseStatus": 200, "error": "The endpoint answered with HTTP 503" }}