Pipedream · Schema

CreateTokenOpts

Request object for creating a connect token

Pro-Code-API-CompositionWorkflowsConnectMCPEmbedded IntegrationsManaged AuthAI Agents

Properties

Name Type Description
allowed_origins array List of allowed origins for CORS
error_redirect_uri string URI to redirect to on error
expires_in integer Token TTL in seconds (max 14400 = 4 hours). Defaults to 4 hours if not specified.
external_user_id string Your end user ID, for whom you're creating the token
scope string Space-separated scopes to restrict token permissions. Defaults to 'connect:*' if not specified. See https://pipedream.com/docs/connect/api-reference/authentication#connect-token-scopes for more inform
success_redirect_uri string URI to redirect to on success
webhook_uri string Webhook URI for notifications
allow_progressive_scopes boolean When true, end users may authorize a subset of the app's OAuth scopes; only the app's functional scopes (needed for the post-OAuth test request) are enforced. Defaults to false.
View JSON Schema on GitHub

JSON Schema

pipedream-createtokenopts-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/CreateTokenOpts",
  "title": "CreateTokenOpts",
  "type": "object",
  "description": "Request object for creating a connect token",
  "required": [
    "external_user_id",
    "project_id"
  ],
  "properties": {
    "allowed_origins": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "List of allowed origins for CORS"
    },
    "error_redirect_uri": {
      "type": "string",
      "description": "URI to redirect to on error"
    },
    "expires_in": {
      "type": "integer",
      "description": "Token TTL in seconds (max 14400 = 4 hours). Defaults to 4 hours if not specified."
    },
    "external_user_id": {
      "type": "string",
      "description": "Your end user ID, for whom you're creating the token"
    },
    "scope": {
      "type": "string",
      "description": "Space-separated scopes to restrict token permissions. Defaults to 'connect:*' if not specified. See https://pipedream.com/docs/connect/api-reference/authentication#connect-token-scopes for more information."
    },
    "success_redirect_uri": {
      "type": "string",
      "description": "URI to redirect to on success"
    },
    "webhook_uri": {
      "type": "string",
      "description": "Webhook URI for notifications"
    },
    "allow_progressive_scopes": {
      "type": "boolean",
      "default": false,
      "description": "When true, end users may authorize a subset of the app's OAuth scopes; only the app's functional scopes (needed for the post-OAuth test request) are enforced. Defaults to false."
    }
  }
}

Work with this as data

Every JSON Schema 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 schemas

4 MCP tools reach this
  • find_json_schemasBrowse and filter every JSON Schema in the catalog.
  • 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 JSON Schema
curl "https://apis.io/api/v1/json-schemas/pipedream-createtokenopts"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

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. See our Privacy Policy and Terms.

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