The Fifth World

Get messages

This endpoint returns a list of your messages, separated by type.

Request

HTTP Headers
HTTP Header Value
Authorization A valid JSON Web Token, of the form Bearer ENCODEDHEADER.ENCODEDPAYLOAD.ENCODEDSIGNATURE

Examples

Example Request
GET /v1/members/messages HTTP/1.1 Host: api.thefifthworld.com Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c

Response

If you’ve provided a valid JSON Web Token, the API responds with a JSON object with properties confirmation, error, warning, and info. Each one provides an array of strings, each string a message for you of that type.

If the API verifies your authentication, you will receive this object even if all of the properties within it only provide empty arrays. If the API could not verify your authentication, it responds with a 401 HTTP status.

Example

Example Response
{ "confirmation": [ "The invitation you sent went out successfully." ], "error": [ "Failed to connect the OAuth 2.0 provider you requested. ], "warning": [ "Your passphrase looks pretty short. You could improve your account security by making it longer." ], "info": [ "Frogs absorb water through their skin so they don't need to drink." ] }