---
title: "Create trigger"
method: POST
path: "/ccaas/2/conversation-forms/triggers"
tags: ["customer-engagement", "conversations", "conversation-forms"]
---

# Create trigger

`POST /ccaas/2/conversation-forms/triggers`

## Request

- Base URL: `https://api.infobip.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.infobip.com/ccaas/2/conversation-forms/triggers`
- Auth: one of:
  - OAuth 2
    - Client credentials
    - Token URL: `https://api.infobip.com/auth/1/oauth2/token`
  - API key in header `Authorization`
  - API key in header `Authorization`
  - HTTP basic

The create trigger method creates a new trigger at the first order position in the existing setup. Triggers are used to assign proper form to a conversation, based on an expression. Every expression can be constructed with at least one or more available operators. The result of the expression will be a success (TRUE) only if all results of operations are TRUE. Order of triggers is essential in the form assignment process, as triggers are match the provided order. First trigger matching the conversation will be used. 
 <a href="https://www.infobip.com/docs/conversations/supervisor-guide" target="_blank">More info</a>

## Request body

- 9620629c173fbd1e947e2693ffe57e0c353c3961ef0ef2018c058c14e6f698abCreateTriggerApiRequest
  - `title` string, required: Trigger title.
  - `expression` object, required: Condition which resolves in destination form.
  - `isEnabled` boolean: Is trigger enabled.
  - `formId` string, required: Destination form.

## Response `200`

OK

- 9620629c173fbd1e947e2693ffe57e0c353c3961ef0ef2018c058c14e6f698abTriggerApiResponse
  - `title` string: Trigger title.
  - `expression` object: Condition which resolves in destination form.
  - `orderIndex` integer: Trigger order.
  - `isEnabled` boolean: Is trigger enabled.
  - `formId` string: Destination form.
  - `timesTriggered` integer: Number of trigger resolution.

## Other responses

- `400`: Bad request
- `401`: Unauthorized
- `403`: Forbidden
- `404`: Not found
- `500`: Internal Server Error

---

[API](https://skmtc.dev/infobip/apis/infobip-openapi-specification.md) - [All operations](https://skmtc.dev/infobip/apis/infobip-openapi-specification/llms.txt) - [OpenAPI document](https://skmtc.dev/infobip/apis/infobip-openapi-specification/revisions/9dcbbaf902de?raw)
