StreetText API v1

API Documentation

Connect your own tools to StreetText. Read and update your leads, tags, custom fields, text conversations, domains and webhooks.

https://api.streettext.com

Getting started

  1. Create an API key.In StreetText, open Settings → API keys, accept the API Access Terms, choose what the key may do, and copy it. You only see the key once. Keys expire after 60 days, and you can have up to 10 at a time.
  2. Send it as a bearer token.Add Authorization: Bearer YOUR_API_KEY to every request.
  3. Make your first call.List your leads. A 200 with your leads means the key works.

Building an app that other StreetText customers will connect? Use OAuth instead of a personal key. Prefer to just ask questions? Connect ChatGPT or Claude.

Requests and responses

  • Every request goes over HTTPS to https://api.streettext.com/v1/….
  • Send Content-Type: application/json with your requests and send bodies as JSON. Leave out the Accept header.
  • Each endpoint needs a permission (scope) on your key, shown beside it. A _write scope does not include _read; ask for both.
  • Responses are JSON. Shapes differ by endpoint, so check each one's example response. Deletes can answer 204 with an empty body.

Errors

A failed call usually returns "success": false with an error message, and often a code and the field at fault. Some endpoints give a reason instead of error, so read both. A missing, expired or revoked key gets an OAuth-style error instead, for example {"error": "invalid_token", "error_description": "The access token provided is invalid"}.

StatusMeaning
400Something in the request is missing or invalid.
401The key is missing, expired or revoked.
403The key lacks the scope this endpoint needs, or your plan or role does not allow it.
404That record does not exist in your account.
409The request conflicts with the record's current state.
429Too many requests. Wait and retry, slowing down each time.
503The feature is unavailable right now. Retry later.
500Something went wrong on our side. Try again, and contact support@streettext.com if it keeps happening.

Authorization

OAuth2 is a protocol that lets external apps request authorization to private details in a user’s StreetText account without getting their password.

This is preferred over Basic Authentication because tokens can be limited to specific types of data, and can be revoked by users at any time.

All developers need to register their application before getting started.

A registered OAuth application is assigned a unique Client ID and Client Secret. The Client Secret should not be shared. You may create a personal access token for your own use or implement the web flow below to allow other users to authorize your application.

StreetText's OAuth implementation supports the standard authorization code grant type.

Developers should implement the web application flow described below to obtain an authorization code and then exchange it for a token. (The implicit grant type is not supported.) Public clients must use PKCE with an S256 challenge.

Requesting access

Building an app that other StreetText customers will connect? Email support@streettext.com and we will register your OAuth client. Connecting only your own account? Skip OAuth and create an API key instead (see Getting started).

Redirect URLs

Send a redirect_uri that matches the callback URL registered for your client. StreetText sends the user back there with the code.

Scopes

Scopes let you specify exactly what type of access you need. Scopes limit access for OAuth tokens. They do not grant any additional permission beyond that which the user already has.

For the web flow, requested scopes will be displayed to the user on the authorize form.

Note: In the table below, a *_write permission does not automatically imply *_read. You must request both.

Scope Description
leads_read Read a user's existing leads
leads_write Create, edit, and delete leads
domains_read Read a list of domains the user has registered through StreetText.
Read a list of DNS records that your app has created on those domains.
domains_write Create new DNS records (from an approved allow list) on domains in the user's account.
webhooks_read Read the webhooks your application has previously created.
You will only be able to see or modify webhooks created by your own application, not those created by other applications or the user themself.
webhooks_write Register, update, test, and unregister the webhooks your application has created.
customfields_read Read your custom field definitions
customfields_write Create, update, and delete custom field definitions
conversations_read Read text conversations and message history
conversations_write Send text messages and update conversations
funnels_read Read funnels and the leads in them (OAuth apps only)
me_read Read the connected account (OAuth apps only)

Request authorization

GET /oauth/authorize

Send the user's browser to this URL. They sign in to StreetText, approve the scopes, and come back to your redirect_uri with code and state in the query string.

Query parameters

