cURL
curl --request POST \ --url https://api.perscom.io/{version}/messages/batch \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "resources": [ { "message": "<string>", "channels": [ "broadcast" ], "recipients": [ 123 ], "repeats": false, "send_at": "2023-11-07T05:31:56Z", "sent_at": "2023-11-07T05:31:56Z" } ] } '
{ "data": [ { "message": "<string>", "channels": [ "broadcast" ], "id": 123, "recipients": [ 123 ], "repeats": false, "send_at": "2023-11-07T05:31:56Z", "sent_at": "2023-11-07T05:31:56Z", "label": "<string>", "created_at": "2023-11-07T05:31:56Z", "updated_at": "2023-11-07T05:31:56Z" } ] }
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
The API version to use.
v1
v2
schedule
Show child attributes
Supports HTML.
broadcast
database
discord_private
discord_public
mail
sms
An array of User IDs. Defaults to everyone if no recipients are provided.
Set a future date to send the msssage at.
OK
The date the resource was created. Stored in UTC.
The date the resource was updated. Stored in UTC.
Was this page helpful?