GET
/
projects
/
{projectIdOrName}
/
destinations
/
{destination}
Get a destination
curl --request GET \
  --url https://api.withampersand.com/v1/projects/{projectIdOrName}/destinations/{destination} \
  --header 'X-Api-Key: <api-key>'
{
  "id": "<string>",
  "name": "leadConvertedWebhook",
  "type": "webhook",
  "metadata": {
    "url": "https://webhooks.mailmonkey.com/salesforce-lead-converted",
    "headers": {
      "Authorization": "Bearer 1234"
    }
  },
  "createTime": "2023-11-07T05:31:56Z",
  "updateTime": "2023-11-07T05:31:56Z",
  "secrets": {
    "webhookSigningKey": "<string>"
  }
}

Authorizations

X-Api-Key
string
header
required

Path Parameters

projectIdOrName
string
required

The Ampersand project ID or project name.

destination
string
required

The destination name.

Query Parameters

includeSecrets
boolean

Include secrets in the response

rotate
boolean

Rotate the destination secrets

Response

OK

The response is of type object.