Create an SMS activity
Changed onstatus must be one of the following:
- inbox to log an already received SMS.
- draft to create a draft SMS.
- scheduled to send an SMS at a scheduled date and time, which must be specified in the date_scheduled field.
- outbox to actually send an SMS. To delay SMS sending by a few seconds (to allow undo), specify send_in in seconds (must be less than 60).
- sent to log an already sent SMS.
Only drafts can be modified, and their status can be changed to scheduled (to send later) or outbox (to send immediately). Scheduled SMS, or SMS in outbox that weren't sent yet can be canceled by setting the status back to draft.
You have to provide a local_phone that will be used to send the SMS. The number you choose has to be associated with a Phone Number of type internal. See the Phone Numbers paragraph for more details.
A template_id referencing an SMS Template may be provided instead of text to automatically render that template and use the content as text.
When direction is not provided, but status="inbox", direction will default to "inbound". Otherwise, direction defaults to "outbound".
When creating a new SMS with the status set to inbox, you can pass the query parameter send_to_inbox with the value of true to create a corresponding Inbox Notification for the SMS.
Request
- Base URLhttps://api.close.com/api/v1
- URLhttps://api.close.com/api/v1/activity/sms/
- Auth
- HTTP basic
- or OAuth 2Authorization code: https://app.close.com/oauth2/authorize/Token URL: https://api.close.com/oauth2/token/
Query parameters
Request body
Response
Successful response
Changes
- info
added the media type
application/jsonfor the response with the status - info
added the media type
application/jsonfor the response with the status - info
added the non-success response with the status
- info
added the non-success response with the status
- info
removed the non-success response with the status
- info
- info
added the optional property
to the response with the status - info
response property
agent_config_iddeprecated
- info