Skip to content

Use the public API

Use the public API for authorized automation against Blackbird Nests and Lakes. It uses organization API keys, separately from your browser session. To connect an assistant with user OAuth, see MCP.

Resource Production address
Blackbird UI fly.blackbird.io
Interactive API reference api.blackbird.io
OpenAPI document api.blackbird.io/openapi.json

Use the reference for the environment containing your resources. For staging tests, use staging.fly.blackbird.io and staging.api.blackbird.io with staging credentials and staging resource IDs. Do not mix environments.

Create a key in Settings → Organization → API Keys with the specific Nests, Lakes, and operation permissions your integration needs. See API-key management for creation steps and permission details.

Review operation permissions alongside the API reference before making requests.

All /v1/ operations require this header:

Authorization: Bearer <organization-api-key>

For example, list the Lakes visible to a key with the required Lake access:

Terminal window
curl --fail-with-body https://api.blackbird.io/v1/lakes \
--header "Authorization: Bearer $BLACKBIRD_API_KEY"

Set BLACKBIRD_API_KEY securely in the calling environment; the example contains no real key. For staging, change the host to https://staging.api.blackbird.io and use a staging key. The public /health endpoint tests service health without proving authenticated Nest and Lake access.

Check the OpenAPI reference for request schemas, required operation permissions, resource identifiers, and response fields before adding writes. Bird-definition edits, publishing, activation, and execution are distinct operations. A saved draft is not proof that the published definition changed.

All paths below start with /v1. Permissions and the API key’s selected Nests or Lakes both apply.

Task Method and path Required permission
List Birds GET /nests/{nestId}/birds nest:birds:view
Read a Bird definition GET /nests/{nestId}/birds/{birdId}/definition nest:birds:view
Inspect input/output fields GET /nests/{nestId}/birds/{birdId}/schema nest:birds:view
Fly an On demand Bird POST /nests/{nestId}/birds/{birdId} nest:birds:trigger
List one Bird’s Flights GET /nests/{nestId}/birds/{birdId}/flights nest:flights:view
List Flights in a Nest GET /nests/{nestId}/flights nest:flights:view
Inspect a Flight and its steps GET /nests/{nestId}/flights/{flightId} nest:flights:view
Read a Flight’s logs GET /nests/{nestId}/birds/{birdId}/flights/{flightId}/logs nest:flights:view
Read the last step’s output GET /nests/{nestId}/birds/{birdId}/flights/{flightId}/output nest:flights:view
Create a draft Bird POST /nests/{nestId}/birds/definition nest:birds:manage
Replace the saved definition PUT /nests/{nestId}/birds/{birdId}/definition nest:birds:manage
Publish saved changes POST /nests/{nestId}/birds/{birdId}/publish nest:birds:manage
Activate a published Bird POST /nests/{nestId}/birds/{birdId}/activate nest:birds:manage
Suspend a Bird POST /nests/{nestId}/birds/{birdId}/deactivate nest:birds:manage

The definition endpoint returns the latest saved definition by default. Add published=true to read the live definition. The separate /schema endpoint describes available fields and current bindings; it is a read-only reference, not a document to send back to the definition endpoint.

See Bird lifecycle before editing, publishing, activating, or deactivating a Bird.

Create and update requests contain the full editable definition. They save a draft by default; publish=true publishes it in the same request. The save response includes birdId, status, isPublished, and any webhookPayloadUrls. Publishing a suspended Bird leaves it suspended. Activation and deactivation are state transitions rather than idempotent operations; read the current state before retrying them.

The On demand fly endpoint has no input body. Configure its action inputs in advance. Sending JSON to that POST is not a way to pass values to a Flight.

For request-specific data, use an event Bird with a callback-capable App event. The event parses the payload and exposes fields to subsequent steps. Publish the Bird, obtain its callback URL, and use the authentication required by that App. See SDK callbacks if you are implementing the receiving event yourself.

Include your own request identifier, such as requestId, with the content ID and target language. Map it into the Bird’s steps and return or record it with the result, for example by calling your application’s result endpoint. This gives your application a business-level correlation key. It does not change the On demand endpoint’s empty 204 response or create a synchronous result API.

Keep the callback URL current after republishing and prevent repeated requestId values from creating duplicate business work in your receiving system.

Use an existing On demand Bird with its action inputs and connections already configured. The API calls this trigger type manual. Your API key needs access to the Nest, nest:birds:trigger to fly the Bird, and nest:flights:view to inspect its Flights. Add nest:birds:view if you also need to read its configuration.

The fly endpoint accepts no request body and returns 204 No Content when the start request is accepted. Its response is empty and contains no Flight ID. The Flight starts asynchronously, so acceptance does not mean the Bird has finished.

Use a Bird whose starts you control for this walkthrough. Set its identifiers and API base address, then list its existing Flights:

Terminal window
export BLACKBIRD_API_BASE="https://api.blackbird.io/v1"
export NEST_ID="your-nest-id"
export BIRD_ID="your-bird-id"
curl --fail-with-body \
"$BLACKBIRD_API_BASE/nests/$NEST_ID/birds/$BIRD_ID/flights" \
--header "Authorization: Bearer $BLACKBIRD_API_KEY"

This endpoint returns an array. Record its existing id values so you can identify a newly appearing Flight after the start request.

Send the POST without JSON or other input data. Configure action inputs in the Bird before this request.

Fly an On demand Bird
curl --fail-with-body --include --request POST \
"$BLACKBIRD_API_BASE/nests/$NEST_ID/birds/$BIRD_ID" \
--header "Authorization: Bearer $BLACKBIRD_API_KEY"

