E-mail messages
E-mail messages are templates which can be used when sending e-mail.
Fields
API
- GET /j/email_messages
Retrieves the list of e-mail messages.
Example request:
GET /j/email_messages HTTP/1.1 Authorization: Bearer 0a1b2c3d4e5f
Example response:
HTTP/1.1 200 OK Content-Type: application/json [ { "created_at": "2019-01-24T22:32:34Z", "description": "Some description", "id": 1, "name": "Test Message 1", "team": 1 }, { "created_at": "2019-01-24T22:32:34Z", "description": "Other description", "id": 2, "name": "Test Message 2", "team": 2 } ]
- Request Headers:
Authorization – OAuth token to authenticate
- Query Parameters:
team (integer) – An optional team ID.
- Response JSON Array of Objects:
created_at (datetime) – The e-mail message’s creation date and time.
description (string) – The e-mail message’s description.
id (integer) – The e-mail message’s unique ID.
name (string) – The e-mail message’s name.
team (integer) – The e-mail message’s team.
- Status Codes:
200 OK – no error
400 Bad Request – for instance a required field is missing
403 Forbidden – you tried to access a forbidden resource, check you provided a valid OAuth token