NameDescription
client_idRequired. Your OAuth client ID.
response_typeRequired. Always code.
redirect_uriWhere to send the user back. Must match the callback registered for your client.
scopeSpace-separated scopes to ask for.
stateA random value you check when the user comes back.
code_challengePKCE challenge. Required for public clients.
code_challenge_methodAlways S256 when you send a challenge.

Exchange the code for a token

POST /oauth/token

Trade the code for an access token and a refresh token. Send the body form-encoded (application/x-www-form-urlencoded), not JSON.

Body

NameDescription
grant_typestringRequired. authorization_code.
client_idstringRequired.
client_secretstringRequired for confidential clients.
codestringRequired. The code from the redirect.
redirect_uristringThe same redirect_uri you sent to authorize.
code_verifierstringRequired when you sent a PKCE challenge.

Refresh a token

POST /oauth/token

Get a new access token when the old one expires. You also get a new refresh token; the old one stops working, so save the new one.

Body

NameDescription
grant_typestringRequired. refresh_token.
client_idstringRequired.
client_secretstringRequired for confidential clients.
refresh_tokenstringRequired.

Revoke a token

POST /oauth/revoke

Disconnect: revokes an access or refresh token and everything issued with it. Always answers 200 for a well-formed request.

Body

NameDescription
tokenstringRequired. An access or refresh token.
client_idstringRequired.
client_secretstringRequired for confidential clients.

Leads

Leads / By Lead Email Address

Get a lead by email

GET /v1/leads/email/{leadEmail} leads_read

Get a single lead by email address

Requires scope(s): leads_read

Path parameters

NameDescription
leadEmailThe lead's email address.

Leads / By Lead Email Address

Update a lead by email

PATCH /v1/leads/email/{leadEmail} leads_write

Update one or more fields in a lead. Fields not included in the request body will not be modified.

For a list of all possible fields, see Create a lead.

Requires scope(s): leads_write

Path parameters

NameDescription
leadEmailThe lead's email address.

Leads / By Lead Email Address

Delete a lead by email

DELETE /v1/leads/email/{leadEmail} leads_write

Delete a lead

Requires scope(s): leads_write

Path parameters

NameDescription
leadEmailThe lead's email address.

Leads / By Lead Email Address

Get all lead tags by email

GET /v1/leads/email/{leadEmail}/tags leads_read

Returns every tag on the lead.

Path parameters

NameDescription
leadEmailThe lead's email address.

Leads / By Lead Email Address

Create tags for a lead by email

POST /v1/leads/email/{leadEmail}/tags leads_write

Create a tag on a lead

Parameter Description
tags Required An array containing a list of tags as strings

Requires scope(s): leads_write

Path parameters

NameDescription
leadEmailThe lead's email address.

Leads / By Lead Email Address

Delete tags from lead by email

DELETE /v1/leads/email/{leadEmail}/tags leads_write

Remove a specific tag from a lead.

The response will return successfully even if the tag does not currently exist on the lead.

{
    "success": true
}

Path parameters

NameDescription
leadEmailThe lead's email address.

Query parameters

NameDescription
tag

Leads / By Lead Phone Number

Get a lead by phone number

GET /v1/leads/phone/{leadPhone} leads_read

Get a single lead by phone number

Requires scope(s): leads_read

Path parameters

NameDescription
leadPhoneThe lead's phone number, digits only (for example 14155552671).

Leads / By Lead Phone Number

Update a lead by phone number

PATCH /v1/leads/phone/{leadPhone} leads_write

Update one or more fields in a lead. Fields not included in the request body will not be modified.

For a list of all possible fields, see Create a lead.

Requires scope(s): leads_write

Path parameters

NameDescription
leadPhoneThe lead's phone number, digits only (for example 14155552671).

Leads / By Lead Phone Number

Delete a lead by phone number

DELETE /v1/leads/phone/{leadPhone} leads_write

Delete a lead

Requires scope(s): leads_write

Path parameters

NameDescription
leadPhoneThe lead's phone number, digits only (for example 14155552671).

Leads / By Lead Phone Number

Get all lead tags by phone number

GET /v1/leads/phone/{leadPhone}/tags leads_read

Returns every tag on the lead.

Path parameters

NameDescription
leadPhoneThe lead's phone number, digits only (for example 14155552671).

Leads / By Lead Phone Number

