Skip to content
Products › API · Platform

Start the crew's work from your own code.

The REST API at /api/v1 does what the app does: list projects and teammates, start a teammate job and follow its run. Drafts still wait for approval in the app.

REST, with an OpenAPI file
/api/v1
requests a minute
300
a retried POST with the same key runs
Once
a key's powers, never an owner's
Member
Start a jobPOST
curl https://crewferry.com/api/v1/organizations/$ORG/teammates/$THEO/jobs \ -H "Authorization: Bearer $API_KEY" \ -d '{"skill": "icp-search", "prompt": "10 teams that just raised"}'

Illustrative screen — sample data.

How it works

From a key to a job the crew runs, with a person still deciding.

  1. 1

    Create a key

    Name it and pick when it expires. An owner or admin does this.

  2. 2

    Copy it once

    The full key shows one time only. Store it in your password manager.

  3. 3

    Start a job

    A teammate, a skill and a prompt, in one POST.

  4. 4

    Follow the run

    Read its events until it's done.

  5. 5

    A person decides

    Proposals it makes wait for approval in the app.

Keys

Keys that belong to the organization, not to a person.

Keys keep working if the person who made them leaves. Each starts with cw_live_, so you and secret scanners can spot one. Revoking stops it at once, and creating and revoking both show in the audit log.

NeverIn 30 daysIn 90 daysIn a year

Expires: pick one when you create the key.

  • Nightly export script · cw_live_…3f9aNever
  • Website sign-ups · cw_live_…a21cIn 90 days
  • Old import script · cw_live_…07beRevoked

Each key shows its name, who created it, when it was last used and when it expires.

Safe retries

Send it twice, it runs once.

Every POST takes an Idempotency-Key. Retry with the same key and the same request, and you get the first answer back instead of a second job. Lists page by cursor: 20 by default, up to 100.

  • POST …/jobs · Idempotency-Key: sync-0412201 Created
  • Same request, same key, after a timeoutFirst answer replayed
  • Same key, different bodyRefused
  • Over 300 requests in 60 seconds429, try again
A key acts like a member

It can start work. It can't change the rules.

Anything that needs an owner or admin, or a signed-in person, is refused. Notes a key writes are tagged From outside text and need a look until a person reviews them.

  • List projects and teammatesAllowed
  • Start a job and follow its runAllowed
  • Save a noteWaits for review
  • Change sending settings or resume sendingRefused
  • Change the time zoneRefused
Numbers and limits

The numbers your code can count on.

Base/api/v1, with the OpenAPI file at /api/v1/openapi.json
Reference/api/reference
KeysUp to 25 per organization
Rate300 requests a minute; past that, a 429
PagesCursor pagination: 20 by default, 100 at most
RetriesIdempotency-Key on every POST
Compared

An AI API vs. an API to a crew with approvals.

Compared onA raw AI APICrewferry API
What you callA modelA teammate with its skills and notes
What comes backTextA run with events, results and proposals
Anything that goes outUp to your codeWaits for a person, as you set it
A retried requestRuns againRuns once with an Idempotency-Key
Who owns the keyOften one personThe organization
What it won't do

What a key never does.

  • No owner powers

    A key acts like a member. Owner and admin actions are refused.

  • No approving

    Proposals a key starts wait for a person in the app.

  • No trusted notes

    Notes a key writes wait as new until a person reviews them.

  • No second look at the key

    The full key shows once. Lost it? Revoke it and create another.

Questions

About the API.

Where's the reference?

At /api/reference, with the OpenAPI file at /api/v1/openapi.json.

Who can create keys?

Owners and admins, in Organization settings › API keys. Your organization can have up to 25.

Who owns a key?

Your organization, so it keeps working if the person who made it leaves.

Are there rate limits?

Yes: 300 requests a minute. Past that a request gets a 429; wait a moment and try again.

Can the API approve drafts?

No. A key acts like a member, and what it starts waits for a person to approve it in the app.

What if my script retries a request?

Send an Idempotency-Key with each POST. The same key and request give back the first answer instead of running twice.

Can another tool start a routine?

Yes. Turn on a routine's URL and call it, up to 30 times an hour. The text you send is read as data.

More of the platform

Plug the crew into your stack.

Get started

Sign in with Google or Microsoft · Sends from your own inbox · Nothing goes out without your OK