Text prompts
Text prompts are used for two-way SMS conversations.
Fields
API
- GET /j/text_prompts
Retrieves the list of text prompts.
Example request:
GET /j/text_prompts HTTP/1.1 Authorization: Bearer 0a1b2c3d4e5f
Example response:
HTTP/1.1 200 OK Content-Type: application/json [ { "created_at": "2016-11-04T19:11:34.985Z", "description": "Some description", "id": 1, "name": "First text prompt", "team": 1 }, { "created_at": "2016-11-04T19:13:46.246Z", "description": "Other description", "id": 2, "name": "Second text prompt", "team": 1 } ]
- Request Headers:
Authorization – OAuth token to authenticate
- Query Parameters:
team (integer) – An optional team ID.
- Response JSON Array of Objects:
created_at (datetime) – The text prompt’s creation date and time.
description (string) – The text prompt’s description.
id (integer) – The text prompt’s unique ID.
name (string) – The text prompt’s name.
team (integer) – The text prompt’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