Skip to main content

Create trigger

Creates a new trigger to receive external API calls.

POST https://api.cogfy.com/triggers

Request body

  • fieldId: The ID of the field to receive the request body.
  • collectionId: The ID of the collection the field is in.
info

The fieldId must be of a JSON type field.

Example JSON request

{
"fieldId": "530d70a2-e05c-495c-8f23-8a3b6939d0bc",
"collectionId": "68dc8542-729d-4586-9317-8fe194c7141f"
}

Response body

  • key: The unique key that identifies the trigger, used to build the trigger URL