Skip to main content
GET
/
webhooks
/
targets
/
{id}
Get a webhook target
curl --request GET \
  --url https://api.platform.dakota.xyz/webhooks/targets/{id} \
  --header 'x-api-key: <api-key>'
{
  "id": "1NFHrqBHb3cTfLVkFSGmHZqdDPi",
  "url": "https://example.com/webhooks/receive",
  "global": false,
  "time_last_healthy": 123,
  "time_last_attempted": 123,
  "event_types": [
    "api_key.created"
  ]
}

Authorizations

x-api-key
string
header
required

Path Parameters

id
string
required

Unique identifier (ksuid) of the webhook target KSUID is a 27-character globally unique ID that combines a timestamp with a random component. Used for all entity identifiers in the Dakota platform.

Required string length: 27
Example:

"1NFHrqBHb3cTfLVkFSGmHZqdDPi"

Response

Webhook target retrieved successfully

A webhook target for receiving outbound webhook events

id
string
required

KSUID is a 27-character globally unique ID that combines a timestamp with a random component. Used for all entity identifiers in the Dakota platform.

Required string length: 27
Example:

"1NFHrqBHb3cTfLVkFSGmHZqdDPi"

url
string<uri>
required

The URL where webhook events will be sent

Example:

"https://example.com/webhooks/receive"

global
boolean
required

If true, this target will receive all event types

Example:

false

time_last_healthy
integer
required

Unix timestamp when this target last received a successful delivery (defaults to creation time if never healthy)

time_last_attempted
integer
required

Unix timestamp when a delivery to this target was last attempted (defaults to creation time if never attempted)

event_types
string[]

List of event types this target cares about (ignored if global is true)