Help center

Integrations

Public API and API keys

The public API lets your own scripts, Zapier or Make work with an Outsquid project: add prospects, put them in a campaign, block addresses, and get events as they happen. It's on the Growth and Scale plans.

API keys

Go to Settings → Integrations and, under API keys, click Create API key. Copy the key when it's shown: it isn't shown again. Owners and admins can create and revoke keys; every member can see the list.

  • A key works in the project you were in when you created it. Make one key per project.
  • A key acts as the person who created it, with their current role. If they leave the organization, their keys stop working.
  • Revoke a key to stop it at once. Triggers it set up in Zapier are removed with it.

Send the key in a header with every request:

Authorization: Bearer osq_your_key

(X-Api-Key: osq_your_key works too.)

Basics

  • Base URL: https://getoutsquid.com/api/public/v1
  • Bodies are JSON (Content-Type: application/json).
  • A key can make 120 requests a minute. Past that you get 429 with a Retry-After header.
  • Responses look like { "status": "success", "data": … }. Errors look like { "status": "error", "message": "invalid_api_key" }, with a matching HTTP status.
StatusMessageMeaning
401api_key_requiredNo key was sent.
401invalid_api_keyThe key is wrong or revoked, or its creator left the organization.
403api_not_in_planThe organization's plan doesn't include the API, or its trial or subscription has ended.
403forbidden_permissionThe key's creator may not do this (only owners and admins manage hooks).
400invalid_email, invalid_webhook_url, campaign_completed, no_active_mailbox…The request can't be done as asked.
404campaign_not_found, prospect_not_found, hook_not_foundNot found in this project.

Check a key

GET /me returns the organization and project the key works in.

curl https://getoutsquid.com/api/public/v1/me \
  -H "Authorization: Bearer osq_your_key"

Prospects

Create or update — POST /prospects. One prospect per email in a project: if one already exists, onExisting says what to do.

curl https://getoutsquid.com/api/public/v1/prospects \
  -H "Authorization: Bearer osq_your_key" \
  -H "Content-Type: application/json" \
  -d '{
    "email": "[email protected]",
    "firstName": "Jane",
    "company": "Acme",
    "customFields": { "industry": "Software" },
    "onExisting": "update"
  }'

Fields: email (required), firstName, lastName, company, title, phone, website, linkedinUrl, city, state, country, timezone (an IANA name such as America/New_York), customFields (name → value).

onExisting:

  • update (default): set the fields you send; custom fields are merged in.
  • fill_blank: only fill fields that are empty now.
  • skip: leave the existing prospect as it is.

The answer is { "prospect": { … }, "created": true }, with status 201 when it was created and 200 when it already existed. A blacklisted address is created with status blacklisted and is never emailed.

Find by email — GET /[email protected] returns the prospect, or 404 prospect_not_found.

Add a prospect to a campaign

POST /campaigns/{campaignId}/prospects takes the same body as POST /prospects: it creates or updates the prospect, then adds it.

  • A running or paused campaign starts it at the first step.
  • A draft takes it into its audience; it starts when you launch.

The answer is { "prospect": { … }, "created": false, "added": true }. added is false when the prospect can't join: it's already in the campaign, it's blacklisted or unsubscribed, or the campaign's rules keep it out. That isn't an error.

GET /campaigns lists the project's campaigns (id, name, status); ?status=active narrows it.

Blacklist

POST /blacklist with { "type": "email", "value": "[email protected]" } or { "type": "domain", "value": "acme.com" }. Matching prospects are blacklisted and stopped in every campaign right away.

Events (REST hooks)

Subscribe a URL of yours to an event, and Outsquid posts each one to it, like a webhook (same body, same signature headers).

  • POST /hooks with { "url": "https://…", "event": "reply.classified" } returns { "id": "…" }. The URL must be https. One event per hook.
  • DELETE /hooks/{id} removes it (only hooks made with the same key).
  • GET /hooks/samples?event=reply.classified returns up to 3 of the project's latest real deliveries of that event, or one example when there are none yet.

If your URL answers 410 Gone, the hook is removed: that's how Zapier says a Zap was turned off. The events are the same as for webhooks: see the list.

Hooks you make with a key show in Settings → Webhooks with a Zapier label, and revoking the key removes them.

Make

Use Make's HTTP → Make a request module with the base URL above and the Authorization: Bearer osq_your_key header. To get events in Make, add a webhook in Settings → Webhooks pointing at a Make Custom webhook.

Related

Last updated 2026-11-15Still stuck? Contact support