Weavz End Users API
End user management and connect portal
End user management and connect portal
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
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.curl "https://apis.io/api/v1/apis/weavz-io:weavz-io-end-users-api"
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.
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: 3.2.0
info:
title: Weavz End Users 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: End Users
description: End user management and connect portal
paths:
/api/v1/end-users:
post:
tags:
- End Users
summary: Create an end user
description: Creates a new end user within a workspace. The externalId must be unique within the workspace.
operationId: createEndUser
requestBody:
required: true
content:
application/json:
schema:
type: object
required:
- workspaceId
- externalId
properties:
workspaceId:
type: string
format: uuid
description: Workspace to create the end user in
externalId:
type: string
minLength: 1
description: Your application's end-user identifier, stored as endUser.externalId within the workspace
displayName:
type: string
description: Human-readable display name
email:
type: string
format: email
description: End user email address
metadata:
type: object
additionalProperties: true
description: Arbitrary metadata to attach
responses:
'201':
description: End user created
content:
application/json:
schema:
type: object
properties:
endUser:
$ref: '#/components/schemas/EndUser'
'400':
description: Invalid request
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'409':
description: End user with this externalId already exists in the workspace
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
get:
tags:
- End Users
summary: List end users
operationId: listEndUsers
parameters:
- name: workspaceId
in: query
required: true
description: Filter by workspace ID
schema:
type: string
format: uuid
- name: search
in: query
description: Match a literal substring of externalId, displayName, or email, ignoring case. Percent signs and underscores match themselves.
schema:
type: string
maxLength: 200
- name: limit
in: query
schema:
type: integer
minimum: 1
maximum: 100
default: 50
- name: offset
in: query
schema:
type: integer
minimum: 0
default: 0
responses:
'200':
description: List of end users
content:
application/json:
schema:
type: object
properties:
endUsers:
type: array
items:
$ref: '#/components/schemas/EndUser'
total:
type: integer
'400':
description: Invalid query parameters
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
/api/v1/end-users/{id}:
get:
tags:
- End Users
summary: Get end user by ID
description: Returns end user details including their connections.
operationId: getEndUser
parameters:
- name: id
in: path
required: true
schema:
type: string
format: uuid
responses:
'200':
description: End user details with connections
content:
application/json:
schema:
type: object
properties:
endUser:
$ref: '#/components/schemas/EndUser'
connections:
type: array
items:
$ref: '#/components/schemas/Connection'
'404':
description: End user not found
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
patch:
tags:
- End Users
summary: Update an end user
operationId: updateEndUser
parameters:
- name: id
in: path
required: true
schema:
type: string
format: uuid
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
displayName:
type:
- string
- 'null'
email:
type:
- string
- 'null'
format: email
metadata:
type:
- object
- 'null'
additionalProperties: true
responses:
'200':
description: End user updated
content:
application/json:
schema:
type: object
properties:
endUser:
$ref: '#/components/schemas/EndUser'
'400':
description: No updates provided
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'404':
description: End user not found
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
delete:
tags:
- End Users
summary: Delete an end user
description: Deletes the end user and cascades to their connections.
operationId: deleteEndUser
parameters:
- name: id
in: path
required: true
schema:
type: string
format: uuid
responses:
'200':
description: End user deleted
content:
application/json:
schema:
type: object
properties:
deleted:
type: boolean
id:
type: string
format: uuid
'404':
description: End user not found
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'409':
description: End user is the default identity of a primary MCP Workspace endpoint; explicitly change the binding before deleting
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
/api/v1/end-users/{id}/connect-token:
post:
tags:
- End Users
summary: Generate a connect portal URL for an end user
description: 'Creates a connect session token scoped to this end user. Returns a URL that can be
opened in a popup or embedded to let the end user connect their own accounts.'
operationId: createEndUserConnectToken
parameters:
- name: id
in: path
required: true
schema:
type: string
format: uuid
requestBody:
content:
application/json:
schema:
type: object
properties:
integrationName:
type: string
description: Optionally restrict to a base integration name. Use workspaceIntegrationId when selecting a configured workspace integration alias.
workspaceIntegrationId:
type: string
format: uuid
description: Optionally restrict to one configured workspace integration.
expiresIn:
type: integer
minimum: 3600
maximum: 2592000
description: Token expiration in seconds, from 1 hour to 30 days. Defaults to 604800 (7 days).
responses:
'200':
description: Connect portal URL generated
content:
application/json:
schema:
type: object
properties:
connectUrl:
type: string
format: uri
description: URL to open for the end user connect portal
token:
type: string
description: End-user connect portal token (eut_...)
expiresAt:
type: string
format: date-time
'404':
description: End user not found
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
/api/v1/end-users/{id}/invite:
post:
tags:
- End Users
summary: Send an email invitation to an end user
description: 'Sends an email to the end user with a link to connect their accounts.
Requires email sending to be configured.'
operationId: inviteEndUser
parameters:
- name: id
in: path
required: true
schema:
type: string
format: uuid
requestBody:
required: true
content:
application/json:
schema:
type: object
required:
- email
properties:
email:
type: string
format: email
description: Email address to send the invitation to
integrationName:
type: string
description: Optionally restrict to a base integration name. Use workspaceIntegrationId when selecting a configured workspace integration alias.
workspaceIntegrationId:
type: string
format: uuid
description: Optionally restrict to one configured workspace integration.
expiresIn:
type: integer
minimum: 3600
maximum: 2592000
description: Invitation link expiration in seconds, from 1 hour to 30 days. Defaults to 604800 (7 days).
responses:
'200':
description: Invitation link created and email delivery attempted
content:
application/json:
schema:
type: object
required:
- connectUrl
- token
- expiresAt
- emailSent
properties:
connectUrl:
type: string
format: uri
description: Hosted connect portal URL for the end user
token:
type: string
description: End-user connect portal token (eut_...)
expiresAt:
type: string
format: date-time
emailSent:
type: boolean
description: Whether the invite email was accepted by the configured email provider
'400':
description: Invalid request
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'404':
description: End user not found
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
Connection:
type: object
required:
- id
- externalId
- displayName
- integrationName
- type
- status
- scope
- createdAt
- updatedAt
properties:
id:
type: string
format: uuid
externalId:
type: string
description: Customer-defined connection.externalId selector
displayName:
type: string
description: Human-readable connection name
integrationName:
type: string
description: Integration name (e.g., 'slack', 'gmail')
authMethodKey:
anyOf:
- type: string
- type: 'null'
description: Selected integration auth method key for this credential, such as `api_key` or `oauth2`.
type:
type: string
enum:
- SECRET_TEXT
- BASIC_AUTH
- CUSTOM_AUTH
- OAUTH2
- PLATFORM_OAUTH2
status:
type: string
enum:
- ACTIVE
- ERROR
- EXPIRED
scope:
type: string
enum:
- ORGANIZATION
- WORKSPACE
- USER
workspaceId:
type:
- string
- 'null'
format: uuid
endUserId:
type:
- string
- 'null'
description: The end user's external ID (your application's user identifier), or null if not user-scoped
createdAt:
type: string
format: date-time
updatedAt:
type: string
format: date-time
EndUser:
type: object
required:
- id
- workspaceId
- type
- connectionCount
- createdAt
- updatedAt
properties:
id:
type: string
format: uuid
workspaceId:
type: string
format: uuid
externalId:
type:
- string
- 'null'
description: Your application's end-user identifier (endUser.externalId)
displayName:
type:
- string
- 'null'
description: Human-readable display name
email:
type:
- string
- 'null'
format: email
description: End user email address
metadata:
type:
- object
- 'null'
additionalProperties: true
description: Arbitrary metadata attached to the end user
connectionCount:
type: integer
description: Number of connections owned by this end user
type:
type: string
enum:
- external
- member
description: Whether this end user is external or a dashboard member
createdAt:
type: string
format: date-time
updatedAt:
type: string
format: date-time
securitySchemes:
ApiKeyAuth:
type: http
scheme: bearer
bearerFormat: wvz_xxxxx
description: API key authentication (prefix `wvz_`)