API reference

Connections

An organisation connects each portal once through a hosted consent flow. A link session starts the flow; a connection is the result. One connection per portal per organisation, each with its own credentials, so access to one never opens another.

Start connecting a portal

POST/link-sessions

Creates a link session and returns the URL of the hosted consent page. Send an admin of the organisation to that URL. They choose the portal (or confirm the one you preselected), sign in to it the way that portal requires, and approve the scopes. When they finish:

  • they are redirected to redirect_uri with link_session_id and status as query parameters,
  • a connection.created webhook is sent, and
  • GET /link-sessions/{link_session_id} returns the new connection_id.

There is no token to exchange. The connection ID is not a secret: only a key belonging to the same organisation can use it.

To repair a connection in needs_reauth, create a link session with its connection_id. The admin signs in again and the same connection returns to active.

Headers

Airstride-Versionstring
The API version, as a date. Defaults to the version pinned on the key. The first version of Open Partnerships is 2026-12-01.
Idempotency-KeystringRequired
A unique value per logical write, such as a UUID. Required on every write. Retry with the same key and the same body after a timeout or network error; you get the original response, never a second registration or a second claim.

Request body

portal_idstring
Preselect the portal. Leave it out to let the admin choose from the catalogue.
connection_idstring
Reauthorise this existing connection instead of creating a new one.
scopesarray of string
Scopes to ask the admin for. Defaults to every scope the portal supports, except passthrough.
redirect_uristring (uri)
Where to send the admin when they finish or cancel. Must use HTTPS.
end_organizationEndOrganization
For platforms, such as a CPQ or PSA tool, that act for many customer organisations with one key. Identifies which customer a connection belongs to. Leave it out when you act only for your own organisation.
end_organization.external_idstringRequired
Your ID for the customer.
end_organization.namestring

Responses

201
The link session.
400
Invalid parameters, or a version we do not recognise.
401
Missing or invalid API key.
403
The key is valid but cannot do this. Includes a key without the Open Partnerships permission (FORBIDDEN) and a connection whose admin did not grant the scope this call needs (SCOPE_NOT_GRANTED).
404
The resource does not exist, or belongs to another organisation.
409
The request conflicts with the current state. Codes include IDEMPOTENCY_KEY_REUSED, CONNECTION_NEEDS_REAUTH, CONNECTION_DISCONNECTED, CONNECTION_EXISTS and JOB_ALREADY_RUNNING.
422
The request parsed but failed validation. Codes include VALIDATION_FAILED, CAPABILITY_NOT_SUPPORTED, REGISTRATION_NOT_APPROVED and CLAIM_WINDOW_CLOSED.
429
Rate limited. Wait until X-RateLimit-Reset before retrying.
500
Something broke on our side.
Request
curl -X POST "https://app.airstride.ai/api/open-partnerships/link-sessions" \
  -H "X-API-Key: $AIRSTRIDE_API_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{
  "portal_id": "portal_cisco",
  "scopes": [
    "deal_registrations",
    "program_rules",
    "rebates"
  ],
  "redirect_uri": "https://crm.example.com/settings/portals/done"
}'
Response 201
{
  "id": "ls_3vR9xk",
  "status": "pending",
  "mode": "create",
  "url": "https://connect.airstride.ai/link/ls_3vR9xk",
  "portal_id": "portal_cisco",
  "connection_id": null,
  "scopes": [
    "deal_registrations",
    "program_rules",
    "rebates"
  ],
  "redirect_uri": "https://crm.example.com/settings/portals/done",
  "end_organization": null,
  "failure_reason": null,
  "expires_at": "2026-11-25T10:00:00Z",
  "created_at": "2026-11-24T10:00:00Z"
}

Get a link session

GET/link-sessions/{link_session_id}

Path parameters

link_session_idstringRequired

Headers

Airstride-Versionstring
The API version, as a date. Defaults to the version pinned on the key. The first version of Open Partnerships is 2026-12-01.

Responses

200
The link session.
401
Missing or invalid API key.
404
The resource does not exist, or belongs to another organisation.
429
Rate limited. Wait until X-RateLimit-Reset before retrying.
500
Something broke on our side.
Request
curl -X GET "https://app.airstride.ai/api/open-partnerships/link-sessions/{link_session_id}" \
  -H "X-API-Key: $AIRSTRIDE_API_KEY"

