POST
/
actions
curl --request POST \
  --url https://wt.ls/api/v4/actions \
  --header 'Content-Type: application/json' \
  --header 'apiKey: <api-key>' \
  --data '{
  "name": "<string>",
  "increase": 1,
  "contactId": "<string>"
}'
{
  "data": {
    "action": {
      "id": "<string>",
      "name": "<string>",
      "increase": 123,
      "createdAt": "2023-11-07T05:31:56Z",
      "updatedAt": "2023-11-07T05:31:56Z",
      "subId": "<string>"
    }
  }
}

Authorizations

apiKey
string
header
required

API key to authorize requests

Body

application/json
name
string
required

Name of the action

contactId
string
required

ID of the contact performing the action

increase
integer
default:
1

Points to increase (default: 1)

Response

201
application/json
Action created successfully
data
object