curl --request POST \
--url https://api.getfernand.com/v3/conversations/{conversation_id}/drafts \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"content": "<string>",
"author_id": 123,
"author_email": "<string>",
"target_id": 123,
"target_email": "<string>",
"title": "<string>"
}
'{
"created": "2023-11-07T05:31:56Z",
"last_updated": "2023-11-07T05:31:56Z",
"conversation_id": 123,
"id": 123,
"title": "<string>",
"content": {},
"author_id": 123,
"target_id": 123
}curl --request POST \
--url https://api.getfernand.com/v3/conversations/{conversation_id}/drafts \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"content": "<string>",
"author_id": 123,
"author_email": "<string>",
"target_id": 123,
"target_email": "<string>",
"title": "<string>"
}
'{
"created": "2023-11-07T05:31:56Z",
"last_updated": "2023-11-07T05:31:56Z",
"conversation_id": 123,
"id": 123,
"title": "<string>",
"content": {},
"author_id": 123,
"target_id": 123
}ID of the conversation to create the draft in.
Content of the draft (required).
ID of the agent authoring the draft (optional if author_email is provided).
Email of the agent authoring the draft (optional if author_id is provided).
ID of the agent the draft is targeted to (optional).
Email of the agent the draft is targeted to (optional).
Title of the draft (optional).
Draft created successfully.
Timestamp when the draft was created (UTC)
Timestamp when the draft was last updated (UTC)
Conversation ID this draft belongs to
Unique identifier for the message draft
Optional title for the draft
250JSON object containing the draft content and metadata. Example: { "content": "string", "message-id": "string", "attachments": [ { "type": "string", "name": "string", "content": "string" } ], "inlines": [ { "type": "string", "name": "string", "content": "string", "cid": "string" } ], "actions": [ { "name": "string", "snippet_id": 123, "data": {} } ] }
Agent ID who created the draft
Agent ID to whom the draft is targeted (null means everyone)
Was this page helpful?