Send a message as the calling person
Quire permissions
Credential scopes: messages:write.
The acting subject must also be allowed to perform this action in the organisation.
POST
https://your-organisation.quirelms.com/api/v1/messagesAuthorisation
Header parameters
Request bodyJSONrequired
- to_user_idoptionalstring
Or a person to write to directly; their conversation with the caller is opened when there is none.
format: uuid, pattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
Returns
201
Success.
JSON
401
The credential is missing, malformed, expired or revoked.
JSON
403
The credential lacks the scope this operation requires, or the acting subject lacks the capability.
JSON
409
The request conflicts with the current state, with a previous use of the same idempotency key, or with a concurrent write.
JSON
422
The request was understood and its content is not valid. errors names each field.
JSON
429
A rate limit or a concurrency cap was reached. Retry-After says when to try again.
JSON
500
Something failed at our end. Quote request_id when reporting it.
JSON