API v1 Documentation
Client API - Contacts
Client API - Display
Client API - Environment
Client API - Response
Client API - User
Management API - Action Class
Management API - Attribute Class
Management API - Contact Attribute Keys
Management API - Contact Attributes
Management API - Contacts
Management API - Me
Management API - People
Management API - Response
Management API - Storage
Management API - Survey
Management API - Webhook
Health
Management API - Action Class
Create Action Class
Create Action Class from the UI or from the API! You can read more about them here.
POST
/
api
/
v1
/
management
/
action-classes
Copy
Ask AI
curl --request POST \
--url http:///%7B{baseurl}%7D/api/v1/management/action-classes \
--header 'Content-Type: application/json' \
--header 'x-api-key: <x-api-key>' \
--data '{
"description": "From API Docs (optional)",
"environmentId": "{{environmentId}}",
"key": "my-action",
"name": "My Action from Postman",
"type": "code"
}'
Copy
Ask AI
{
"data": {
"createdAt": "2024-04-23T08:58:47.507Z",
"description": null,
"environmentId": "clurwouax000azffxt7n5unn3",
"id": "clvc5m82c000z494jkvnw1gh0",
"name": "My Action from Postman",
"noCodeConfig": null,
"type": "code",
"updatedAt": "2024-04-23T08:58:47.507Z"
}
}
Headers
Body
application/json · object
Response
200
application/json
OK
The response is of type object
.
Was this page helpful?
Copy
Ask AI
curl --request POST \
--url http:///%7B{baseurl}%7D/api/v1/management/action-classes \
--header 'Content-Type: application/json' \
--header 'x-api-key: <x-api-key>' \
--data '{
"description": "From API Docs (optional)",
"environmentId": "{{environmentId}}",
"key": "my-action",
"name": "My Action from Postman",
"type": "code"
}'
Copy
Ask AI
{
"data": {
"createdAt": "2024-04-23T08:58:47.507Z",
"description": null,
"environmentId": "clurwouax000azffxt7n5unn3",
"id": "clvc5m82c000z494jkvnw1gh0",
"name": "My Action from Postman",
"noCodeConfig": null,
"type": "code",
"updatedAt": "2024-04-23T08:58:47.507Z"
}
}
Assistant
Responses are generated using AI and may contain mistakes.