VistaLink Account API
The Account API from VistaLink, for account.
The Account API from VistaLink, for account.
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/vistalink-com:vistalink-com-account-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: VistaLink Hotels Account API
description: 'Hotel search, hotel details and hotel chat over the VistaLink catalogue of 800,000 hotels.
**Authentication.** Send an API key as `Authorization: Bearer `. Keys: https://vistalink.com/developers.
**Key-less access.** `POST /v1/search` and `GET /v1/hotels/{hotel_id}` also work with NO Authorization header, under a per-IP rate limit. Key-less responses carry a price only when both `check_in` and `check_out` are given (the cached all-inclusive total for that stay, no live lookup), and `include_rates` is ignored. Sending an invalid key is always a 401; it never falls back to key-less.
The same capabilities are available to AI agents over MCP at `/mcp` (streamable HTTP).'
version: 1.0.0
servers:
- url: https://api.vistalink.com
security:
- bearerAuth: []
tags:
- name: Account
paths:
/v1/keys:
get:
tags:
- Account
summary: List Keys
description: List all API keys for the authenticated tenant (keys are masked).
operationId: list_keys_v1_keys_get
responses:
'200':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/ApiKeyListResponse'
'401':
description: Unauthorized
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
security:
- bearerAuth: []
post:
tags:
- Account
summary: Create Key
description: 'Generate a new API key for the authenticated tenant.
The new key''s scopes are a subset of the calling key''s, and it cannot
outlive the calling key. Omitting both fields keeps today''s behaviour
when the caller holds every scope and does not expire.'
operationId: create_key_v1_keys_post
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/CreateKeyRequest'
required: true
responses:
'201':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/ApiKeyResponse'
'401':
description: Unauthorized
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
security:
- bearerAuth: []
/v1/keys/{key_prefix}:
delete:
tags:
- Account
summary: Revoke Key
description: Revoke an API key by its prefix.
operationId: revoke_key_v1_keys__key_prefix__delete
parameters:
- name: key_prefix
in: path
required: true
schema:
type: string
title: Key Prefix
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
'401':
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
description: Unauthorized
'404':
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
description: Not Found
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
security:
- bearerAuth: []
patch:
tags:
- Account
summary: Update Key
description: 'Narrow a key''s scopes or shorten its expiry. Neither can be widened or cleared.
The result must also stay inside the calling key''s own grant.'
operationId: update_key_v1_keys__key_prefix__patch
parameters:
- name: key_prefix
in: path
required: true
schema:
type: string
title: Key Prefix
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/UpdateKeyRequest'
responses:
'200':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/UpdateKeyResponse'
'401':
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
description: Unauthorized
'403':
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
description: Forbidden
'404':
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
description: Not Found
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
security:
- bearerAuth: []
/v1/account:
get:
tags:
- Account
summary: Get Account
description: 'The tenant, key and credit for the calling key only.
There is no argument for another tenant or another key. The full key is
not returned.'
operationId: get_account_v1_account_get
responses:
'200':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/AccountResponse'
'401':
description: Unauthorized
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
security:
- bearerAuth: []
/v1/usage:
get:
tags:
- Account
summary: Get Usage
description: Get aggregated usage summary for the authenticated tenant.
operationId: get_usage_v1_usage_get
parameters:
- name: since
in: query
required: false
schema:
anyOf:
- type: string
- type: 'null'
description: ISO 8601 datetime filter
title: Since
description: ISO 8601 datetime filter
responses:
'200':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/UsageSummaryResponse'
'401':
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
description: Unauthorized
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
security:
- bearerAuth: []
/v1/billing/invoices:
get:
tags:
- Account
summary: Get Billing Invoices
description: List billing invoices for the authenticated tenant.
operationId: get_billing_invoices_v1_billing_invoices_get
responses:
'200':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/InvoiceListResponse'
'401':
description: Unauthorized
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
security:
- bearerAuth: []
components:
schemas:
HTTPValidationError:
properties:
detail:
items:
$ref: '#/components/schemas/ValidationError'
type: array
title: Detail
type: object
title: HTTPValidationError
ApiKeyListResponse:
properties:
keys:
items:
$ref: '#/components/schemas/ApiKeyListItem'
type: array
title: Keys
type: object
title: ApiKeyListResponse
description: GET /v1/keys response body.
CreateKeyRequest:
properties:
environment:
type: string
pattern: ^(live|test)$
title: Environment
default: test
label:
anyOf:
- type: string
maxLength: 255
- type: 'null'
title: Label
scopes:
anyOf:
- items:
type: string
type: array
- type: 'null'
title: Scopes
description: Non-empty subset of search, content, rates, reconcile, booking, chat, quotes. Duplicates are ignored. Omit to grant the calling key's scopes (every scope, when it holds them all).
expires_at:
anyOf:
- type: string
format: date-time
- type: 'null'
title: Expires At
description: RFC 3339 instant, in the future and at most 366 days ahead. Not with expires_in_days.
expires_in_days:
anyOf:
- type: integer
- type: 'null'
title: Expires In Days
description: Whole days from now, 1–366. Not with expires_at.
type: object
title: CreateKeyRequest
description: 'POST /v1/keys request body.
Omitting ``scopes`` and both expiry fields keeps the previous behaviour
when the calling key itself holds every scope and does not expire: the new
key gets every scope and no expiry. A narrower or expiring caller cannot
grant more than it has.'
ValidationError:
properties:
loc:
items:
anyOf:
- type: string
- type: integer
type: array
title: Location
msg:
type: string
title: Message
type:
type: string
title: Error Type
type: object
required:
- loc
- msg
- type
title: ValidationError
ErrorResponse:
properties:
error:
type: string
title: Error
detail:
anyOf:
- type: string
- type: 'null'
title: Detail
request_id:
anyOf:
- type: string
- type: 'null'
title: Request Id
type: object
required:
- error
title: ErrorResponse
description: Standard error response body.
UsageSummaryResponse:
properties:
tenant_id:
type: string
title: Tenant Id
since:
type: string
title: Since
total_requests:
type: integer
title: Total Requests
default: 0
avg_latency_ms:
type: integer
title: Avg Latency Ms
default: 0
total_cost_usd:
type: number
title: Total Cost Usd
default: 0.0
monthly_quota:
anyOf:
- type: integer
- type: 'null'
title: Monthly Quota
monthly_used:
type: integer
title: Monthly Used
default: 0
monthly_remaining:
anyOf:
- type: integer
- type: 'null'
title: Monthly Remaining
type: object
required:
- tenant_id
- since
title: UsageSummaryResponse
description: GET /v1/usage response body.
UpdateKeyRequest:
properties:
scopes:
anyOf:
- items:
type: string
type: array
- type: 'null'
title: Scopes
description: Replacement scope list. Must be a non-empty subset of the key's current scopes and of the caller's.
expires_at:
anyOf:
- type: string
format: date-time
- type: 'null'
title: Expires At
description: Earlier expiry. Must be in the future, at most 366 days ahead, and not later than the current expiry.
expires_in_days:
anyOf:
- type: integer
- type: 'null'
title: Expires In Days
description: Whole days from now, 1–366, and not later than the key's current expiry. Not with expires_at.
type: object
title: UpdateKeyRequest
description: 'PATCH /v1/keys/{key_prefix}: narrow scopes and/or shorten expiry. Never widens.'
ApiKeyListItem:
properties:
key_id:
type: string
format: uuid
title: Key Id
prefix:
type: string
title: Prefix
environment:
type: string
title: Environment
label:
anyOf:
- type: string
- type: 'null'
title: Label
is_active:
type: boolean
title: Is Active
default: true
created_at:
anyOf:
- type: string
format: date-time
- type: 'null'
title: Created At
expires_at:
anyOf:
- type: string
format: date-time
- type: 'null'
title: Expires At
last_used_at:
anyOf:
- type: string
format: date-time
- type: 'null'
title: Last Used At
scopes:
items:
type: string
type: array
title: Scopes
type: object
required:
- key_id
- prefix
- environment
title: ApiKeyListItem
description: API key summary (never includes the full key).
InvoiceListResponse:
properties:
invoices:
items:
$ref: '#/components/schemas/InvoiceItem'
type: array
title: Invoices
total:
type: integer
title: Total
default: 0
type: object
title: InvoiceListResponse
description: GET /v1/billing/invoices response body.
AccountResponse:
properties:
tenant_id:
type: string
format: uuid
title: Tenant Id
team_name:
type: string
title: Team Name
tier:
type: string
title: Tier
environment:
type: string
title: Environment
key_prefix:
type: string
title: Key Prefix
scopes:
items:
type: string
type: array
title: Scopes
expires_at:
anyOf:
- type: string
format: date-time
- type: 'null'
title: Expires At
balance_usd:
type: string
title: Balance Usd
spend_cap_usd_month:
anyOf:
- type: string
- type: 'null'
title: Spend Cap Usd Month
type: object
required:
- tenant_id
- team_name
- tier
- environment
- key_prefix
- balance_usd
title: AccountResponse
description: 'GET /v1/account: the tenant that owns the calling key. No other tenant, no secret.'
UpdateKeyResponse:
properties:
prefix:
type: string
title: Prefix
label:
anyOf:
- type: string
- type: 'null'
title: Label
scopes:
items:
type: string
type: array
title: Scopes
expires_at:
anyOf:
- type: string
format: date-time
- type: 'null'
title: Expires At
type: object
required:
- prefix
title: UpdateKeyResponse
description: The key after a narrowing change (the secret is never returned).
InvoiceItem:
properties:
invoice_id:
type: string
title: Invoice Id
stripe_invoice_id:
anyOf:
- type: string
- type: 'null'
title: Stripe Invoice Id
period_start:
type: string
title: Period Start
period_end:
type: string
title: Period End
amount_usd:
type: number
title: Amount Usd
status:
type: string
title: Status
type: object
required:
- invoice_id
- period_start
- period_end
- amount_usd
- status
title: InvoiceItem
description: Single invoice entry.
ApiKeyResponse:
properties:
key_id:
type: string
format: uuid
title: Key Id
key:
type: string
title: Key
description: Full API key — save this, it won't be shown again
prefix:
type: string
title: Prefix
environment:
type: string
title: Environment
label:
anyOf:
- type: string
- type: 'null'
title: Label
created_at:
type: string
format: date-time
title: Created At
scopes:
items:
type: string
type: array
title: Scopes
description: Scopes this key holds.
expires_at:
anyOf:
- type: string
format: date-time
- type: 'null'
title: Expires At
description: When the key stops working. Null means it does not expire.
type: object
required:
- key_id
- key
- prefix
- environment
- created_at
title: ApiKeyResponse
description: Response after creating an API key (includes full key, shown once).
securitySchemes:
bearerAuth:
type: http
scheme: bearer
description: API key (`vl_live_…` or `vl_test_…`) from https://vistalink.com/developers. A key holds a non-empty subset of `search`, `content`, `rates`, `reconcile`, `booking`, `chat` and `quotes`, and may expire. Scope checks apply on /v2 (403 `required_scope`); an expired key is 401 on every route. Issue and narrow keys with POST/PATCH /v1/keys or the developer dashboard.
externalDocs:
url: https://vistalink.com/developers