Skip to content

Authentication

The Hypemarket API uses personal access tokens (PATs). A token is bound to a single user; the same token works across every organization that user belongs to.

  1. Sign in at hypemarket.ai
  2. Navigate to Account → API access tokens (or visit /me/access_tokens)
  3. Click New token, give it a description (e.g. “My laptop script”) and choose a permission:
    • Read-onlyGET and HEAD requests only
    • Read and write — all verbs

You can also mint tokens programmatically once you have any existing token:

POST /me/access_tokens.json
Authorization: Bearer <existing-token>
Content-Type: application/json
{ "access_token": { "description": "CI script", "permission": "write" } }

Response (201 Created):

{
"id": 42,
"token": "Xy3kPq...",
"description": "CI script",
"permission": "write",
"created_at": "2026-05-05T08:00:00Z"
}

Send it as a Bearer header on every JSON request:

Terminal window
curl -H "Authorization: Bearer <your-token>" \
-H "Accept: application/json" \
https://hypemarket.ai/me/social_accounts.json

The Accept: application/json header is required — without it the same endpoint returns HTML.

DELETE /me/access_tokens/:id.json
Authorization: Bearer <your-token>

Returns 204 No Content. Subsequent requests using the revoked token will fail with 401 Unauthorized.

GET /me/access_tokens.json
Authorization: Bearer <your-token>

A read token attempting any non-GET/HEAD request returns:

HTTP/1.1 401 Unauthorized
WWW-Authenticate: Token realm="Application"

To upgrade, create a new write-scoped token; tokens are not editable in place.