Messages API
Resource Group ¶
Authentication ¶
Login userPOST/access_tokens
Example URI
POST /access_tokens
Request
Headers
Content-Type: application/json; charset=utf-8
Body
{
"email": "[email protected]",
"password": "password"
}
Response
201
Headers
Content-Type: application/json; charset=utf-8
Body
{
"access_token": "access_token"
}
Message ¶
Get all messagesGET/messages
Example URI
GET /messages
Response
401
Request
Headers
Content-Type: application/json; charset=utf-8
Authorization: Bearer ABC123
Response
200
Headers
Content-Type: application/json; charset=utf-8
Body
[
{
"id": 1,
"content": "Message 1"
}
]
Message ¶
Show single messageGET/messages/{id}
Example URI
GET /messages/1
URI Parameters
- id
number
(required) Example: 1Id of a message.
Response
401
Request
Headers
Content-Type: application/json;charset=utf-8
Authorization: Bearer ABC123
Response
200
Headers
Content-Type: application/json; charset=utf-8
Body
{
"id": 1,
"content": "Message 1"
}