Create tags for a lead by phone number

POST /v1/leads/phone/{leadPhone}/tags leads_write

Create a tag on a lead

Parameter Description
tags Required An array containing a list of tags as strings

Requires scope(s): leads_write

Path parameters

NameDescription
leadPhoneThe lead's phone number, digits only (for example 14155552671).

Leads / By Lead Phone Number

Delete tags from lead by phone number

DELETE /v1/leads/phone/{leadPhone}/tags leads_write

Path parameters

NameDescription
leadPhoneThe lead's phone number, digits only (for example 14155552671).

Query parameters

NameDescription
tag

Leads / By Lead ID / Addresses

List Addresses

GET /v1/leads/{leadID}/addresses leads_read

List all of the addresses associated with a lead.

Path parameters

NameDescription
leadIDID of the lead.

Leads / By Lead ID / Addresses

Add a Lead Address

POST /v1/leads/{leadID}/addresses leads_write

Create a new address on a lead, optionally setting it as the new primary address.

Allowed fields:

field description
address["address"] The street address (eg. 1234 Street Lane)
address["city"] The city (eg. Townsville)
address["province"] The province, state, or region. Prefer 2-character ISO regions (eg. WA, BC) but full names are also accepted.
address["country"] The country. Prefer 2-character ISO countries (eg. US, CA) but full names are also accepted.
address["postal_code"] The ZIP or Postal Code (eg. 42748, V1V 1V1)
primary Boolean. If true, set the address to be the new primary.

Path parameters

NameDescription
leadIDID of the lead.

Leads / By Lead ID / Addresses

Update a Lead Address

PATCH /v1/leads/{leadID}/addresses/{addressID} leads_write

Update the address on a lead and/or set an address as the new primary.

address is optional, but if not provided, the only other accepted field is "primary": true

Allowed fields:

field description
address["address"] The street address (eg. 1234 Street Lane)
address["city"] The city (eg. Townsville)
address["province"] The province, state, or region. Prefer 2-character ISO regions (eg. WA, BC) but full names are also accepted.
address["country"] The country. Prefer 2-character ISO countries (eg. US, CA) but full names are also accepted.
address["postal_code"] The ZIP or Postal Code (eg. 42748, V1V 1V1)
primary Boolean. If set at all, it must be set to true.

Path parameters

NameDescription
leadIDID of the lead.
addressIDID of the address, from List Addresses.

Leads / By Lead ID / Addresses

Get Address by ID

GET /v1/leads/{leadID}/addresses/{addressID} leads_read

Get an address by its ID.

To get the lead's primary address, use an ID of 0

Path parameters

NameDescription
leadIDID of the lead.
addressIDID of the address, from List Addresses.

Leads / By Lead ID / Addresses

Delete a Lead Address

DELETE /v1/leads/{leadID}/addresses/{addressID} leads_write

Delete an address from a lead.

Primary addresses ("id" = 0) cannot be deleted. To delete a primary address, first promote another address to primary.

Path parameters

NameDescription
leadIDID of the lead.
addressIDID of the address, from List Addresses.

Leads / By Lead ID / Emails

List Lead Emails

GET /v1/leads/{leadID}/emails leads_read

List all of the email addresses associated with a lead. The primary email address is the one that will receive email automations.

Path parameters

NameDescription
leadIDID of the lead.

Leads / By Lead ID / Emails

Add a Lead Email Address

POST /v1/leads/{leadID}/emails leads_write

Add a new email address to a lead. You can optionally include a primary boolean that will promote the new email address as the default.

Path parameters

NameDescription
leadIDID of the lead.

Leads / By Lead ID / Emails

Update Lead Email Address

PATCH /v1/leads/{leadID}/emails/{email} leads_write

Update a lead's email address. At the moment, only the primary flag can be set to true.

If you need to change an existing email address, you must first delete the current one, then create a new one to replace it.

Path parameters

NameDescription
leadIDID of the lead.
emailThe email address to change or remove.

Leads / By Lead ID / Emails

Delete a Lead Email Address

DELETE /v1/leads/{leadID}/emails/{email} leads_write

Delete a lead's email address.

