Reconnect an account
Re-authorizes a connection that already exists. Same three-arm answer as connecting — connected, authorization_required, or input_required — but the connection keeps its id, label, policies, and Space bindings, and the callback route finishes it. A disconnected connection cannot be reconnected.
/v1/connectors/connections/{connectionId}/reconnectAuthorizationBearer token · headerrequiredBetter Auth session, OAuth access token, OAuth client-credentials token, or sfm_ Space machine credential.
AuthorizationOAuth2 access token · headerrequiredOAuth 2.0 with explicit Spacefast capability scopes. Use the authorization-code flow for people and client credentials for machines.
connectors:writeconnectionIdstringrequiredConnection id (cxn_).
teamstringTeam id or slug to act for. Required only when the credential could act for more than one team.
application/jsoncredentialobjectThe replacement credential. Omit it and the server tells you what it needs — for OAuth that is usually nothing.
Show propertiesHide properties
kindstringrequiredvaluestringrequiredThe key. Write-only: sealed on arrival, never returned by any endpoint.
kindstringrequiredvaluesobjectrequiredValues keyed by the field names the connector asked for. Write-only, same as a key.
Response for status 200
$schemastring<uri>Canonical JSON Schema URL for this response body. The server also sends it in the Link: rel="describedby" response header.
dataobjectrequiredThe three ways connecting can end. Branch on status; there is no fourth.
Show propertiesHide properties
statusstringrequiredDone. The connection is usable now.
connectionobjectrequiredA configured instance of a connector, with a credential the control plane holds and never hands out.
Show propertiesHide properties
idstringrequiredConnection id (cxn_). This is also the first segment of every tool address it owns.
connectorstringrequiredSlug of the connector this connection authenticates.
ownerstringrequiredteam is shared with everyone on the team; personal is yours, and only within this team — connecting the same account for another team is another connection.
teampersonalservingbooleanrequireddisplayNamestringrequiredWhat people call this connection, e.g. "Linear (support)".
descriptionstring | nullrequiredAgent-visible note on what this connection is for. Shown to models choosing between several.
statusstringrequiredDerived connection state. Never stored, so it cannot drift from the credential it describes.
pending_authorizationactivedegradedneeds_reauthrevokedidentityLabelstring | nullrequiredAccount label reported by the provider, when it identifies itself. Null until the first successful probe.
credentialConfiguredbooleanrequiredWhether a usable credential is stored. The credential itself is never returned by any endpoint.
authMethodstring | nullrequiredSlug of the connector auth method this connection used.
scopesstring[]requiredScopes actually granted, when the provider reports them.
scopesKnownbooleanFalse when the provider did not report the granted scope set.
isDefaultbooleanrequiredWhether this is the connection an agent gets when it names the connector alone.
toolCountintegerrequiredTools reachable through this connection at the last sync.
createdBystring | nullrequiredUser who connected it; null for first-party connections Spacefast owns.
lastCheckedAtstring<date-time> | nullrequiredLast health probe.
Show propertiesHide properties
string<date-time>nullrevokedAtstring<date-time> | nullrequiredWhen it was disconnected. The credential is purged; the row tombstones.
Show propertiesHide properties
string<date-time>nullcreatedAtstring<date-time>requiredupdatedAtstring<date-time>requiredstatusstringrequiredSend the user to authorizeUrl; the callback completes it.
connectionobjectrequiredAlready created, in pending_authorization, so it has an id to watch.
Show propertiesHide properties
idstringrequiredConnection id (cxn_). This is also the first segment of every tool address it owns.
connectorstringrequiredSlug of the connector this connection authenticates.
ownerstringrequiredteam is shared with everyone on the team; personal is yours, and only within this team — connecting the same account for another team is another connection.
teampersonalservingbooleanrequireddisplayNamestringrequiredWhat people call this connection, e.g. "Linear (support)".
descriptionstring | nullrequiredAgent-visible note on what this connection is for. Shown to models choosing between several.
statusstringrequiredDerived connection state. Never stored, so it cannot drift from the credential it describes.
pending_authorizationactivedegradedneeds_reauthrevokedidentityLabelstring | nullrequiredAccount label reported by the provider, when it identifies itself. Null until the first successful probe.
credentialConfiguredbooleanrequiredWhether a usable credential is stored. The credential itself is never returned by any endpoint.
authMethodstring | nullrequiredSlug of the connector auth method this connection used.
scopesstring[]requiredScopes actually granted, when the provider reports them.
scopesKnownbooleanFalse when the provider did not report the granted scope set.
isDefaultbooleanrequiredWhether this is the connection an agent gets when it names the connector alone.
toolCountintegerrequiredTools reachable through this connection at the last sync.
createdBystring | nullrequiredUser who connected it; null for first-party connections Spacefast owns.
lastCheckedAtstring<date-time> | nullrequiredLast health probe.
Show propertiesHide properties
string<date-time>nullrevokedAtstring<date-time> | nullrequiredWhen it was disconnected. The credential is purged; the row tombstones.
Show propertiesHide properties
string<date-time>nullcreatedAtstring<date-time>requiredupdatedAtstring<date-time>requiredauthorizeUrlstring<uri>requiredProvider authorization page. Open it in a window you reserved beforehand.
expiresAtstring<date-time>requiredAfter this the authorization attempt is dead; start over.
statusstringrequiredNothing was created. Collect these values and call again.
connectorstringrequiredConnector slug this applies to.
authMethodstringrequiredAuth method the fields belong to. Send it back on the next call.
fieldsobject[]requiredWhat to ask for, in the order to ask.
Show propertiesHide properties
objectnamestringrequiredField key to send back in credential.values.
requiredbooleanWhether this field must be filled before connecting. Defaults to true.
labelstringrequiredWhat to show above the input.
secretbooleanrequiredWhether the value is a secret: mask it in UI, never log it, never echo it back.
guidanceobject | nullrequiredProvider help for this field, when the registry has any.
Show propertiesHide properties
labelstring | nullrequiredThe provider’s display label for this credential.
mintUrlstring | nullrequiredPage on the provider where the credential is created.
docsUrlstring | nullrequiredProvider documentation for this credential.
notesstring | nullrequiredSetup notes: prerequisites, plan requirements, scopes to tick.
stepsstring[]requiredOrdered steps to get the credential, when the provider spells them out.
nullProblem details (RFC 9457). Any 4xx/5xx response is one application/problem+json document.
$schemastring<uri>Canonical JSON Schema URL for this response body. The server also sends it in the Link: rel="describedby" response header.
typestringrequiredProblem type URI resolving to the error docs page. The server derives it mechanically from code against the docs origin.
titlestringrequiredShort human-readable summary of the problem type. The server derives it mechanically from code.
statusintegerrequiredHTTP status code of this response, repeated in the body.
detailstringrequiredHuman-readable failure explanation for this occurrence.
codestringrequiredStable snake_case error code naming the failed public contract.
pointerstringRFC 6901 JSON Pointer into the failing request field, for example "/files/37/path", on validation failures.
detailsobjectMachine-readable context for the error code.
fixstringOne sentence on what to do about this error code, the same text as the type page. Read it before retrying.
suggestionsstring[]Actionable recovery steps safe to show in dashboards, SDKs, and CLI output.
nextstring[]Copy-pasteable commands or API requests an agent can run next.
requestIdstringrequiredThe request id to quote when contacting support.