Register a connector - Spacefast Docs

Register a connector

Fetches the source, parses it, dispatches to the plugin that owns it, and syncs the tool catalog — one call. Passing a presetId from the catalog resolves the source for you.

POST /v1/connectors

Authorization

Authorization Bearer token · header required

Authorization: Bearer <token>

with an API key (sfa_ prefix), an OAuth access token, a session token, or a Space machine credential (sfm_ prefix).

or

Authorization OAuth2 access token · header required

OAuth 2.0 with Spacefast scopes. People use the authorization code flow; machines use client credentials.

Scopes: connectors:write

Query parameters

team string

min length 1 · max length 255

Request body

required application/json

Show properties Hide properties

One of:

authMethods object[]

Show properties Hide properties

Array of object

One of:

Responses

201 Response for status 201

{
  "$schema": "string<uri>",
  "data": {
    "slug": "string",
    "title": "string",
    "description": "string | any",
    "source": "string required",
    "sourceUrl": "string | any required",
    "firstParty": "boolean required",
    "presetId": "string | any required",
    "authMethods": [
      {
        "kind": "string required",
        "slug": "string required",
        "label": "string required"
      }
    ],
    "toolCount": "integer required",
    "connections": [
      {
        "id": "string required",
        "connector": "string required",
        "owner": "string required",
        "displayName": "string required",
        "description": "string | any required",
        "status": "string required",
        "identityLabel": "string | any required",
        "credentialConfigured": "boolean required",
        "authMethod": "string | any required",
        "scopes": [
          "string required"
        ],
        "isDefault": "boolean required",
        "toolCount": "integer required",
        "createdBy": "string | any required",
        "lastCheckedAt": "string<date-time> | any required",
        "revokedAt": "string<date-time> | any required",
        "createdAt": "string<date-time> required",
        "updatedAt": "string<date-time> required"
      }
    ],
    "specSyncedAt": "string<date-time> | any required",
    "createdAt": "string<date-time> required",
    "updatedAt": "string<date-time> required"
  }
}

Error response document

{
  "$schema": "http://example.com",
  "type": "string required",
  "title": "string required",
  "status": "integer required",
  "detail": "string required",
  "code": "string required",
  "pointer": "string",
  "details": {
    "property1": null,
    "property2": null
  },
  "suggestions": [
    "string"
  ],
  "next": [
    "string"
  ],
  "requestId": "string required"
}

Try it

Server

Base URL: https://api.spacefast.com Custom base URL: Overrides the selected server when set.