The primary address cannot be deleted, so another must be promoted to primary first.

Path parameters

NameDescription
leadIDID of the lead.
emailThe email address to change or remove.

Leads / By Lead ID / Phones

List Lead Phone Numbers

GET /v1/leads/{leadID}/phones leads_read

List all of the phone numbers associated with a lead. The primary phone number is the one that will receive SMS automations.

Path parameters

NameDescription
leadIDID of the lead.

Leads / By Lead ID / Phones

Add a Lead Phone Number

POST /v1/leads/{leadID}/phones leads_write

Add a new phone number to a lead. You can optionally include a primary boolean that will promote the new number as the default.

Path parameters

NameDescription
leadIDID of the lead.

Leads / By Lead ID / Phones

Update Lead Phone Number

PATCH /v1/leads/{leadID}/phones/{phone} leads_write

Update a lead's phone number. At the moment, only the primary flag can be set to true.

If you need to change an existing number, you must first delete the current one, then create a new one to replace it.

Path parameters

NameDescription
leadIDID of the lead.
phoneThe phone number to change or remove.

Leads / By Lead ID / Phones

Delete a Lead Phone Number

DELETE /v1/leads/{leadID}/phones/{phone} leads_write

Delete a lead's phone number.

The primary number cannot be deleted, so another must be promoted to primary first.

Path parameters

NameDescription
leadIDID of the lead.
phoneThe phone number to change or remove.

Leads / By Lead ID

Get a lead by ID

GET /v1/leads/{leadID} leads_read

Get a single lead by ID

Requires scope(s): leads_read

Path parameters

NameDescription
leadIDID of the lead.

Leads / By Lead ID

Update a lead by ID

PATCH /v1/leads/{leadID} leads_write

Update one or more fields in a lead. Fields not included in the request body will not be modified.

For a list of all possible fields, see Create a lead.

Requires scope(s): leads_write

Path parameters

NameDescription
leadIDID of the lead.

Leads / By Lead ID

Delete a lead by ID

DELETE /v1/leads/{leadID} leads_write

Delete a lead

Requires scope(s): leads_write

Path parameters

NameDescription
leadIDID of the lead.

Leads / By Lead ID

Get all lead tags

GET /v1/leads/{leadID}/tags leads_read

Returns every tag on the lead.

Path parameters

NameDescription
leadIDID of the lead.

Leads / By Lead ID

Create tags for a lead

POST /v1/leads/{leadID}/tags leads_write

Create a tag on a lead

Parameter Description
tags Required An array containing a list of tags as strings

Requires scope(s): leads_write

Path parameters

NameDescription
leadIDID of the lead.

Leads / By Lead ID

Delete tags from lead

DELETE /v1/leads/{leadID}/tags leads_write

Path parameters

NameDescription
leadIDID of the lead.

Query parameters

NameDescription
tag

Get all leads

GET /v1/leads leads_read

Get a list of leads for the user.

Requires scope(s): leads_read

Accepts the following parameters

Parameter Value
limit (optional) How many leads to return back (default is 20)
page (optional) Which page to request

The max limit per request is 100 leads, if more than that is requested it will revert back to the default 20.

Get a notes on a Lead

GET /v1/leads/{leadID}/notes leads_read

Path parameters

NameDescription
leadIDID of the lead.

Create a lead

POST /v1/leads leads_write

This endpoint allows you to create a new lead in the system by submitting relevant contact and campaign information. It is typically used to capture leads generated from marketing campaigns, landing pages, or integrations with third-party platforms.

Request Body

Send a JSON object in the request body with the following fields:

Parameter Type Description
name_first string The lead's first (given) name.
name_last string The lead's last (family) name.
email string Required* Email address of the lead.
phone string Required* Primary phone number. Prefer E.164 formatting.
phone_cell string Mobile phone number (E.164 format recommended).
address string Residential address.
city string City of residence.
province string Province, state, or region of residence.
country string 2-character ISO country code (e.g., "US").
postal_code string Postal or ZIP code.
id_ad integer The ID of the StreetText ad the lead came through.
id_funnel integer The ID of the StreetText funnel the lead came through.
id_facebook_ad integer The ID of the Facebook ad the lead came through.
additional_data object An object containing key-value pairs of additional information to add to the lead.
tags array An array of tags to associate with the lead.

