Stylograph API

Find recipients in the address book

Finds people in the account's address book, so a send can name one by `recipient_id`. Every word of `q` must appear in the first name, last name or company, without case; with no `q`, the list starts at the top of the alphabet. Archived recipients are left out. A match shows names, company, city and state, never the street lines or ZIP. Needs `notes:send`, the scope that can already send to anyone in the address book.

GET
/api/v1/recipients

Finds people in the account's address book, so a send can name one by recipient_id. Every word of q must appear in the first name, last name or company, without case; with no q, the list starts at the top of the alphabet. Archived recipients are left out. A match shows names, company, city and state, never the street lines or ZIP. Needs notes:send, the scope that can already send to anyone in the address book.

Authorization

ApiKeyAuth
headerAuthorizationBearer <API key (sg_live_...)>

An API key from Settings.

Query Parameters

q?string

Up to 5 words, e.g. Aaron Tainter or AlphaLab. Letters, digits, spaces and . , ' & - only.

Lengthlength <= 80
limit?integer
Range1 <= value <= 50
Default20

Response Body

The matches, and whether more matched than limit.

application/json
  1. response
data*array<>
has_more*boolean

More recipients matched than limit. Narrow q to find the one you want.

Example Request
curl -X GET 'https://composer.stylograph.ai/api/v1/recipients'
Example Response
{  "data": [    {      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",      "honorific": "string",      "first_name": "string",      "last_name": "string",      "company": "string",      "city": "string",      "state": "string",      "address_complete": true    }  ],  "has_more": true}