Create an SMS channel
const url = 'https://api.tryletterhead.com/api/v3/channels';const form = new FormData();form.append('api', 'true');form.append('brand', 'example');form.append('title', 'example');form.append('websiteUrl', 'example');form.append('phoneNumber', 'example');form.append('notes', 'example');
const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
options.body = form;
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://api.tryletterhead.com/api/v3/channels \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: multipart/form-data' \ --form api=true \ --form brand=example \ --form title=example \ --form websiteUrl=example \ --form phoneNumber=example \ --form notes=exampleCreate an SMS channel under one of your company’s brands. Despite the shared /channels path,
this is not a general-purpose “create a channel” endpoint — it only creates SMS channels.
Email channels are created from the Letterhead app, not the API.
websiteUrl and phoneNumber are accepted and validated for the create form, but SMS sender
provisioning is a separate connection step: only the title, a slug derived from the title, and
notes (stored as the channel’s description) are persisted by this call.
This endpoint is gated behind an internal feature flag that is not yet enabled for any tenant.
While it’s off, the endpoint returns 404 Not Found.
v3 endpoints expect a company API key.
Authorizations
Section titled “Authorizations ”Request Body required
Section titled “Request Body required ”object
When set to true, this endpoint will accept authorization with your API Key.
Example
trueSlug of the brand to create the channel under.
Channel title. Must contain at least one letter or number; also used to derive the channel’s slug.
Optional. Must be a valid URL if present.
Optional.
Optional, up to 1000 characters. Stored as the channel’s description.
Responses
Section titled “ Responses ”201 Created
object
object
Example
{ "items": { "channel": "an-example-sms-channel", "title": "An Example SMS Channel", "type": "sms" }, "message": "SMS channel created successfully.", "total": 0}404 Not Found — the feature isn’t enabled for this tenant, or brand doesn’t match a brand this company owns.
object
object
object
Example
{ "data": [], "items": [], "message": "Channel management is not enabled.", "total": 0}422 Unprocessable Entity — title reduces to an empty slug (for example, punctuation only).
object
object
object
Example
{ "data": [], "items": [], "message": "Channel title must contain at least one letter or number.", "total": 0}Still can’t find what you need? Contact support.