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.
Call it yourself
curl for this page
This API
curl "https://apis.io/api/v1/apis/usertour-io:usertour-io-users-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
openapi: 3.2.0
info:
title: Usertour API v2 Users API
description: 'Project-scoped v2 API. Authenticate with a personal API token — an opaque `utp_...` string (NOT a JWT: do not try to decode it), created in the Usertour app under Settings → API, sent as `Authorization: Bearer utp_...`.'
version: '2.0'
contact: {}
servers:
- url: https://api.usertour.io
tags:
- name: Users
paths:
/v2/projects/{projectId}/environments/{environmentId}/users:
get:
operationId: ApiUsersController_list
summary: List users
parameters:
- name: limit
required: false
in: query
description: Max items per page (1-100, default 20).
schema:
minimum: 1
maximum: 100
default: 20
type: integer
- name: cursor
required: false
in: query
description: 'Opaque page cursor — the `cursor` query value found inside a prior response''s `next`/`previous` URL. Normally you never build this yourself: just GET those URLs as-is.'
schema:
type: string
- name: orderBy
required: false
in: query
description: Order by createdAt / -createdAt.
schema:
anyOf:
- type: string
enum:
- createdAt
- -createdAt
- type: array
items:
type: string
enum:
- createdAt
- -createdAt
- name: expand
required: false
in: query
description: 'Inline: companies, memberships, memberships.company.'
schema:
anyOf:
- type: string
enum:
- companies
- memberships
- memberships.company
- type: array
items:
type: string
enum:
- companies
- memberships
- memberships.company
- name: email
required: false
in: query
description: Filter to a user with this email.
schema:
format: email
pattern: ^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$
type: string
- name: companyId
required: false
in: query
description: Filter to users in this company.
schema:
type: string
- name: segmentId
required: false
in: query
description: Filter to users in this segment.
schema:
type: string
- name: createdAfter
required: false
in: query
description: Only items created at or after this time — ISO date or datetime WITH timezone. A date-only value starts at that day's first instant (UTC).
schema:
type: string
- name: createdBefore
required: false
in: query
description: Only items created at or before this time — ISO date or datetime WITH timezone. A date-only value includes the ENTIRE day (up to its last instant, UTC).
schema:
type: string
- name: environmentId
required: true
in: path
description: Environment ID
schema:
type: string
- name: projectId
required: true
in: path
description: Project ID
schema:
type: string
responses:
'200':
description: List of users
content:
application/json:
schema:
$ref: '#/components/schemas/ListUsersResponseDto'
'400':
description: Invalid request — E1017 validation (may carry `issues`; an invalid orderBy/limit is also E1017), E1015 invalid scope, E0003 invalid against current domain state.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponseDto'
'401':
description: Missing or expired API key — E1010, E1020.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponseDto'
'403':
description: Refused — E1000 invalid key, E1011 project not in token scope, E1012 insufficient scope, E1029 environment not in token scope, E1032 environment creation needs a token without env-targeted capabilities (its allowlist cannot cover a not-yet-existing environment), E0043 the project's plan does not include the feature (e.g. webhooks require a paid plan on cloud).
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponseDto'
'429':
description: Rate limit exceeded — E1013. The limit follows the project's plan (100/500/1000/3000 requests per minute); unknown credentials share a per-IP bucket. Every response also carries X-RateLimit-Limit / -Remaining / -Reset for pacing; a 429 adds the standard Retry-After header (seconds to back off).
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponseDto'
tags:
- Users
security:
- bearer: []
/v2/projects/{projectId}/environments/{environmentId}/users/{id}:
get:
operationId: ApiUsersController_get
summary: Get a user
parameters:
- name: id
required: true
in: path
description: User external ID
schema:
type: string
- name: expand
required: false
in: query
description: 'Inline: companies, memberships, memberships.company.'
schema:
anyOf:
- type: string
enum:
- companies
- memberships
- memberships.company
- type: array
items:
type: string
enum:
- companies
- memberships
- memberships.company
- name: environmentId
required: true
in: path
description: Environment ID
schema:
type: string
- name: projectId
required: true
in: path
description: Project ID
schema:
type: string
responses:
'200':
description: User found
content:
application/json:
schema:
$ref: '#/components/schemas/UserDto'
'400':
description: Invalid request — E1017 validation (may carry `issues`; an invalid orderBy/limit is also E1017), E1015 invalid scope, E0003 invalid against current domain state.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponseDto'
'401':
description: Missing or expired API key — E1010, E1020.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponseDto'
'403':
description: Refused — E1000 invalid key, E1011 project not in token scope, E1012 insufficient scope, E1029 environment not in token scope, E1032 environment creation needs a token without env-targeted capabilities (its allowlist cannot cover a not-yet-existing environment), E0043 the project's plan does not include the feature (e.g. webhooks require a paid plan on cloud).
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponseDto'
'404':
description: User not found
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponseDto'
'429':
description: Rate limit exceeded — E1013. The limit follows the project's plan (100/500/1000/3000 requests per minute); unknown credentials share a per-IP bucket. Every response also carries X-RateLimit-Limit / -Remaining / -Reset for pacing; a 429 adds the standard Retry-After header (seconds to back off).
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponseDto'
tags:
- Users
security:
- bearer: []
put:
operationId: ApiUsersController_upsert
summary: Create or update a user
parameters:
- name: id
required: true
in: path
description: User external ID
schema:
type: string
- name: environmentId
required: true
in: path
description: Environment ID
schema:
type: string
- name: projectId
required: true
in: path
description: Project ID
schema:
type: string
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/UpsertUserBodyDto'
responses:
'200':
description: User created or updated
content:
application/json:
schema:
$ref: '#/components/schemas/UserDto'
'400':
description: Invalid request — E1017 validation (may carry `issues`; an invalid orderBy/limit is also E1017), E1015 invalid scope, E0003 invalid against current domain state.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponseDto'
'401':
description: Missing or expired API key — E1010, E1020.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponseDto'
'403':
description: Refused — E1000 invalid key, E1011 project not in token scope, E1012 insufficient scope, E1029 environment not in token scope, E1032 environment creation needs a token without env-targeted capabilities (its allowlist cannot cover a not-yet-existing environment), E0043 the project's plan does not include the feature (e.g. webhooks require a paid plan on cloud).
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponseDto'
'429':
description: Rate limit exceeded — E1013. The limit follows the project's plan (100/500/1000/3000 requests per minute); unknown credentials share a per-IP bucket. Every response also carries X-RateLimit-Limit / -Remaining / -Reset for pacing; a 429 adds the standard Retry-After header (seconds to back off).
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponseDto'
tags:
- Users
security:
- bearer: []
delete:
operationId: ApiUsersController_remove
summary: Delete a user
description: 'DESTRUCTIVE and permanent — removes the user AND everything hanging off them in this environment: attributes, company memberships, segment memberships, question answers and event history. There is no restore; re-identifying the same external id later starts a brand-new user.'
parameters:
- name: id
required: true
in: path
description: User external ID
schema:
type: string
- name: environmentId
required: true
in: path
description: Environment ID
schema:
type: string
- name: projectId
required: true
in: path
description: Project ID
schema:
type: string
responses:
'204':
description: User deleted
'400':
description: Invalid request — E1017 validation (may carry `issues`; an invalid orderBy/limit is also E1017), E1015 invalid scope, E0003 invalid against current domain state.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponseDto'
'401':
description: Missing or expired API key — E1010, E1020.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponseDto'
'403':
description: Refused — E1000 invalid key, E1011 project not in token scope, E1012 insufficient scope, E1029 environment not in token scope, E1032 environment creation needs a token without env-targeted capabilities (its allowlist cannot cover a not-yet-existing environment), E0043 the project's plan does not include the feature (e.g. webhooks require a paid plan on cloud).
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponseDto'
'404':
description: User not found
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponseDto'
'429':
description: Rate limit exceeded — E1013. The limit follows the project's plan (100/500/1000/3000 requests per minute); unknown credentials share a per-IP bucket. Every response also carries X-RateLimit-Limit / -Remaining / -Reset for pacing; a 429 adds the standard Retry-After header (seconds to back off).
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponseDto'
tags:
- Users
security:
- bearer: []
components:
schemas:
ListUsersResponseDto:
type: object
properties:
results:
type: array
items:
type: object
properties:
id:
type: string
description: External user id — the id your app supplied at identify/upsert.
object:
type: string
enum:
- user
attributes:
type: object
additionalProperties: {}
createdAt:
type: string
format: date-time
companies:
type:
- array
- 'null'
items:
type: object
properties:
id:
type: string
object:
type: string
enum:
- company
attributes:
type: object
additionalProperties: {}
createdAt:
type: string
format: date-time
required:
- id
- object
- attributes
- createdAt
description: 'null = not expanded (pass expand: ["companies"]); [] = expanded, none.'
memberships:
type:
- array
- 'null'
items:
type: object
properties:
id:
type: string
description: Internal membership record id (not addressable anywhere) — join on userId/companyId instead.
object:
type: string
enum:
- companyMembership
attributes:
type: object
additionalProperties: {}
createdAt:
type: string
format: date-time
companyId:
type: string
description: External company id — the id companies are addressed by.
userId:
type: string
description: External user id — the id users are addressed by.
company:
type: object
properties:
id:
type: string
object:
type: string
enum:
- company
attributes:
type: object
additionalProperties: {}
createdAt:
type: string
format: date-time
required:
- id
- object
- attributes
- createdAt
required:
- id
- object
- attributes
- createdAt
- companyId
- userId
description: 'null = not expanded (pass expand: ["memberships"]); [] = expanded, none.'
required:
- id
- object
- attributes
- createdAt
- companies
- memberships
next:
type:
- string
- 'null'
description: Full URL of the next page — request it as-is (it already carries `cursor=` and your query parameters). null = no further pages.
previous:
type:
- string
- 'null'
description: Full URL of the previous page — request it as-is. null = already at the first page.
required:
- results
- next
- previous
UserDto:
type: object
properties:
id:
type: string
description: External user id — the id your app supplied at identify/upsert.
object:
type: string
enum:
- user
attributes:
type: object
additionalProperties: {}
createdAt:
type: string
format: date-time
companies:
type:
- array
- 'null'
items:
type: object
properties:
id:
type: string
object:
type: string
enum:
- company
attributes:
type: object
additionalProperties: {}
createdAt:
type: string
format: date-time
required:
- id
- object
- attributes
- createdAt
description: 'null = not expanded (pass expand: ["companies"]); [] = expanded, none.'
memberships:
type:
- array
- 'null'
items:
type: object
properties:
id:
type: string
description: Internal membership record id (not addressable anywhere) — join on userId/companyId instead.
object:
type: string
enum:
- companyMembership
attributes:
type: object
additionalProperties: {}
createdAt:
type: string
format: date-time
companyId:
type: string
description: External company id — the id companies are addressed by.
userId:
type: string
description: External user id — the id users are addressed by.
company:
type: object
properties:
id:
type: string
object:
type: string
enum:
- company
attributes:
type: object
additionalProperties: {}
createdAt:
type: string
format: date-time
required:
- id
- object
- attributes
- createdAt
required:
- id
- object
- attributes
- createdAt
- companyId
- userId
description: 'null = not expanded (pass expand: ["memberships"]); [] = expanded, none.'
required:
- id
- object
- attributes
- createdAt
- companies
- memberships
UpsertUserBodyDto:
type: object
properties:
attributes:
description: 'Custom attributes to write on the user (merged into existing attributes). Each value is a literal, null (remove), or one operation object — {set}, {set_once}, {add}, {union}, {remove}. Values are coerced losslessly to the definition type; a value that does not fit is rejected. Attributes with an unknown codeName AUTO-CREATE a definition (type inferred from the value, or pinned with `data_type`) — a mistyped key silently creates a new attribute instead of updating the real one. Each key must be a valid codeName: start with a letter, then letters/digits/underscores, 2–100 chars.'
type: object
additionalProperties:
anyOf:
- anyOf:
- anyOf:
- type: string
- type: number
- type: boolean
- type: array
items:
anyOf:
- type: string
- type: number
- type: boolean
- type: object
properties:
set:
anyOf:
- anyOf:
- type: string
- type: number
- type: boolean
- type: array
items:
anyOf:
- type: string
- type: number
- type: boolean
data_type:
type: string
enum:
- string
- number
- boolean
- datetime
- list
description: Pins the type of the attribute definition when this write creates it; never retypes an existing definition (a conflicting data_type is rejected).
required:
- set
additionalProperties: false
description: Set the value (same as a literal), optionally pinning `data_type`.
- type: object
properties:
set_once:
anyOf:
- anyOf:
- type: string
- type: number
- type: boolean
- type: array
items:
anyOf:
- type: string
- type: number
- type: boolean
data_type:
type: string
enum:
- string
- number
- boolean
- datetime
- list
description: Pins the type of the attribute definition when this write creates it; never retypes an existing definition (a conflicting data_type is rejected).
required:
- set_once
additionalProperties: false
description: Set the value only when the attribute has no value yet.
- type: object
properties:
add:
type: number
required:
- add
additionalProperties: false
description: Add to a Number attribute (negative to subtract); a missing value starts at 0.
- type: object
properties:
union:
anyOf:
- anyOf:
- type: string
- type: number
- type: boolean
- type: array
items:
anyOf:
- type: string
- type: number
- type: boolean
required:
- union
additionalProperties: false
description: Append the value(s) not yet present to a List attribute; a missing list starts empty.
- type: object
properties:
remove:
anyOf:
- anyOf:
- type: string
- type: number
- type: boolean
- type: array
items:
anyOf:
- type: string
- type: number
- type: boolean
required:
- remove
additionalProperties: false
description: Remove every matching value from a List attribute; a missing attribute is left undefined.
description: 'A literal (string, number, boolean, list of scalars), null to remove the attribute, or exactly one operation object: {set}, {set_once}, {add}, {union}, {remove} — `set` and `set_once` may carry `data_type`.'
additionalProperties: false
ErrorResponseDto:
type: object
properties:
error:
type: object
properties:
code:
type: string
description: Stable machine-readable code (e.g. E1017). Match on this, never on `message`.
message:
type: string
description: Human-readable summary. Wording may change between releases.
issues:
description: Validation errors (E1017) may carry one entry per problem so every field can be fixed in a single round-trip. Absent on other errors.
type: array
items:
type: object
properties:
rule:
type: string
description: 'Which validation layer rejected it: schema | reactive_condition | action_not_allowed | step_shape | reference_target | auto_start | media_url | destination_url. New values may be added; treat an unknown value as a generic validation failure.'
message:
type: string
path:
description: Path into the request body (e.g. `steps[0].triggers[0].when[1]`).
type: string
required:
- rule
- message
doc_url:
type: string
description: Base URL of the API documentation.
required:
- error
securitySchemes:
bearer:
scheme: bearer
bearerFormat: utp_... personal API token (opaque)
type: http