Drivly AI
Education
Entities
- Sales
- Messages
- GETGet Messages
- POSTCreate a new Message
- GETRetrieve a Message
- PATCHUpdate an existing Message
- GETGet Attachments
- POSTCreate a new Attachment
- GETRetrieve an Attachment
- PATCHUpdate an existing Attachment
- GETGet Templates
- POSTCreate a new Template
- GETRetrieve a Template
- PATCHUpdate an existing Template
- GETGet Holidays
- POSTCreate a new Holiday
- GETRetrieve a Holiday
- PATCHUpdate an existing Holiday
- GET
- AI
Messages
Create a new Template
POST
/
templates
curl --request POST \
--url https://commerce.driv.ly/api/templates \
--header 'Content-Type: application/json' \
--data '{
"id": "tmp_39fjkd93nmd0",
"type": "Email",
"subject": "Invoice Details",
"messageText": "Hello, please find your invoice attached."
}'
{
"data": {
"id": "tmp_39fjkd93nmd0",
"type": "Email",
"subject": "Invoice Details",
"messageText": "Hello, please find your invoice attached."
},
"success": true
}
Query Parameters
The number of levels of related objects to include in the response
Body
application/json
Response
200
application/json
Template Created
The response is of type object
.
curl --request POST \
--url https://commerce.driv.ly/api/templates \
--header 'Content-Type: application/json' \
--data '{
"id": "tmp_39fjkd93nmd0",
"type": "Email",
"subject": "Invoice Details",
"messageText": "Hello, please find your invoice attached."
}'
{
"data": {
"id": "tmp_39fjkd93nmd0",
"type": "Email",
"subject": "Invoice Details",
"messageText": "Hello, please find your invoice attached."
},
"success": true
}
Assistant
Responses are generated using AI and may contain mistakes.