List connections

GET/connections

Query parameters

statusstring
active: working. needs_reauth: the portal refused the stored sign-in, for example after a password change; writes are refused with 409 CONNECTION_NEEDS_REAUTH until an admin reconnects through a link session in reauth mode. disconnected: credentials deleted.One of active, needs_reauth, disconnected
portal_idstring
end_organization_external_idstring
For platforms acting for many customers. Filters to one customer.
limitinteger
Page size.
cursorstring
The next_cursor from the previous page.

Headers

Airstride-Versionstring
The API version, as a date. Defaults to the version pinned on the key. The first version of Open Partnerships is 2026-12-01.

Responses

200
A page of connections.
400
Invalid parameters, or a version we do not recognise.
401
Missing or invalid API key.
429
Rate limited. Wait until X-RateLimit-Reset before retrying.
500
Something broke on our side.
Request
curl -X GET "https://app.airstride.ai/api/open-partnerships/connections" \
  -H "X-API-Key: $AIRSTRIDE_API_KEY"

Get a connection

GET/connections/{connection_id}

Path parameters

connection_idstringRequired

Headers

Airstride-Versionstring
The API version, as a date. Defaults to the version pinned on the key. The first version of Open Partnerships is 2026-12-01.

Responses

200
The connection.
401
Missing or invalid API key.
404
The resource does not exist, or belongs to another organisation.
429
Rate limited. Wait until X-RateLimit-Reset before retrying.
500
Something broke on our side.
Request
curl -X GET "https://app.airstride.ai/api/open-partnerships/connections/{connection_id}" \
  -H "X-API-Key: $AIRSTRIDE_API_KEY"
Response 200
{
  "id": "conn_8f2kq1",
  "portal": {
    "id": "portal_cisco",
    "name": "Cisco",
    "kind": "vendor"
  },
  "status": "active",
  "status_detail": null,
  "auth_method": "credentials",
  "scopes": [
    "deal_registrations",
    "program_rules",
    "rebates"
  ],
  "remote_account": {
    "id": "PRT-1029384",
    "name": "Example Reseller Ltd",
    "tier": "Gold"
  },
  "authorized_by": {
    "name": "Alex Morgan",
    "email": "alex.morgan@reseller.example"
  },
  "authorized_at": "2026-11-24T10:06:12Z",
  "last_synced_at": "2026-11-24T10:20:00Z",
  "end_organization": null,
  "created_at": "2026-11-24T10:06:12Z",
  "updated_at": "2026-11-24T10:20:00Z"
}

Disconnect a portal

DELETE/connections/{connection_id}

Disconnects the portal and deletes the credentials Airstride holds for it. Jobs still queued on the connection are cancelled. Objects already synchronised stay readable, so your history is kept. To connect the portal again, start a new link session.

Path parameters

connection_idstringRequired

Headers

Airstride-Versionstring
The API version, as a date. Defaults to the version pinned on the key. The first version of Open Partnerships is 2026-12-01.
Idempotency-KeystringRequired
A unique value per logical write, such as a UUID. Required on every write. Retry with the same key and the same body after a timeout or network error; you get the original response, never a second registration or a second claim.

Responses

200
The connection, now disconnected.
401
Missing or invalid API key.
403
The key is valid but cannot do this. Includes a key without the Open Partnerships permission (FORBIDDEN) and a connection whose admin did not grant the scope this call needs (SCOPE_NOT_GRANTED).
404
The resource does not exist, or belongs to another organisation.
429
Rate limited. Wait until X-RateLimit-Reset before retrying.
500
Something broke on our side.
Request
curl -X DELETE "https://app.airstride.ai/api/open-partnerships/connections/{connection_id}" \
  -H "X-API-Key: $AIRSTRIDE_API_KEY" \
  -H "Idempotency-Key: $(uuidgen)"

Get what a connection supports

GET/connections/{connection_id}/capabilities

