Weavz Connect API

Hosted connection flow

GitHub OpenAPI
Pull this API's OpenAPI, operations, scores and pricing into your own code or AI agent with a free APIs.io key — sign in with GitHub, Google or LinkedIn. No form to fill in; signing in shares your email address with us (Privacy).

Operations 3

POST /api/v1/connect/token Create a connect session #
GET /api/v1/connect/session/{sessionId} Get connect session status #
POST /api/v1/connect/session/poll Poll connect session status by token #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/weavz-io:weavz-io-connect-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

weavz-io-connect-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Weavz Connect API
  version: 1.0.0
  description: 'Weavz is governed app access and execution infrastructure for modern software teams.

    It provides connection management, hosted connect flows, MCP servers, triggers,

    action execution, Filesystem, State KV, Sandbox execution, and approvals for third-party

    services, so your product can expose secure integration workflows to SaaS apps, copilots,

    automations, and AI agents.


    The public API is designed for SaaS builders as well as internal automation: you can provision

    workspaces, register end users, create hosted connect sessions, expose MCP servers, execute

    actions, manage triggers, and configure workspace integrations without exposing Weavz

    dashboard-only administration routes.


    ## Authentication


    Authenticate with an API key passed as a Bearer token:


    ```

    Authorization: Bearer wvz_...

    ```


    ## Rate Limiting


    API requests are rate-limited based on your organization''s plan tier. Rate limit information

    is returned in response headers: `X-RateLimit-Limit`, `X-RateLimit-Remaining`, `X-RateLimit-Reset`.


    ## Error Responses


    All errors follow a consistent format with an error message, error code, and optional details:


    ```json

    {

    "error": "Human-readable error message",

    "code": "ERROR_CODE",

    "details": {}

    }

    ```


    ## API Key Scoping


    API keys can be scoped to specific workspaces via the `permissions` field. When a workspace-scoped

    key attempts to access resources outside its allowed workspaces, or org-level routes that require

    full org access, the API returns `403` with error code `SCOPE_DENIED`.'
  contact:
    name: Weavz Support
    url: https://weavz.io
    email: support@weavz.io
  license:
    name: MIT
    url: https://opensource.org/licenses/MIT
servers:
- url: https://platform.weavz.io
  description: Production server
- url: http://localhost:3000
  description: Local development server
security:
- ApiKeyAuth: []
tags:
- name: Connect
  description: Hosted connection flow
