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.
openapi: 3.2.0
info:
title: There There Teams API
description: 'REST API for There There, the AI-powered helpdesk. All endpoints require
authentication via a bearer token, and most require the
`X-Workspace-Id` header to identify which workspace the request targets.
You can copy the workspace ID from
Settings > Account > API Tokens or
Settings > Workspace > General.
Responses follow a consistent shape: single resources are returned under a
`data` key; collections return `data` alongside `meta` and `links` for
pagination.'
version: 1.0.0
servers:
- url: https://there-there.app/api
description: Production
security:
- bearerAuth: []
tags:
- name: Teams
paths:
/teams:
get:
operationId: listTeams
tags:
- Teams
summary: List workspace teams
parameters:
- $ref: '#/components/parameters/WorkspaceHeader'
responses:
'200':
description: List of teams
content:
application/json:
schema:
type: object
properties:
data:
type: array
items:
$ref: '#/components/schemas/Team'
post:
operationId: createTeam
tags:
- Teams
summary: Create a team (admin only)
parameters:
- $ref: '#/components/parameters/WorkspaceHeader'
requestBody:
required: true
content:
application/json:
schema:
type: object
required:
- name
properties:
name:
type: string
maxLength: 255
description:
type: string
nullable: true
responses:
'201':
description: Team created
content:
application/json:
schema:
type: object
properties:
data:
$ref: '#/components/schemas/Team'
/teams/{team}:
get:
operationId: showTeam
tags:
- Teams
summary: Show a team
parameters:
- $ref: '#/components/parameters/WorkspaceHeader'
- name: team
in: path
required: true
schema:
type: string
responses:
'200':
description: Team
content:
application/json:
schema:
type: object
properties:
data:
$ref: '#/components/schemas/Team'
put:
operationId: updateTeam
tags:
- Teams
summary: Update a team (admin only)
parameters:
- $ref: '#/components/parameters/WorkspaceHeader'
- name: team
in: path
required: true
schema:
type: string
requestBody:
content:
application/json:
schema:
type: object
properties:
name:
type: string
description:
type: string
nullable: true
responses:
'200':
description: Updated team
content:
application/json:
schema:
type: object
properties:
data:
$ref: '#/components/schemas/Team'
delete:
operationId: deleteTeam
tags:
- Teams
summary: Delete a team (admin only)
parameters:
- $ref: '#/components/parameters/WorkspaceHeader'
- name: team
in: path
required: true
schema:
type: string
responses:
'204':
description: Team deleted
/teams/{team}/members/{user}:
post:
operationId: addTeamMember
tags:
- Teams
summary: Add a member to a team (admin only)
parameters:
- $ref: '#/components/parameters/WorkspaceHeader'
- name: team
in: path
required: true
schema:
type: string
- name: user
in: path
required: true
schema:
type: string
description: User ULID.
responses:
'200':
description: Updated team
content:
application/json:
schema:
type: object
properties:
data:
$ref: '#/components/schemas/Team'
delete:
operationId: removeTeamMember
tags:
- Teams
summary: Remove a member from a team (admin only)
parameters:
- $ref: '#/components/parameters/WorkspaceHeader'
- name: team
in: path
required: true
schema:
type: string
- name: user
in: path
required: true
schema:
type: string
responses:
'204':
description: Member removed
components:
schemas:
Team:
type: object
properties:
id:
type: integer
ulid:
type: string
name:
type: string
description:
type: string
nullable: true
logo_url:
type: string
nullable: true
member_count:
type: integer
parameters:
WorkspaceHeader:
name: X-Workspace-Id
in: header
required: false
schema:
type: integer
description: 'Workspace ID this request targets. Required for tokens that have
access to multiple workspaces or to all workspaces. Optional for
tokens scoped to a single workspace (auto-resolved). Find the ID under
[Settings > Account > API Tokens](https://there-there.app/settings/account/api-tokens) or
[Settings > Workspace > General](https://there-there.app/settings/workspace/general).
'
securitySchemes:
bearerAuth:
type: http
scheme: bearer
description: Sanctum API token. Generate one from Settings > API Tokens.