Says which operations this connection supports, which common-model fields the portal reads and writes, and which vendor_fields it accepts. Coverage is per connection rather than per portal because the organisation's own portal account decides some of it: the programmes it is enrolled in, and the permissions its sign-in carries.

Path parameters

connection_idstringRequired

Headers

Airstride-Versionstring
The API version, as a date. Defaults to the version pinned on the key. The first version of Open Partnerships is 2026-12-01.

Responses

200
The connection's capabilities.
401
Missing or invalid API key.
404
The resource does not exist, or belongs to another organisation.
429
Rate limited. Wait until X-RateLimit-Reset before retrying.
500
Something broke on our side.
Request
curl -X GET "https://app.airstride.ai/api/open-partnerships/connections/{connection_id}/capabilities" \
  -H "X-API-Key: $AIRSTRIDE_API_KEY"
Response 200
{
  "connection_id": "conn_8f2kq1",
  "portal_id": "portal_cisco",
  "operations": [
    {
      "operation": "deal_registrations.read",
      "supported": true,
      "typical_duration_seconds": null,
      "note": null
    },
    {
      "operation": "deal_registrations.create",
      "supported": true,
      "typical_duration_seconds": 90,
      "note": null
    },
    {
      "operation": "deal_registrations.extend",
      "supported": true,
      "typical_duration_seconds": 60,
      "note": "Only on programs that allow extensions."
    },
    {
      "operation": "quotes.create",
      "supported": false,
      "typical_duration_seconds": null,
      "note": "Quotes go through a distributor connection."
    },
    {
      "operation": "passthrough",
      "supported": false,
      "typical_duration_seconds": null,
      "note": null
    }
  ],
  "fields": {
    "deal_registration": [
      {
        "field": "customer.name",
        "read": true,
        "write": true,
        "required_on_write": true
      },
      {
        "field": "customer.country",
        "read": true,
        "write": true,
        "required_on_write": true
      },
      {
        "field": "opportunity.amount",
        "read": true,
        "write": true,
        "required_on_write": true
      },
      {
        "field": "opportunity.expected_close_date",
        "read": true,
        "write": true,
        "required_on_write": true
      },
      {
        "field": "products",
        "read": true,
        "write": true,
        "required_on_write": false
      }
    ]
  },
  "vendor_fields": {
    "deal_registration": {
      "type": "object",
      "properties": {
        "industry_vertical": {
          "type": "string",
          "enum": [
            "Transportation",
            "Retail",
            "Healthcare",
            "Finance",
            "Other"
          ]
        }
      },
      "required": [
        "industry_vertical"
      ]
    }
  },
  "passthrough": {
    "supported": false,
    "base_path": null
  },
  "refreshed_at": "2026-11-24T10:20:00Z"
}

Refresh a connection now

POST/connections/{connection_id}/syncRuns as a job

Airstride refreshes every connection on a schedule. This asks for a refresh now, for example after a seller has registered a deal directly in the portal. Returns a job. Requests made while a refresh is already running return that job.

Path parameters

connection_idstringRequired

Headers

Airstride-Versionstring
The API version, as a date. Defaults to the version pinned on the key. The first version of Open Partnerships is 2026-12-01.
Idempotency-KeystringRequired
A unique value per logical write, such as a UUID. Required on every write. Retry with the same key and the same body after a timeout or network error; you get the original response, never a second registration or a second claim.

Request body (optional)

resourcesarray of string
Which resources to refresh. Defaults to every resource in the connection's scopes.

Responses

202
Accepted. The work is running as a job.
401
Missing or invalid API key.
404
The resource does not exist, or belongs to another organisation.
409
The request conflicts with the current state. Codes include IDEMPOTENCY_KEY_REUSED, CONNECTION_NEEDS_REAUTH, CONNECTION_DISCONNECTED, CONNECTION_EXISTS and JOB_ALREADY_RUNNING.
429
Rate limited. Wait until X-RateLimit-Reset before retrying.
500
Something broke on our side.
Request
curl -X POST "https://app.airstride.ai/api/open-partnerships/connections/{connection_id}/sync" \
  -H "X-API-Key: $AIRSTRIDE_API_KEY" \
  -H "Idempotency-Key: $(uuidgen)"