Callback Destinations
Represents callbacks that you have uploaded to Metorial. Callbacks can be linked to various resources based on their purpose. Metorial can also automatically extract callbacks for you, for example for data exports.
Callback Destinations object
Attributes
object
StringType of the object, fixed as callback.destination
id
StringThe unique identifier of the callback destination
type
EnumThe type of the callback destination
name
StringThe name of the callback destination
description
StringThe description of the callback destination
webhook_destination
ObjectNullableDetails of the webhook callback destination, if applicable
callbacks
ObjectInformation about the callbacks associated with this destination
created_at
DateTimestamp when the callback destination was created
{"object": "callback.destination","type": "webhook","webhook_destination": {},"callbacks": {"type": "all"}}
List callback destinations
Returns a paginated list of callback destinations for a specific callback.
Query Parameters
limit
NumberOptionalafter
StringOptionalbefore
StringOptionalcursor
StringOptionalorder
EnumOptionalcallback_id
UnionOptionalcurl -X GET "https://api.metorial.com/callbacks-destinations" \-H "Authorization: Bearer metorial_sk_..."
Get callback destination by ID
Retrieves details for a specific callback by its ID.
URL Parameters
destination_id
StringThe unique identifier for the destination
curl -X GET "https://api.metorial.com/callbacks-destinations/des_Rm4Mnheq2bfEPhBhP7SY" \-H "Authorization: Bearer metorial_sk_..."
Create callback destination
Creates a new callback destination for the instance.
Request Body
name
Stringdescription
StringOptionalurl
Stringcallbacks
Objectcurl -X POST "https://api.metorial.com/callbacks-destinations" \-H "Content-Type: application/json" \-H "Authorization: Bearer metorial_sk_..." \-d '{"name": "example_name","description": "example_description","url": "example_url","callbacks": {"type": "example_type"}}'
Update callback destination
Updates an existing callback destination for the instance.
URL Parameters
destination_id
StringThe unique identifier for the destination
Request Body
name
StringOptionaldescription
StringOptionalNullablecurl -X PATCH "https://api.metorial.com/callbacks-destinations/des_Rm4Mnheq2bfEPhBhP7SY" \-H "Content-Type: application/json" \-H "Authorization: Bearer metorial_sk_..." \-d '{"name": "example_name","description": "example_description"}'
Delete callback destination
Deletes an existing callback destination for the instance.
URL Parameters
destination_id
StringThe unique identifier for the destination
curl -X DELETE "https://api.metorial.com/callbacks-destinations/des_Rm4Mnheq2bfEPhBhP7SY" \-H "Authorization: Bearer metorial_sk_..."