Need help with your APIs? I offer API discovery, governance & evangelism services. Explore services →
API Evangelist API Evangelist
Discovery
Learnings
Guidance
Toolbox
Alignment
API Evangelist LLC

Hathora TokensV1 API

Create, list, and revoke organization API tokens.

Hathora TokensV1 API is one of 11 APIs that Hathora publishes on the APIs.io network, described by a machine-readable OpenAPI specification.

Tagged areas include TokensV1. The published artifact set on APIs.io includes an OpenAPI specification, API documentation, and an API reference.

This API exposes 3 operations across 3 paths, and defines 1 schema. It is described by OpenAPI 3.0.3, at version 3.0.

Requests are made against a single base URL, https://api.hathora.dev.

3 operations 3 paths 1 schemas 1 GET1 POST1 PUT

Metadata

The identity and technical contract details declared by the specification.

Specification
OpenAPI 3.0.3
API Version
3.0
Base URL
https://api.hathora.dev
Authentication
HTTP Bearer, HTTP Bearer
Terms of Service
Resource Areas
1

Authentication & Security 2

Hathora TokensV1 API declares 2 security schemes for authenticating requests. It accepts HTTP bearer tokens (JWT) (hathoraDevToken). It accepts HTTP bearer tokens (JWT) (playerAuth). By default, every request must be authenticated.

  • hathoraDevToken — Organization developer/API token used for management endpoints (apps, builds, deployments, processes, rooms, logs, metrics, billing, tokens).
  • playerAuth — Short-lived player token issued by the AuthV1 login endpoints, used by game clients for room and lobby operations.

Paths & Operations 3

Across 3 paths, the API surfaces 3 operations — 1 GET, 1 POST, 1 PUT. Each is listed below with its method, path, parameters, and response codes.

TokensV1 3

Create, list, and revoke organization API tokens.

GET
/tokens/v1/{orgId}/list
Returns an unsorted list of an organization's API tokens.
GetOrgTokens 1 param → 200
POST
/tokens/v1/{orgId}/create
Create a new organization API token.
CreateOrgToken 1 param body → 201
PUT
/tokens/v1/{orgId}/revoke/{orgTokenId}
Revoke an organization API token.
RevokeOrgToken 2 params → 204

Schemas 1

The contract defines 1 schema that model the data the API accepts and returns. The most detailed is OrgToken (4 properties). Each schema is shown below with its type and property counts.

OrgToken
object
4 properties

Specification

The full machine-readable OpenAPI contract behind this narrative.

Source

hathora-tokensv1-api-openapi.yml Raw ↑

Other APIs Hathora publishes across the network.

Hathora AppsV2 API
Hathora AuthV1 API
Hathora BillingV1 API
Hathora BuildsV3 API
Hathora DeploymentsV3 API
Hathora DiscoveryV2 API
Hathora LogsV1 API
Hathora MetricsV1 API
Hathora ProcessesV3 API
Hathora RoomsV2 API