Create a new draft
Authorizations
Authenticate your account by including your secret key in API requests. You can manage your API keys in the Dashboard.
Authentication to the API is performed by using the HTTP Header X-API-Key.
Body
JSON object containing the draft content and metadata (required). Example: { "content": "string", "attachments": [ { "type": "application/pdf", "name": "report.pdf", "content": "<... base64 encoded content ...>" } ], "inlines": [ { "type": "image/png", "name": "screenshot.png", "content": "<... base64 encoded content ...>", "cid": "random-cid-12345" } ], "actions": [ { "name": "status.close", "snippet_id": 123, "data": {} } ] }
Response
Draft created successfully.