Skip to content

API reference

One connection of the workspace and its selected accounts

GET
/v1/connections/{connectionId}

One connection of the API key’s own workspace, in the same item shape as GET /v1/connections: the connection id, the connector id, the status and the provider account ids, and nothing else. It reads the list’s own reader, so a connection is returned here exactly when the list returns it. A connection of another workspace, a revoked connection and an id that never existed are the same 404 connection_not_found. API-key authorization is checked again before the answer is released, and before a 404 is decided, so a key lost while the read was in flight gets the authentication failure. Because the read is the list’s, a workspace with more than 500 selected accounts gets 413 result_too_large here too.

connectionId
required
string
/^[A-Za-z0-9_-]{1,128}$/

The connection’s id, as GET /v1/connections lists it, matched exactly, case included. A list item’s id may be up to 256 characters, but this path takes at most 128 from A-Z, a-z, 0-9, _ and -; a segment outside that does not match a route and is 404 not_found, not connection_not_found.

The connection.

object
connection
required

The list’s item for the id in the path. The id matched the path exactly, so it is at most 128 characters from A-Z, a-z, 0-9, _ and -, not the list’s 256.

object
connectionId
required

The connection’s stable id. The same id can exist in two workspaces; it is meaningful only with the key’s workspace.

string
>= 1 characters <= 256 characters
connector
required

The connector’s registry id, as /v1/connectors lists it.

string
>= 1 characters <= 256 characters
status
required
string
Allowed values: active paused
accounts
required

The accounts selected under this connection, by account id, in a stable order.

Array<object>
object
accountId
required

The provider’s own account identifier (a GA4 property id, a Google Ads customer id, a Search Console site and so on).

string
>= 1 characters <= 256 characters
connectionId
/^[A-Za-z0-9_-]{1,128}$/
requestId
required

The gateway-generated id of this request, the same value as the X-Request-Id response header.

string
/^[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/

invalid_query — URL query delimiters are unsupported.

object
error
required
object
code
required
string
message
required
string
error
object
code
Allowed value: invalid_query

unauthorized — missing, unknown, expired or revoked key.

object
error
required
object
code
required
string
message
required
string
error
object
code
Allowed value: unauthorized
WWW-Authenticate
required
string
Allowed value: Bearer

forbidden — the key lacks the required scope, or the workspace has no plan that allows this.

object
error
required
object
code
required
string
message
required
string
error
object
code
Allowed value: forbidden

connection_not_found — no connection of the key’s workspace has this id.

object
error
required
object
code
required
string
message
required
string
error
object
code
Allowed value: connection_not_found

method_not_allowed — Allow names the method this route accepts.

object
error
required
object
code
required
string
message
required
string
error
object
code
Allowed value: method_not_allowed
Allow
required
string
Allowed value: GET

result_too_large — the workspace has more selected accounts than the list’s reader reads in one pass. Nothing is returned.

object
error
required
object
code
required
string
message
required
string
error
object
code
Allowed value: result_too_large

rate_limited — the key’s or its workspace’s per-plan request allowance for this route’s class is used up. It is answered after authentication, on every API-key operation in this document and on MCP, and never on /health. A download link is limited the same way, after its lookup, by the key that issued it and the export’s workspace. Retry-After is the window in seconds and RateLimit-Limit is the limit of the bucket that refused. No remaining count is returned. The limits themselves are not published here.

object
error
required
object
code
required
string
message
required
string
error
object
code
Allowed value: rate_limited
Retry-After
required
string
/^[1-9][0-9]*$/
RateLimit-Limit
required
string
/^[1-9][0-9]*$/

query_unavailable — the connection could not be read — or auth_unavailable — the authorization store could not be read. Nothing is guessed; retry with backoff.

object
error
required
object
code
required
string
message
required
string
error
object
code
Allowed values: query_unavailable auth_unavailable