Example Request Body

{
  "name_first": "John",
  "name_last": "Doe",
  "email": "john.doe@example.com",
  "phone": "+1234567890",
  "address": "123 Main St",
  "city": "Springfield",
  "province": "CA",
  "country": "US",
  "postal_code": "90210",
  "id_ad": 12345,
  "id_funnel": 12345,
  "id_facebook_ad": 12345,
  "additional_data": {
    "key1": "value1",
    "key2": "value2"
  },
  "tags": ["buyer", "newsletter"]
}

Important Notes

  • Required Fields: Either email or phone must be provided to create a lead.
  • Formatting: For phone numbers, E.164 formatting is recommended (e.g., +1234567890).
  • Authentication: Requires the leads_write scope.

Success Response

  • Status Code: 201 Created
  • Response Body:
    { "id": 141932741 }
    

Error Responses

  • 400 Bad Request: Missing required fields or invalid input.

Usage

Use this endpoint to programmatically add new leads to your system, ensuring all required fields are included and formatted correctly. This is commonly used in marketing automation, CRM integrations, and lead capture workflows.

Domains

To run certain types of ads, custom domains are now required by some platforms, like Facebook. StreetText allows our customers to purchase a custom domain within their account to use as a landing page for prospective leads on these platforms.

Third parties can also register their own subdomains on a customer's domain to provide landing pages that can link back to a StreetText customer's collection of leads and funnels.

List a user's domains

GET /v1/domains domains_read

Get a list of the user's StreetText-registered domains.

Requires scope(s): domains_read

Get domain information

GET /v1/domains/{domain} domains_read

Get information about a given domain, including DNS records.

Note: Only DNS records created using your API key will be included in the records collection.

Requires scope(s): domains_read

Response Properties

Property Description
allowed_subdomains A list of DNS record names that your API key is permitted to create on this domain
date_registered The date the domain was registered
date_renewal The date the domain is due for renewal
name The domain name
records A list of the DNS records that have been created on the domain by your API key only

Path parameters

NameDescription
domainThe domain name, for example example.com.

Get domain records

GET /v1/domains/{domain}/records domains_read

Get a list of DNS records on a given domain.

Note: Only DNS records created using your API key will be returned.

Requires scope(s): domains_read

Path parameters

NameDescription
domainThe domain name, for example example.com.

Create a record on the domain

POST /v1/domains/{domain}/records domains_readdomains_write

Create a new DNS record under a given domain.

Requires scope(s): domains_read, domains_write

Path parameters

NameDescription
domainThe domain name, for example example.com.

Remove a domain record

DELETE /v1/domains/{domain} domains_readdomains_write

Remove a DNS record from a domain.

Note: Only DNS records created by your API key can be deleted.

Requires scope(s): domains_read, domains_write

Path parameters

NameDescription
domainThe domain name, for example example.com.

Query parameters

NameDescription
name
type

Funnels

Funnels need the funnels_read scope, which OAuth apps can request; personal API keys do not include it.

Get Leads in a Funnel

GET /v1/funnels/{funnelID}/leads funnels_read

Path parameters

NameDescription
funnelIDID of the funnel, from List Funnels.

List Funnels

GET /v1/funnels funnels_read

Webhooks

Webhooks in the StreetText API enable automated, real-time communication between StreetText and external systems by sending HTTP POST requests to a specified URL when certain events occur. These events might include actions like lead creation, SMS sent, or other critical interactions within the StreetText platform.

By configuring webhooks, developers can ensure that their applications receive immediate updates, allowing for seamless integration and synchronization with StreetText's event-driven architecture. This folder contains endpoints for managing webhook registrations, including creating, editing, deleting, and testing webhooks.

Request Signatures

HMAC (Hash-based Message Authentication Code) signing in the StreetText API provides an added layer of security by verifying that webhook requests originate from StreetText. Each webhook request includes a signature header (X-Streettext-Hmac-Sha256) which is generated using the SHA-256 algorithm.

