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/vidmoat-com:vidmoat-com-telegram-bot-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: 3.2.0
info:
title: Vidmoat Telegram bot users API
version: v1
description: Generated from the Vidmoat API reference. Every operation links its reference page.
servers:
- url: https://api.vidmoat.com/v1
security:
- bearerAuth: []
tags:
- name: Telegram bot users
description: 'The people using the Telegram bot connected to this key''s app: list them, allow or revoke them, block them, set their daily limit. The building block for selling access. Fields on these endpoints are snake_case. The key must be minted for the app whose bot you manage, and these scopes are never inherited by older keys.'
paths:
/telegram/users:
get:
operationId: list-telegram-users
summary: List bot users
description: The people who used the bot, 25 a page. Search with q (name, @username or id), sort=last_seen or spend.
tags:
- Telegram bot users
externalDocs:
url: https://developer.vidmoat.com/developer/docs/api/telegram-users/list-telegram-users
security:
- bearerAuth:
- telegram.users.read
parameters:
- name: q
in: query
description: Search by Telegram id, @username or name.
schema:
type: string
- name: sort
in: query
description: '`spend` is highest 30-day credits first.'
schema:
type: string
enum:
- last_seen
- spend
default: last_seen
- name: page
in: query
description: 1-based page number.
schema:
type: integer
default: 1
responses:
'200':
description: List bot users
content:
application/json:
schema:
type: object
properties:
object:
type: string
description: '`list`.'
data:
type: array
description: People.
items:
type: object
properties:
object:
type: string
description: Always `telegram_user`.
id:
type:
- string
- 'null'
description: Vidmoat id of the person. `null` for somebody who has not used the bot yet.
telegram_user_id:
type:
- string
- 'null'
description: Numeric Telegram id, as a string.
username:
type:
- string
- 'null'
description: Telegram @username, without the @.
display_name:
type:
- string
- 'null'
description: Their Telegram name.
status:
type: string
description: Whether they are blocked.
enum:
- active
- blocked
allowlisted:
type: boolean
description: On the bot's allowlist.
daily_credits:
type:
- integer
- 'null'
description: Their own daily credit limit. `null` means the bot's default.
first_seen_at:
type:
- string
- 'null'
description: ISO 8601 time of their first message.
last_seen_at:
type:
- string
- 'null'
description: ISO 8601 time of their latest message.
projects:
type: integer
description: Projects they have. Omitted for somebody who has not used the bot.
messages_today:
type: integer
description: Since midnight UTC. Omitted for somebody who has not used the bot.
messages_30d:
type: integer
description: Last 30 days. Omitted for somebody who has not used the bot.
credits_today:
type: integer
description: Credits spent since midnight UTC. Omitted for somebody who has not used the bot.
credits_30d:
type: integer
description: Credits spent in the last 30 days. Omitted for somebody who has not used the bot.
page:
type: integer
description: This page.
pages:
type: integer
description: Total pages (at least 1).
page_size:
type: integer
description: Always 25.
total:
type: integer
description: People matching.
sort:
type: string
description: The order used.
example:
object: list
data:
- object: telegram_user
id: teu_1
telegram_user_id: '123456789'
username: ama_edits
display_name: Ama
status: active
allowlisted: true
daily_credits: 200
first_seen_at: '2026-09-01T10:00:00.000Z'
last_seen_at: '2026-10-02T18:00:00.000Z'
projects: 3
messages_today: 2
messages_30d: 41
credits_today: 10
credits_30d: 60
page: 1
pages: 1
page_size: 25
total: 1
sort: last_seen
'404':
description: '`not_found`: The key is not minted for an app you own (a personal key, for example). Use a key from the app whose bot you manage.'
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
x-vidmoat-scope: telegram.users.read
x-vidmoat-cost: Free
x-codeSamples:
- lang: Shell
label: curl
source: "curl \"https://api.vidmoat.com/v1/telegram/users?sort=spend\" \\\n -H \"Authorization: Bearer $VIDMOAT_KEY\""
/telegram/users/{user}:
get:
operationId: get-telegram-user
summary: Get a bot user
description: One person, by numeric Telegram id or @username, with their standing, daily limit and usage. Works for somebody allowed before they ever messaged the bot.
tags:
- Telegram bot users
externalDocs:
url: https://developer.vidmoat.com/developer/docs/api/telegram-users/get-telegram-user
security:
- bearerAuth:
- telegram.users.read
parameters:
- name: user
in: path
required: true
description: A numeric Telegram user id, or an @username (4 to 32 letters, digits and underscores; send the @ as `%40` or leave it out).
schema:
type: string
responses:
'200':
description: Get a bot user
content:
application/json:
schema:
type: object
properties:
object:
type: string
description: Always `telegram_user`.
id:
type:
- string
- 'null'
description: Vidmoat id of the person. `null` for somebody who has not used the bot yet.
telegram_user_id:
type:
- string
- 'null'
description: Numeric Telegram id, as a string.
username:
type:
- string
- 'null'
description: Telegram @username, without the @.
display_name:
type:
- string
- 'null'
description: Their Telegram name.
status:
type: string
description: Whether they are blocked.
enum:
- active
- blocked
allowlisted:
type: boolean
description: On the bot's allowlist.
daily_credits:
type:
- integer
- 'null'
description: Their own daily credit limit. `null` means the bot's default.
first_seen_at:
type:
- string
- 'null'
description: ISO 8601 time of their first message.
last_seen_at:
type:
- string
- 'null'
description: ISO 8601 time of their latest message.
projects:
type: integer
description: Projects they have. Omitted for somebody who has not used the bot.
messages_today:
type: integer
description: Since midnight UTC. Omitted for somebody who has not used the bot.
messages_30d:
type: integer
description: Last 30 days. Omitted for somebody who has not used the bot.
credits_today:
type: integer
description: Credits spent since midnight UTC. Omitted for somebody who has not used the bot.
credits_30d:
type: integer
description: Credits spent in the last 30 days. Omitted for somebody who has not used the bot.
example:
object: telegram_user
id: teu_1
telegram_user_id: '123456789'
username: ama_edits
display_name: Ama
status: active
allowlisted: true
daily_credits: 200
first_seen_at: '2026-09-01T10:00:00.000Z'
last_seen_at: '2026-10-02T18:00:00.000Z'
projects: 3
messages_today: 2
messages_30d: 41
credits_today: 10
credits_30d: 60
'400':
description: '`invalid_request`: `user` is neither a numeric id nor a valid username.'
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'404':
description: '`not_found`: The key is not minted for an app you own (a personal key, for example). Use a key from the app whose bot you manage.'
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
x-vidmoat-scope: telegram.users.read
x-vidmoat-cost: Free
x-codeSamples:
- lang: Shell
label: curl
source: "curl https://api.vidmoat.com/v1/telegram/users/123456789 \\\n -H \"Authorization: Bearer $VIDMOAT_KEY\""
patch:
operationId: update-telegram-user
summary: Update a bot user
description: 'Change one person: allowed (allowlist), blocked, daily_credits (null for the bot''s default).
Live keys only, 120 changes a minute per app. A key only ever reaches its own app''s bot. Blocking somebody stops work already queued for them and sends the telegram.end_user.blocked webhook.'
tags:
- Telegram bot users
externalDocs:
url: https://developer.vidmoat.com/developer/docs/api/telegram-users/update-telegram-user
security:
- bearerAuth:
- telegram.users.write
parameters:
- name: user
in: path
required: true
description: A numeric Telegram user id, or an @username (4 to 32 letters, digits and underscores; send the @ as `%40` or leave it out).
schema:
type: string
requestBody:
required: false
content:
application/json:
schema:
type: object
properties:
allowed:
type: boolean
description: '`true` adds them to the allowlist (by id, or by the @username you gave when they have not used the bot yet); `false` removes them.'
blocked:
type: boolean
description: '`true` blocks them; `false` unblocks them.'
daily_credits:
type:
- integer
- 'null'
description: Their own daily limit, 0 to 1,000,000, or `null` for the bot's default.
responses:
'200':
description: Update a bot user
content:
application/json:
schema:
type: object
properties:
object:
type: string
description: Always `telegram_user`.
id:
type:
- string
- 'null'
description: Vidmoat id of the person. `null` for somebody who has not used the bot yet.
telegram_user_id:
type:
- string
- 'null'
description: Numeric Telegram id, as a string.
username:
type:
- string
- 'null'
description: Telegram @username, without the @.
display_name:
type:
- string
- 'null'
description: Their Telegram name.
status:
type: string
description: Whether they are blocked.
enum:
- active
- blocked
allowlisted:
type: boolean
description: On the bot's allowlist.
daily_credits:
type:
- integer
- 'null'
description: Their own daily credit limit. `null` means the bot's default.
first_seen_at:
type:
- string
- 'null'
description: ISO 8601 time of their first message.
last_seen_at:
type:
- string
- 'null'
description: ISO 8601 time of their latest message.
projects:
type: integer
description: Projects they have. Omitted for somebody who has not used the bot.
messages_today:
type: integer
description: Since midnight UTC. Omitted for somebody who has not used the bot.
messages_30d:
type: integer
description: Last 30 days. Omitted for somebody who has not used the bot.
credits_today:
type: integer
description: Credits spent since midnight UTC. Omitted for somebody who has not used the bot.
credits_30d:
type: integer
description: Credits spent in the last 30 days. Omitted for somebody who has not used the bot.
example:
object: telegram_user
id: teu_1
telegram_user_id: '123456789'
username: ama_edits
display_name: Ama
status: active
allowlisted: true
daily_credits: 200
first_seen_at: '2026-09-01T10:00:00.000Z'
last_seen_at: '2026-10-02T18:00:00.000Z'
projects: 3
messages_today: 2
messages_30d: 41
credits_today: 10
credits_30d: 60
'400':
description: '`invalid_request`: No field to change, a value of the wrong type, a test key, or an allowlist already at 5,000 entries.'
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'404':
description: '`not_found`: The key is not minted for an app you own (a personal key, for example). Use a key from the app whose bot you manage.
`not_found`: No bot is connected to the app yet.'
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'429':
description: '`rate_limited`: More than 120 changes a minute on this app.'
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
x-vidmoat-scope: telegram.users.write
x-vidmoat-cost: Free
x-vidmoat-test-mode: 'Refused with a test key (400): these are real people on a live bot.'
x-codeSamples:
- lang: Shell
label: curl
source: "curl -X PATCH https://api.vidmoat.com/v1/telegram/users/%40ama_edits \\\n -H \"Authorization: Bearer $VIDMOAT_KEY\" \\\n -H \"Content-Type: application/json\" \\\n -d '{\"allowed\": true, \"daily_credits\": 200}'"
components:
schemas:
Error:
type: object
required:
- error
properties:
error:
type: object
required:
- code
- message
properties:
code:
type: string
enum:
- invalid_request
- unauthorized
- insufficient_scope
- access_suspended
- app_suspended
- age_confirmation_required
- plan_required
- insufficient_credits
- quota_exceeded
- not_found
- conflict
- payload_too_large
- prompt_rejected
- rate_limited
- provider_error
- not_configured
- internal_error
- unavailable
message:
type: string
docs_url:
type: string
format: uri
securitySchemes:
bearerAuth:
type: http
scheme: bearer
description: 'A Vidmoat API key (`Authorization: Bearer vmk_...`). Scopes:
- `account.read`: See your plan and remaining credits
- `projects.read`: Read your projects and their edit documents
- `projects.write`: Create, edit and delete projects
- `media.read`: List the media you have uploaded
- `media.write`: Upload media and import it from a URL
- `render.read`: Check render progress and fetch preview frames
- `render.write`: Start renders, using your monthly export allowance
- `ai.transcribe`: Transcribe audio, spending your credits
- `ai.speech`: Generate speech, spending your credits
- `speech.read`: Read your private voice profiles and generated speech, including audio downloads
- `speech.voices.write`: Create and manage authorised personal voice profiles, spending credits
- `speech.generate`: Generate speech using your private voices, spending credits
- `cast.read`: See your saved Cast: characters, places, props and styles, with their reference images
- `cast.write`: Create, change and delete Cast members from images in your account
- `social.agents.read`: See your agent profiles on Vidmoat Social and your allowance
- `social.agents.write`: Create your agent profiles on Vidmoat Social, post your finished exports as them and reply on their posts
- `ai.image`: Generate images and stickers, spending your credits
- `ai.video`: Generate video, spending your credits
- `ai.agent`: Run the AI editing agent, spending your credits
- `ai.analyze`: Analyse footage for scenes, faces and speech
- `stock.read`: Search the stock media library
- `webhooks.manage`: Manage webhook endpoints for this app
- `plugins.invoke`: Call third-party plugins you have installed, sending them the arguments of each call
- `telegram.users.read`: See the people using your Telegram bot and what they spent
- `telegram.users.write`: Allow, block and set daily limits for the people using your Telegram bot'
externalDocs:
url: https://developer.vidmoat.com/developer/docs/api