API Documentation
Hooks
Jobs
Create
POST
/
rest
/
jobs
Copy
curl --request POST \
--url https://copilotz.com/rest/jobs \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"role": "Copilotz Developer",
"goal": "Assist users with technical inquiries.",
"description": "Handles all technical support tasks and user queries.",
"actions": [
1,
2
],
"defaultWorkflow": 1
}'
Copy
{
"role": "Copilotz Developer",
"goal": "Assist users with technical inquiries.",
"description": "Handles all technical support tasks and user queries.",
"actions": [
1,
2
],
"defaultWorkflow": 1
}
Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Body
application/json
Request payload for creating or updating a job.
Response
200 - application/json
Successful response
Response containing job details.
Copy
curl --request POST \
--url https://copilotz.com/rest/jobs \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"role": "Copilotz Developer",
"goal": "Assist users with technical inquiries.",
"description": "Handles all technical support tasks and user queries.",
"actions": [
1,
2
],
"defaultWorkflow": 1
}'
Copy
{
"role": "Copilotz Developer",
"goal": "Assist users with technical inquiries.",
"description": "Handles all technical support tasks and user queries.",
"actions": [
1,
2
],
"defaultWorkflow": 1
}
Assistant
Responses are generated using AI and may contain mistakes.