This signature is a hash created by combining the JSON-encoded request body with a secret key unique to each webhook. When receiving a webhook, you can compute the HMAC hash using the same secret key and compare it with the signature in the header. If the hashes match, it confirms the integrity and authenticity of the request, ensuring that it originated from StreetText and has not been tampered with in transit.

List Webhooks

GET /v1/webhooks webhooks_read

This endpoint retrieves a list of webhooks registered by your application.

Webhooks created by other applications, or by the user directly will not be included.

Request

No body is required for this request.

Response

The response will be a JSON array containing the following fields:

Field Type Description
id_webhook string The ID of the webhook.
webhook_url string The URL of the webhook.
signing_key string An auto-generated key that will be used to sign each webhook request.
enabled boolean The webhook will not fire events when disabled
date_created date string The date the webhook was created
date_updated date string The date the webhook was last updated
events array of strings An array of events associated with the webhook.
webhook_api_version string The version of the webhook payload format.

Scope Required

  • webhooks_read

List Webhook Events

GET /v1/webhooks/events webhooks_read

This will return a list of all events that can currently be subscribed to.

Request

This request requires no body.

Response

Field Description
name The event name. Use this when registering webhooks.
description A brief description of when the event will fire

Scope Required

  • webhooks_read

Register a Webhook

POST /v1/webhooks webhooks_write

Register a new webhook.

Request

Field Type Description
webhook_url string The URL to which the webhook events will be sent.
events array of strings The list of events to subscribe to. See "List Webhook Events" for possible values.

Response

The created webhook will be returned.

See "List Webhooks" for a description of the fields that will be returned.

Scope Required

  • webhooks_write

Get a Webhook by ID

GET /v1/webhooks/{webhookID} webhooks_read

Retrieve the details of a specific webhook based on the provided webhook ID.

Response

Field Type Description
id_webhook string The ID of the webhook.
webhook_url string The URL of the webhook.
signing_key string An auto-generated key that will be used to sign each webhook request.
enabled boolean The webhook will not fire events when disabled
date_created date string The date the webhook was created
date_updated date string The date the webhook was last updated
events array of strings An array of events associated with the webhook.
webhook_api_version string The version of the webhook payload format.

Scope Required

  • webhooks_read

Path parameters

NameDescription
webhookIDID of the webhook, from List Webhooks.

Update a Webhook

PATCH /v1/webhooks/{webhookID} webhooks_write

Update the details of a specific webhook based on the provided webhook ID.

Request Body

  • Send webhook_url on every update, even when you only change events:

    • webhook_url (string): The URL of the webhook.

    • events (array): A complete array of events associated with the webhook. Events not included in this list will be removed from the webhook if previously set.

Scope Required

  • webhooks_write

Path parameters

NameDescription
webhookIDID of the webhook, from List Webhooks.

Test a Webhook

POST /v1/webhooks/{webhookID}/test webhooks_write

Send a sample payload to the configured webhook and report back the response status code and body your service returns.

Request

  • This endpoint requires no request body

Scope Required

  • webhooks_write

Path parameters

NameDescription
webhookIDID of the webhook, from List Webhooks.

Unregister a Webhook

DELETE /v1/webhooks/{webhookID} webhooks_write

Delete a webhook registration from StreetText.

Request

  • No body is required for this request

Response

  • 204 No Content if the webhook was unregistered successfully

  • This response includes no body

Scope Required

  • webhooks_write

Path parameters

NameDescription
webhookIDID of the webhook, from List Webhooks.

Custom Fields

Custom fields are account-wide definitions (for example Anniversary or Pre-approved). The values live on each lead in additional_data, keyed by the field's name, and are written through the leads endpoints.

List custom fields

GET /v1/customfields customfields_read

Returns every custom field defined on the account.

Query parameters

NameDescription
active_onlySet to 1 to leave out inactive fields.

Create a custom field

POST /v1/customfields customfields_write

Adds a new custom field to the account.

Body

NameDescription
namestringsnake_case key used in a lead's additional_data. Built from label when left out.
labelstringThe name people see. Required* (send name or label).
typestringtext, number, date, dropdown or checkbox. Defaults to text.
optionsarrayThe choices, for type = dropdown.
sort_orderintegerDisplay order, lowest first.
hide_if_emptyinteger1 hides the field on a lead until it has a value.
descriptionstringWhat the field means, in plain words (up to 300 characters).
ai_enabledinteger1 lets the StreetText AI read this field as context for each contact.

