TravelMindsAI Account API

Account, API keys, usage. Session-authenticated.

GitHub OpenAPI

Operations 7

POST /v1/api-keys Create an API key — full secret returned once, never again #
GET /v1/api-keys List the calling account's API keys (prefixes only) #
DELETE /v1/api-keys/{key_id} Soft-revoke an API key (sets revoked_at) #
GET /v1/account Snapshot of the account: profile, active subscription, current-month usage #
POST /v1/onboarding/event Record completion of an onboarding tutorial step #
GET /v1/onboarding/state Return the dashboard onboarding tutorial state #
GET /v1/usage Detailed usage for the dashboard — daily series + top endpoints #

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.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/travelminds-ai:travelminds-ai-account-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

travelminds-ai-account-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Travelminds Ai Account API
  version: 0.13.0
  description: 'Operations tagged account across 2 of this provider''s published API definitions: travelminds-ai-api-openapi.json, travelminds-ai-openapi.json. Each path carries the servers of the definition it was published in.'
servers:
- url: https://api.travelminds.ai
  description: Production
tags:
- name: Account
  description: Account, API keys, usage. Session-authenticated.
paths:
  /v1/api-keys:
    post:
      tags:
      - Account
      summary: Create an API key — full secret returned once, never again
      description: Generates a new API key shaped tmai_live_.. The full key is returned in api_key on this response only; subsequent reads via GET /v1/api-keys return key_prefix only. Store the full key securely on creation.
      operationId: create_api_key_v1_api_keys_post
      parameters:
      - name: authorization
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Authorization
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ApiKeyCreate'
      responses:
        '201':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiKeyCreateResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
    get:
      tags:
      - Account
      summary: List the calling account's API keys (prefixes only)
      description: Returns each key's id, name, key_prefix, and timestamps. The full secret is never returned — the server only stores its argon2 hash. Sorted newest-first.
      operationId: list_api_keys_v1_api_keys_get
      parameters:
      - name: authorization
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Authorization
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/ApiKeyOut'
                title: Response List Api Keys V1 Api Keys Get
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /v1/api-keys/{key_id}:
    delete:
      tags:
      - Account
      summary: Soft-revoke an API key (sets revoked_at)
      description: Idempotent revocation — re-revoking a revoked key returns 404. The key row is preserved (revoked_at timestamp set) for audit. Subsequent requests with this key return 401.
      operationId: revoke_api_key_v1_api_keys__key_id__delete
      parameters:
      - name: key_id
        in: path
        required: true
        schema:
          type: string
          title: Key Id
      - name: authorization
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Authorization
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RevokeResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /v1/account:
    get:
      tags:
      - Account
      summary: 'Snapshot of the account: profile, active subscription, current-month usage'
      description: Returns account profile, active subscription (or null on the free plan), this calendar month's request_count + bytes_returned, and the quota with what remains of it. The free plan is a one-time trial (quota_period 'one_time', counted against all use so far, never reset); paid plans are monthly. Drives the dashboard home screen.
      operationId: get_account_v1_account_get
      parameters:
      - name: authorization
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Authorization
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AccountView'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /v1/onboarding/event:
    post:
      tags:
      - Account
      summary: Record completion of an onboarding tutorial step
      description: Idempotent — re-recording the same event is a no-op. Used by the dashboard tutorial widget when the user creates their first key, makes their first call, etc.
      operationId: record_onboarding_event_v1_onboarding_event_post
      parameters:
      - name: authorization
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Authorization
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/OnboardingEventBody'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /v1/onboarding/state:
    get:
      tags:
      - Account
      summary: Return the dashboard onboarding tutorial state
      description: Returns the list of all ONBOARDING_STEPS, each annotated as completed or not. Some steps (api_key_created, first_call, concierge_tried) are auto-detected from existing tables — the user doesn't have to POST an event for those.
      operationId: get_onboarding_state_v1_onboarding_state_get
      parameters:
      - name: authorization
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Authorization
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /v1/usage:
    get:
      tags:
      - Account
      summary: Detailed usage for the dashboard — daily series + top endpoints
      description: Returns the current calendar month's usage at daily granularity, the top-5 endpoints by call count, and a 7-day extrapolation used by the dashboard to prompt for an upgrade ahead of quota exhaustion. Use this for the in-dashboard usage chart; use /v1/account for the lighter summary that drives the home screen.
      operationId: get_usage_detailed_v1_usage_get
      parameters:
      - name: authorization
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Authorization
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    RevokeResponse:
      properties:
        revoked:
          type: string
          title: Revoked
      type: object
      required:
      - revoked
      title: RevokeResponse
    AccountView:
      properties:
        account:
          additionalProperties: true
          type: object
          title: Account
        plan_id:
          type: string
          title: Plan Id
        subscription:
          anyOf:
          - additionalProperties: true
            type: object
          - type: 'null'
          title: Subscription
        payment:
          anyOf:
          - additionalProperties: true
            type: object
          - type: 'null'
          title: Payment
        usage_this_month:
          $ref: '#/components/schemas/UsageView'
      type: object
      required:
      - account
      - plan_id
      - usage_this_month
      title: AccountView
    OnboardingEventBody:
      properties:
        event:
          type: string
          pattern: ^(api_key_created|first_call|concierge_tried|docs_read)$
          title: Event
        payload:
          additionalProperties: true
          type: object
          title: Payload
      type: object
      required:
      - event
      title: OnboardingEventBody
    ApiKeyCreateResponse:
      properties:
        id:
          type: string
          title: Id
        name:
          anyOf:
          - type: string
          - type: 'null'
          title: Name
        key_prefix:
          type: string
          title: Key Prefix
        created_at:
          anyOf:
          - type: string
            format: date-time
          - type: 'null'
          title: Created At
        last_used_at:
          anyOf:
          - type: string
            format: date-time
          - type: 'null'
          title: Last Used At
        expires_at:
          anyOf:
          - type: string
            format: date-time
          - type: 'null'
          title: Expires At
        revoked_at:
          anyOf:
          - type: string
            format: date-time
          - type: 'null'
          title: Revoked At
        api_key:
          type: string
          title: Api Key
      type: object
      required:
      - id
      - key_prefix
      - api_key
      title: ApiKeyCreateResponse
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
            - type: string
            - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
      - loc
      - msg
      - type
      title: ValidationError
    ApiKeyCreate:
      properties:
        name:
          type: string
          title: Name
          default: default
      type: object
      title: ApiKeyCreate
    UsageView:
      properties:
        request_count:
          type: integer
          title: Request Count
        bytes_returned:
          type: integer
          title: Bytes Returned
        quota:
          type: integer
          title: Quota
        remaining:
          type: integer
          title: Remaining
        quota_period:
          type: string
          title: Quota Period
          description: '''one_time'' for the free plan (a trial counted against all use so far, never reset); ''monthly'' for paid plans.'
          default: monthly
        quota_used:
          type: integer
          title: Quota Used
          description: 'Calls counted against the quota: all use so far for ''one_time'', this month for ''monthly''.'
          default: 0
        concierge_count:
          type: integer
          title: Concierge Count
          default: 0
        concierge_quota:
          type: integer
          title: Concierge Quota
          default: 0
        concierge_remaining:
          type: integer
          title: Concierge Remaining
          default: 0
      type: object
      required:
      - request_count
      - bytes_returned
      - quota
      - remaining
      title: UsageView
    ApiKeyOut:
      properties:
        id:
          type: string
          title: Id
        name:
          anyOf:
          - type: string
          - type: 'null'
          title: Name
        key_prefix:
          type: string
          title: Key Prefix
        created_at:
          anyOf:
          - type: string
            format: date-time
          - type: 'null'
          title: Created At
        last_used_at:
          anyOf:
          - type: string
            format: date-time
          - type: 'null'
          title: Last Used At
        expires_at:
          anyOf:
          - type: string
            format: date-time
          - type: 'null'
          title: Expires At
        revoked_at:
          anyOf:
          - type: string
            format: date-time
          - type: 'null'
          title: Revoked At
      type: object
      required:
      - id
      - key_prefix
      title: ApiKeyOut
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: tmai_live_…
      description: Your TravelMindsAI API key.
    SessionAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: A session token from /v1/login.
x-refined-from:
- travelminds-ai-api-openapi.json
- travelminds-ai-openapi.json