HTTP API

Connections and your own servers

3 routes your API key can call. Each says who may call it; every example assumes KEY is your API key. What only the dashboard does (signing in, making API keys, connecting accounts) isn't listed here: it's in the full OpenAPI spec.

GET/v1/connectors

Every provider and how to connect it (bounded reference data, not paged); people and API keys

People and API keys

Read-only. Connecting is for signed-in people.

Answer · 200

  • connectorsobject[]required
    • providerstring
    • namestring
    • kind"sandbox" | "memory"

      sandbox: a provider of sandboxes; memory: long-term memory (Supermemory), one per workspace

    • method"oauth" | "api_key" | "aws_role" | "selfhost"

      aws_role: connect with …/connections/aws/start and …/finish; selfhost: with …/connections/selfhost/start (the workspace owner only)

    • availableboolean

      false for an OAuth provider whose app is not set up, AWS when this Annex has no template or AWS identity configured, your own server when this Annex can't connect one, or a provider Annex can't start sandboxes on yet (Modal)

    • early_accessboolean

      true for a connector that works but is new and little tried (your own server: tested against stand-ins, not yet on many real servers); the dashboard shows it with an Early access badge

    • notestring
    • fieldsobject[]

      What to paste in; empty for oauth

Terminal
curl -X GET 'https://annex.eversonder.com/v1/connectors' \
  -H 'Authorization: Bearer anx_live_…'
GET/v1/workspaces/{wid}/connections

One page of the workspace's connected provider accounts, newest first. Secrets are never returned.

People and API keys

ParameterInTypeAbout
widInpathTypestringAboutWorkspace id
page?InqueryTypeintegerAboutA missing or invalid page is 1
perPage?InqueryTypeintegerAboutHeld between 1 and 100

Answer · 200

  • connectionsConnection[]required
    • idstring
    • providerstring
    • method"oauth" | "api_key" | "aws_role" | "selfhost"
    • labelstring

      For AWS: "<stack> in <region>"; for your own server, the name given, else the server's own

    • hintstring

      Last 4 characters of the key or token (for AWS, of the account ID); empty when the key is too short to spare them

    • status"connected"
    • created_atstring
    • last_used_atstring | null
    • max_vcpuinteger | null

      vCPUs at once, set by a person, for the planner; null: not set (AWS assumes 5)

    • max_sandboxesinteger | null

      Sandboxes at once, set by a person, for the planner; null: not set

    • hourly_rate_microsinteger | null

      Your own server only: what the whole server costs you an hour; null for every other provider

    • regionstring | null

      Your own server only: the Annex region it is in; null when not said, and for every other provider

    • key_problemstring

      What the provider said the last time Annex checked the key (POST …/connections/{id}/check); '' when it worked or was never checked

    • key_checked_atstring | null

      When the key was last checked or replaced; null when not since connecting

    • detectedobject

      What the provider reported (Accounts metrics); plans use it where the person set nothing

  • metaMetarequired
    • pageinteger
    • totalinteger

      Items matching, across all pages

    • pageCountinteger

      ceil(total / perPage)

    • perPageinteger
Terminal
curl -X GET 'https://annex.eversonder.com/v1/workspaces/wsp_…/connections' \
  -H 'Authorization: Bearer anx_live_…'
POST/v1/workspaces/{wid}/connections/{id}/check

Ask the provider whether a connection's key still works

People and API keys

A provider can revoke or expire a key without telling Annex. This asks it, as connecting does, and keeps the answer on the connection: key_problem is what the provider said ('' when the key works), key_checked_at when. At most once a minute a connection (429). Cloudflare's check would deploy annex-runner again, so it answers 422; replace its key instead. Any member or API key.

ParameterInTypeAbout
widInpathTypestringAboutWorkspace id
idInpathTypestringAbout

Answer · 200

  • connectionConnectionrequired
    • idstring
    • providerstring
    • method"oauth" | "api_key" | "aws_role" | "selfhost"
    • labelstring

      For AWS: "<stack> in <region>"; for your own server, the name given, else the server's own

    • hintstring

      Last 4 characters of the key or token (for AWS, of the account ID); empty when the key is too short to spare them

    • status"connected"
    • created_atstring
    • last_used_atstring | null
    • max_vcpuinteger | null

      vCPUs at once, set by a person, for the planner; null: not set (AWS assumes 5)

    • max_sandboxesinteger | null

      Sandboxes at once, set by a person, for the planner; null: not set

    • hourly_rate_microsinteger | null

      Your own server only: what the whole server costs you an hour; null for every other provider

    • regionstring | null

      Your own server only: the Annex region it is in; null when not said, and for every other provider

    • key_problemstring

      What the provider said the last time Annex checked the key (POST …/connections/{id}/check); '' when it worked or was never checked

    • key_checked_atstring | null

      When the key was last checked or replaced; null when not since connecting

    • detectedobject

      What the provider reported (Accounts metrics); plans use it where the person set nothing

Terminal
curl -X POST 'https://annex.eversonder.com/v1/workspaces/wsp_…/connections/id/check' \
  -H 'Authorization: Bearer anx_live_…'