Connectors

Complete an authorization

Finishes an OAuth connect from the dashboard callback. The state addresses the attempt on its own. Invalid or consumed states are rejected; start a new authorization attempt to reconnect.

post/v1/connectors/connections/complete

Request

  • Base URL: https://api.spacefast.com
  • URL: https://api.spacefast.com/v1/connectors/connections/complete
  • Auth: one of:
    • HTTP bearer
    • OAuth 2 (authorization code, authorization URL https://api.spacefast.com/v1/auth/oauth2/authorize, token URL https://api.spacefast.com/v1/auth/oauth2/token; client credentials, token URL https://api.spacefast.com/v1/auth/oauth2/token, scopes: connectors:write)

Query parameters

teamstring

Team id or slug to act for. Required only when the credential could act for more than one team.

Request body

statestring required

Opaque state from the authorization redirect. Addresses the attempt on its own.

codestring required

Authorization code from the provider.

Response

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.

Changes

No recorded changes to this operation across all 1 revision of this API.