paths:
  /api/v1/connect/token:
    post:
      tags:
      - Connect
      summary: Create a connect session
      description: 'Creates a hosted connect session for a specific integration. Returns a short-lived token

        and a `connectUrl` that can be opened in a popup or browser to complete the connection flow.

        Supports all auth types: OAuth2, API key, basic auth, and custom auth.'
      operationId: connectCreateToken
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - integrationName
              - connectionName
              - externalId
              - workspaceId
              properties:
                integrationName:
                  type: string
                  description: Name of the integration to connect
                  minLength: 1
                connectionName:
                  type: string
                  description: Display name for the connection
                  minLength: 1
                externalId:
                  type: string
                  description: Unique identifier for the connection
                  minLength: 1
                endUserId:
                  type: string
                  description: The external ID of the end user (your application's user identifier). The API resolves this to the internal end user record. Used for per-user connection resolution and for stateful workspace integrations, including browser profile reuse, when the targeted workspace integration's persistence policy is end_user. Creating a new identity uses the plan’s end-user allowance. Existing identities can connect more accounts when that allowance is full.
                workspaceId:
                  type: string
                  format: uuid
                  description: Workspace to scope the connection to
                workspaceIntegrationId:
                  type: string
                  format: uuid
                  description: Configured workspace integration to connect. When provided, hosted connect inherits its `authMethodKey` and OAuth app policy.
                authMethodKey:
                  type: string
                  description: Auth method key to use when connecting by `integrationName`. Required when multiple auth options exist and no `workspaceIntegrationId` is provided.
                scope:
                  type: string
                  enum:
                  - ORGANIZATION
                  - WORKSPACE
                  - USER
                  description: Connection scope (default ORGANIZATION)
                oauthAppMode:
                  type: string
                  enum:
                  - weavz_managed
                  - custom
                  description: OAuth app policy for OAuth auth methods. Defaults to `weavz_managed`.
                oauthAppId:
                  type: string
                  format: uuid
                  description: Tenant-owned custom OAuth app UUID. Required when `oauthAppMode` is `custom`; omit for Weavz-managed OAuth.
                successRedirectUri:
                  type: string
                  format: uri
                  description: URL to redirect to after successful connection (for redirect mode)
                errorRedirectUri:
                  type: string
                  format: uri
                  description: URL to redirect to on error (for redirect mode)
      responses:
        '200':
          description: Connect session created
          content:
            application/json:
              schema:
                type: object
                properties:
                  token:
                    type: string
                    description: Short-lived connect token (cst_...)
                  connectUrl:
                    type: string
                    format: uri
                    description: URL to open in popup or browser
                  expiresAt:
                    type: string
                    format: date-time
                    description: Token expiration time
        '400':
          description: Invalid request or no OAuth app configured
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: Integration not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
  /api/v1/connect/session/{sessionId}:
    get:
      tags:
      - Connect
      summary: Get connect session status
      description: Poll for the current status of a connect session. Returns PENDING, CONNECTING, COMPLETED, or FAILED.
      operationId: connectGetSession
      parameters:
      - name: sessionId
        in: path
        required: true
        schema:
          type: string
          format: uuid
      responses:
        '200':
          description: Session status
          content:
            application/json:
              schema:
                type: object
                properties:
                  session:
                    $ref: '#/components/schemas/ConnectSession'
        '403':
          description: Access denied (wrong org)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: Session not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
  /api/v1/connect/session/poll:
    post:
      tags:
      - Connect
      summary: Poll connect session status by token
      description: Token-authenticated polling for hosted connect sessions. Use the `cst_` token returned by `POST /api/v1/connect/token`.
      operationId: connectPollSession
      security: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - token
              properties:
                token:
                  type: string
                  description: Connect token returned by create token.
      responses:
        '200':
          description: Session status
          content:
            application/json:
              schema:
                type: object
                required:
                - status
                - connectionId
                - integrationName
                - externalId
                - error
                properties:
                  status:
                    type: string
                    enum:
                    - PENDING
                    - CONNECTING
                    - COMPLETED
                    - FAILED
                  connectionId:
                    type:
                    - string
                    - 'null'
                    format: uuid
                  integrationName:
                    type: string
                  workspaceIntegrationId:
                    anyOf:
                    - type: string
                      format: uuid
                    - type: 'null'
                  authMethodKey:
                    anyOf:
                    - type: string
                    - type: 'null'
                  oauthAppMode:
                    anyOf:
                    - type: string
                      enum:
                      - weavz_managed
                      - custom
                    - type: 'null'
                  oauthAppId:
                    anyOf:
                    - type: string
                      format: uuid
                    - type: 'null'
                  externalId:
                    type: string
                  error:
                    type:
                    - string
                    - 'null'
        '400':
          description: Token missing
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: Invalid or expired token
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  schemas:
    Error:
      type: object
      required:
      - error
      - code
      properties:
        error:
          type: string
          description: Human-readable error message
        code:
          type: string
          description: Machine-readable error code
          enum:
          - VALIDATION_ERROR
          - NOT_FOUND
          - DUPLICATE
          - QUOTA_EXCEEDED
          - RATE_LIMITED
          - UNAUTHORIZED
          - FORBIDDEN
          - SCOPE_DENIED
          - UNAUTHENTICATED
          - AUTH_DISABLED
          - NOT_MEMBER
          - SLUG_EXISTS
          - MISSING_FIELDS
          - NO_UPDATES
          - CONNECTION_NOT_FOUND
          - CONNECTION_REQUIRED
          - INTEGRATION_NOT_FOUND
          - TRIGGER_NOT_FOUND
          - ACTION_FAILED
          - NOT_DROPDOWN
          - NO_OPTIONS_FN
          - OPTIONS_FAILED
          - NOT_OAUTH2
          - MISSING_OAUTH2_CONFIG
          - OAUTH_ERROR
          - ALIAS_CONFLICT
          - MISSING_KEY
          - STORAGE_ERROR
          - INVALID_JSON
          - HTTP_ERROR
          - INTERNAL_ERROR
          - MISSING_CODE
          - POLLING_INTERVAL_TOO_SHORT
          - INVALID_ADDON
          - NOT_DYNAMIC
          - NO_PROPS_FN
          - RESOLVE_FAILED
          - MISSING_CONNECTION
          - MISSING_INTEGRATION_NAME
          - MISSING_ID
          - TOKEN_EXCHANGE_FAILED
          - INVALID_CONFIG
          - REFRESH_FAILED
          - END_USER_NOT_FOUND
          - AMBIGUOUS_INTEGRATION
          - ACTION_NOT_ALLOWED
          - PARTIAL_MISMATCH
          - PARTIAL_NOT_FOUND
          - ACTION_NOT_FOUND
          - INTEGRATION_UNAVAILABLE
          - NATIVE_RUNTIME_REQUIRED
          - NATIVE_ACTION_UNSUPPORTED
          - SHARD_UNAVAILABLE
          - NO_OAUTH_APP
          - OAUTH_APP_NOT_FOUND
          - INVALID_OAUTH_APP
          - SESSION_CREATE_FAILED
          - INVALID_TOKEN
          - MISSING_TOKEN
          - MCP_BEARER_BLOCKS_PER_USER
          - MCP_BEARER_DISABLED
          - MCP_STATIC_BEARER_INCOMPATIBLE
          - MCP_OAUTH_DISABLED
          - INVALID_MCP_SCOPES
          - WORKSPACE_REQUIRED
          - AUTH_SCOPE_DENIED
          - APPROVAL_POLICY_BLOCKED
          - APPROVAL_POLICY_NOT_FOUND
          - APPROVAL_NOT_FOUND
          - APPROVAL_ALREADY_DECIDED
          - APPROVAL_EXPIRED
          - APPROVAL_UPDATE_CONFLICT
          - APPROVAL_DECISION_SCOPE_REQUIRED
          - APPROVAL_DECISION_DENIED
          - BROWSER_SANDBOX_UNAVAILABLE
          - BROWSER_SESSION_START_FAILED
          - BROWSER_CONTROL_REQUIRED
          - BROWSER_RECOVERY_REQUIRED
          - SESSION_NOT_FOUND
          - HANDOFF_FAILED
          - ACTION_NOT_ENABLED
          - ALIAS_NOT_FOUND
          - ALREADY_INITIALIZED
          - APPROVAL_LINK_NOT_FOUND
          - AUTH_METHOD_REQUIRED
          - AUTH_NOT_SUPPORTED
          - CONNECTION_AUTH_METHOD_MISMATCH
          - CONNECTION_CREATE_FAILED
          - CONNECTION_MISMATCH
          - CONNECTION_NOT_SUPPORTED
          - CONNECTION_SCOPE_MISMATCH
          - DUPLICATE_CONNECTION
          - EMAIL_RATE_LIMITED
          - END_USER_REQUIRES_WORKSPACE
          - INTEGRATION_MISMATCH
          - INTEGRATION_NOT_ALLOWED
          - INTEGRATION_NOT_CONFIGURED
          - INTEGRATION_NOT_CONNECTABLE
          - INVALID_ACTION
          - INVALID_AUTH_METHOD
          - INVALID_AUTH_TYPE
          - INVALID_CODE_EXECUTE_REQUEST
          - INVALID_CONNECTION
          - INVALID_INTEGRATION
          - INVALID_REDIRECT_URI
          - INVALID_STATUS
          - INVALID_STRATEGY
          - INVALID_WORKSPACE
          - MCP_SUSPENDED
          - MISSING_CREDENTIALS
          - MISSING_INTEGRATION
          - MISSING_PROPERTY
          - MISSING_WORKSPACE
          - MISSING_WORKSPACE_ID
          - OAUTH_AUTHORIZATION_FAILED
          - OAUTH_TOKEN_FAILED
          - PARTIAL_SCOPE_MISMATCH
          - SHARD_NOT_AVAILABLE
          - TOKEN_EXPIRED
          - UNSUPPORTED_AUTH_TYPE
          - WORKSPACE_INTEGRATION_NOT_FOUND
          - MCP_WORKSPACE_ALREADY_CONFIGURED
          - MCP_WORKSPACE_ENDPOINT_REQUIRED
          - MCP_WORKSPACE_IDENTITY_IN_USE
        details:
          type: object
          description: Additional error context
          additionalProperties: true
    ConnectSession:
      type: object
      required:
      - id
      - integrationName
      - connectionName
      - externalId
      - status
      - connectionId
      - error
      - expiresAt
      - createdAt
      properties:
        id:
          type: string
          format: uuid
        integrationName:
          type: string
          description: Integration being connected
        workspaceIntegrationId:
          anyOf:
          - type: string
            format: uuid
          - type: 'null'
          description: Configured workspace integration whose auth selection this session inherits.
        authMethodKey:
          anyOf:
          - type: string
          - type: 'null'
          description: Selected integration auth method key for this hosted connect session.
        oauthAppMode:
          anyOf:
          - type: string
            enum:
            - weavz_managed
            - custom
          - type: 'null'
          description: OAuth app policy used when the selected auth method is OAuth.
        oauthAppId:
          anyOf:
          - type: string
            format: uuid
          - type: 'null'
          description: Resolved OAuth app UUID used by this session when OAuth is selected. This may be a Weavz-managed platform app or a tenant-owned custom app.
        connectionName:
          type: string
          description: Display name for the connection
        externalId:
          type: string
          description: Customer-defined connection.externalId selector
        status:
          type: string
          enum:
          - PENDING
          - CONNECTING
          - COMPLETED
          - FAILED
          description: Current session status
        connectionId:
          type:
          - string
          - 'null'
          format: uuid
          description: ID of the created connection (set when COMPLETED)
        error:
          type:
          - string
          - 'null'
          description: Error message (set when FAILED)
        expiresAt:
          type: string
          format: date-time
        createdAt:
          type: string
          format: date-time
  securitySchemes:
    ApiKeyAuth:
      type: http
      scheme: bearer
      bearerFormat: wvz_xxxxx
      description: API key authentication (prefix `wvz_`)