Get a custom field

GET /v1/customfields/{fieldID} customfields_read

Returns one custom field.

Path parameters

NameDescription
fieldIDID of the custom field.

Update a custom field

PATCH /v1/customfields/{fieldID} customfields_write

Changes only the fields you send. Set is_active to 0 to retire a field without deleting it.

Path parameters

NameDescription
fieldIDID of the custom field.

Body

NameDescription
namestringsnake_case key used in a lead's additional_data. Built from label when left out.
labelstringThe name people see. Required* (send name or label).
typestringtext, number, date, dropdown or checkbox. Defaults to text.
optionsarrayThe choices, for type = dropdown.
sort_orderintegerDisplay order, lowest first.
hide_if_emptyinteger1 hides the field on a lead until it has a value.
descriptionstringWhat the field means, in plain words (up to 300 characters).
ai_enabledinteger1 lets the StreetText AI read this field as context for each contact.
is_activeinteger0 retires the field.

Delete a custom field

DELETE /v1/customfields/{fieldID} customfields_write

Deletes the definition. Values already saved on leads are kept.

Path parameters

NameDescription
fieldIDID of the custom field.

Conversations

Text message conversations between your account and your leads. Needs the texting feature on the StreetText plan, and the conversations_read or conversations_write scope.

You are responsible for consent when you send messages through the API (TCPA in the US, CASL in Canada). Numbers on the Do Not Contact list are never texted.

List conversations

GET /v1/conversations conversations_read

Returns conversation threads, newest activity first.

Query parameters

NameDescription
filterneeds_reply, unread or all (default).
qSearch by lead name, phone or message text.
sinceUnix timestamp. Only threads with activity after this time.
limitThreads per page.
pagePage number, starting at 1.

Get conversation counts

GET /v1/conversations/counts conversations_read

How many conversations need a reply, are unread, and exist in total.

Get conversation details

GET /v1/conversations/{conversationUUID}/info conversations_read

The conversation plus the full lead it belongs to.

Path parameters

NameDescription
conversationUUIDThe conversation ID returned by List conversations.

List messages

GET /v1/conversations/{conversationUUID} conversations_read

The message history of one conversation. date_created is a Unix timestamp sent as a string.

Path parameters

NameDescription
conversationUUIDThe conversation ID returned by List conversations.

Query parameters

NameDescription
limitMessages per page (default 500).
pagePage number, starting at 1.

Send a message

POST /v1/conversations/{conversationUUID} conversations_write

Sends a text into an existing conversation from your StreetText number.

Path parameters

NameDescription
conversationUUIDThe conversation ID returned by List conversations.

Body

NameDescription
bodystringRequired. The message text.
attachmentsarrayImage URLs to send as MMS.

Start a conversation

POST /v1/conversations/send conversations_write

Sends the first text to a lead. Texts the lead's main number unless you name another of their numbers in phone_number.

Body

NameDescription
id_leadintegerRequired. The lead to text.
phone_numberstringOne of the lead's numbers to text instead of their main one, E.164 format.
bodystringRequired. The message text.
attachmentsarrayImage URLs to send as MMS.

Update a conversation

PATCH /v1/conversations/{conversationUUID} conversations_write

Mark a conversation read or archive it. Send either field, or both.

Path parameters

NameDescription
conversationUUIDThe conversation ID returned by List conversations.

Body

NameDescription
readbooleantrue marks every message read.
archivedbooleantrue archives the conversation.

Account

Get My User ID

GET /v1/me me_read

Returns the account the token belongs to, the role of the person who made it, and the scopes it holds. Needs the me_read scope, which OAuth apps can request; personal API keys do not include it.

Need help?

Email support@streettext.com with what you are building and we will help.

© 2026 StreetText® All Rights Reserved.

Request demo

Start generating leads tomorrow

Darryl Reuter Testimonial

Darryl Reuter

"Thanks to this program, I've closed 3 deals from StreetText, with 3 more pending. I'm very excited about it."

×