generate run can
extract from it with no files uploaded — see
extract_via_api. If the connector
still needs secrets, the run pauses at blocked and you
submit credentials.
{migration_id} is the id from
creating a migration.
Authentication
Requires anx-api-key header. See Authentication.
Create or update a connection
source_key and profile.
The connector to attach, lower-cased (e.g.
salesforce, hubspot). An unknown
or not-yet-enabled key returns 400.Scopes the connection to a profile. Omit to use the request’s default profile;
pass
null to bind it to the workbook itself rather than a profile.Connector configuration (non-secret) — host, account, region, and similar
fields the connector needs. Defaults to
{}.The streams (objects) to extract. Omit or pass
null to let the connector
decide.Incremental-sync cursor state to resume from. Defaults to
{}.Secret values for the connector. Written to a secured vault and never
returned, persisted on the connection row, or placed in the agent thread. You
can also supply them later via
Submit credentials.
Response
201 Created
Read the connection
404 if none is configured. The
response never includes secret values — use creds_configured to tell whether
credentials are on file.
Filter to a specific connector when more than one could match.
The profile to read. Pass the literal
workbook to read the workbook-bound
connection (the one saved with profile_id: null).The connection object
The connection ID. Echoed in a run’s
credential_request so you know
which connection a credential prompt belongs to.The connector key you created it with.
The connector’s display name, suitable for your UI. Falls back to
source_key.The connector’s grouping (e.g.
CRM), or null.The non-secret configuration you set.
The streams to extract, or
null for connector default.The incremental-sync cursor state.
true once credentials are stored — the only signal exposed about secrets.The authored extractor bound to this connection, once the agent has built one.
Metadata about the most recent extraction (streams, file count, timestamp), or
null before the first run.When data was last pulled, or
null.Remove the connection
source_key and profile_id query parameters as GET.
Errors
| Status | Meaning |
|---|---|
400 | (POST) source_key missing, unknown, or not enabled for your account; malformed JSON. |
401 | API key missing or invalid. |
404 | (GET) no connection configured for the migration; the migration isn’t in your account. |
429 | Rate limit hit — back off and retry. |
500 | Server error. |
Example
Next
- Start a run — set
extract_via_apito pull from the connection. - Submit credentials — answer a run that paused for secrets.
- Poll a run — watch the extraction and read the report.