Callbacks
Callbacks allow you to receive webhooks from MCP servers on Metorial. Callbacks are automatically created when you create a callback-enabled server deployment.
Callbacks object
Attributes
object
StringType of the object, fixed as callback
id
StringThe unique identifier of the callback
url
StringNullableThe URL to which the callback will send data (only for manual webhook type)
name
StringNullableThe name of the callback
description
StringNullableThe description of the callback
type
EnumThe type of the callback
schedule
Objectcreated_at
DateTimestamp when the callback was created
updated_at
DateTimestamp when the callback was last updated
{"object": "callback","type": "webhook_managed","schedule": {"object": "callback.schedule"}}
List callbacks
Returns a paginated list of callbacks.
Query Parameters
limit
NumberOptionalafter
StringOptionalbefore
StringOptionalcursor
StringOptionalorder
EnumOptionalGEThttp://api.metorial.com/callbacks
curl -X GET "https://api.metorial.com/callbacks" \-H "Authorization: Bearer metorial_sk_..."
Get callback by ID
Retrieves details for a specific callback by its ID.
URL Parameters
callback_id
StringThe unique identifier for the callback
GEThttp://api.metorial.com/callbacks/:callback_id
curl -X GET "https://api.metorial.com/callbacks/cal_Rm4Mnheq2bfEPhBhP7SY" \-H "Authorization: Bearer metorial_sk_..."