The successful response has status 204 and no body. Do not try to parse it as JSON or extract a Flight ID from it.

List the Bird’s Flights again using the GET from step 1. The new Flight may take a short time to appear. Repeat that read within your integration’s discovery timeout, compare IDs with the earlier list, and inspect each candidate’s birdId and startDate.

If other people or integrations start the same Bird between these reads, several new Flights can appear. The 204 response provides no identifier to distinguish them. A latest timestamp alone is not reliable correlation. If your integration must associate each request with exactly one Flight, coordinate starts across callers for that Bird. This endpoint cannot provide that association when starts overlap.

If no Flight appears, inspect the Bird’s state and logs before sending another POST. A timed-out start request may already have been accepted, and repeating it can start duplicate work.

Once you have identified the Flight, use its ID to read its status and step history:

Terminal window
export FLIGHT_ID="the-id-from-the-flight-list"
curl --fail-with-body \
"$BLACKBIRD_API_BASE/nests/$NEST_ID/flights/$FLIGHT_ID" \
--header "Authorization: Bearer $BLACKBIRD_API_KEY"

Poll this GET at an interval appropriate to the task. active and waiting are unfinished; succeeded, failed, stopped, and cancelled are terminal. Set a client-side timeout for the wait. Reaching that timeout does not stop the Flight.

For more detail, request its logs:

Terminal window
curl --fail-with-body \
"$BLACKBIRD_API_BASE/nests/$NEST_ID/birds/$BIRD_ID/flights/$FLIGHT_ID/logs" \
--header "Authorization: Bearer $BLACKBIRD_API_KEY"

Inspect the final step’s output through the /output endpoint listed above and check the destination system. See Flight statuses and retry guidance before repeating failed work.

The Nest Flight list returns { "items": [...], "totalCount": 0 }. It is ordered newest first and uses zero-based pageIndex. See pagination limits for page-size defaults and maximums. Filters combine with AND. Supported status filters are succeeded, failed, active, waiting, and stopped.

Terminal window
curl --fail-with-body --get \
"https://api.blackbird.io/v1/nests/$NEST_ID/flights" \
--header "Authorization: Bearer $BLACKBIRD_API_KEY" \
--data-urlencode "status=failed" \
--data-urlencode "pageIndex=0" \
--data-urlencode "pageSize=50"

Use the returned id to request GET /v1/nests/{nestId}/flights/{flightId}. That response includes the Bird identity, status, error information, and ordered step history with available inputs and outputs. A Flight’s duration and each step’s duration are measured in seconds.

The Bird-specific /birds/{birdId}/flights endpoint returns an array, not the paginated Nest response. Its status filters are succeeded, failed, cancelled, and active. Do not reuse the Nest pagination parameters for this endpoint.

This illustrative response shows the detail shape for a completed Flight. Actual step inputs and outputs depend on the Bird.

{
"id": "flight-example",
"birdId": "bird-example",
"nestId": "nest-example",
"birdName": "Translate blog post",
"status": "succeeded",
"errorMessages": null,
"startDate": "2026-12-04T10:00:00Z",
"duration": 2,
"steps": [{
"stepId": "translate",
"state": "succeeded",
"startTime": "2026-12-04T10:00:00Z",
"endTime": "2026-12-04T10:00:02Z",
"duration": 2,
"errorMessage": null,
"loopStepId": null,
"loopIteration": null,
"inputs": { "text": "Welcome" },
"outputs": { "text": "Welkom" }
}]
}
API value UI label Meaning
active Flying Executing; check again later
waiting Waiting Waiting at a Checkpoint; not a terminal result
succeeded Completed Completed successfully
failed Failed Ended with an error
stopped Stopped Execution was stopped
cancelled No separate label in the current Nest list A terminal API value; inspect its details before starting replacement work

Treat stopped and cancelled as distinct returned values. The Nest and Bird list filters differ as described above; not every response status is available as a filter on both endpoints.

The public routes on this page use /v1. A Bird definition’s optional version field refers to its definition schema, separately from the REST path version. Use the environment’s OpenAPI document for the current contract and review release notes when updating an integration.

Authentication, authorization, rate-limit, and service errors use an error string:

{ "error": "Too many requests" }

Validation errors return 422 with error and an issues array. Each issue includes code, path (field names or array indexes), and message. Some downstream Bird errors return problem details with optional title, status, detail, and instance fields. Branch on HTTP status first and handle the documented shape for that operation.

The API’s own 429 response currently does not set Retry-After. If a response includes that header, honor it; otherwise use bounded backoff with jitter and the request budget. Automatic retries of start or write requests require separate duplicate-work handling.

Interface Use it for Authorization
Public API Your own software reading or changing Blackbird Organization API key with operation and Nest/Lake scope
MCP An assistant using Blackbird tools The signed-in user’s active organization and permissions
Blackbird Service API App Actions and events inside a Bird, such as operational notifications The App connection configured for that step

An App action label is not an HTTP endpoint name. Use this API’s OpenAPI document for external HTTP integrations and the App reference when configuring a Bird step.

See API-key rotation and expiration under API. Revoking browser sessions does not revoke integration keys.

Response or symptom What to check
401 Bearer header, key value, expiration/revocation, and environment
403 Operation permission, selected Nest/Lake scope, membership/service access
404 Correct resource ID and environment; follow the endpoint’s response details
422 or another validation error Request schema, input types, and resource relationships
429 Rate-limit response and retry guidance; avoid immediate repeated requests
5xx Record the time and request/operation details; retry only when its side effects are safe

If an error follows a create or upload operation, verify whether the destination already changed before retrying. Do not print authorization headers or secrets in diagnostics.