# Messages

**URL:** https://furcata.com/en/docs/messages  
**Type:** doc

Sending is the endpoint that spends money, so it is the one to treat most carefully. Every recipient must already exist as a contact, and every send should carry an idempotency key.

### Before you send

- Create the contact first with Contacts sync. A number that is not a contact is rejected.
- Send an idempotency key so a retry cannot duplicate the message.
- Keep an eye on the rate limit for actions that spend money.

### Send a message

Provide either a body, a media URL, or a template id. Messages are queued for delivery and cannot be recalled once queued.

Request fields:

- recipients: required, one to fifty phone numbers in E.164 format.
- body: up to 1600 characters. Required when media and template are not provided.
- media: an HTTPS URL, up to 2048 characters, for multimedia messages.
- template: a stored template id, up to 128 characters. When present it replaces body and media.
- type: sms, mms or whatsapp. Defaults to sms.
- language: two-letter language code.

The response is one receipt per recipient, each with id, contact, status and timestamp. A 201 means the messages were accepted for delivery, not that they have arrived.

## Note

##### Sending cannot be undone

Once a message is queued it is dispatched and cannot be recalled. Test with your own number before you send to a real audience, and always send an idempotency key so a retry after a timeout does not send twice.

### List recent messages

Returns the most recent inbound and outbound messages for the account. Pass direction to narrow the list to one side of the conversation.

direction accepts inbound or outbound. Each message carries id, contact, direction, type, body, media, language, sentiment, country, status and timestamp.

### Archive a conversation

Archiving hides a conversation from the active list and records who did it. You can also mark the contact as unsubscribed at the same time. This only changes records: no message is sent and nothing is charged.

This endpoint requires an account administrator.

contact is required and unsubscribe defaults to false.

### Errors

- 400 when recipients is empty, a number is not in E.164 format, or no body, media or template is given.
- 401 when the token is missing or not accepted.
- 403 when archiving is attempted by someone who is not an account administrator.
- 409 when a retry arrives while the first request with the same idempotency key is still running.
- 429 when you exceed the limit for actions that spend money.

### Next steps

Subscribe to Webhook events to learn when a message is delivered, fails or is answered.
