API reference

Overview

A JSON API over HTTPS. Every page here is generated from the API's own declarations, so it lists exactly the fields the server accepts.

Base URL

Base URL
https://yousendit.io/api/v1

Authentication

Send your private key as Authorization: Bearer ysk_…, from your server only. More about keys and rate limits →

Responses

Successful answers are JSON objects with an object field. Lists are { "object": "list", "data": [ … ], "has_more", "next_cursor" }: pass next_cursor as cursor for the next page. Errors are described in Errors and limits.

Endpoints

Emails

Transactional email: send, batch, look up, reschedule and cancel.

Templates

The transactional templates designed in the app.

Campaigns

Marketing campaigns to your lists and segments.

Profiles

Your contacts: create, update, read and delete them.

Lists

Static lists and who is on them.

Segments

Segments (defined in the app) and their members.

Events

Activity on a profile: record, import and read events.

Metrics

The kinds of activity your account records.

Catalog

Your products and their variants.

Orders

Orders from your store, for revenue and flows.