Skip to main content
Agent Discovery

nocapmocap API documentation

This page documents the public discovery surface and the most commonly integrated authenticated endpoints for nocapmocap.

Authentication

Authenticated endpoints expect a bearer access token issued by the deployment's Supabase Auth server. The local well-known endpoints expose the protected resource metadata plus OIDC and OAuth discovery documents that agents can use for automated setup.

Curated endpoints

GET /api/health

Returns a lightweight health payload for discovery and uptime checks.

Public
  • Use this for status link relations and simple liveness probes.
  • The response is intentionally stable and machine-readable.

GET /api/explore

Lists community motions with filters, sorting, and cursor pagination.

Public
  • Supports category, characterType, search, sortBy, limit, offset, and cursor query parameters.
  • Results are signed for public media access where required.

POST /api/generate

Starts a text-to-motion generation job for the signed-in user.

Bearer token
  • Validated request fields include prompt, duration, cfgScale, optional motionId, optional characterType, optional lockRoot, and optional loop.
  • Credits and admin bypass semantics stay enforced server-side.

GET /api/generate/{id}

Polls a generation by prediction identifier and returns generation assets when complete.

Bearer token
  • Only the owner of the prediction can poll it.
  • Responses include status and completed asset URLs when available.

GET /api/profile

Returns the current authenticated profile snapshot.

Bearer token
  • This is the simplest authenticated route to verify bearer token wiring.

PATCH /api/profile

Updates the signed-in user profile name or email with server-side validation.

Bearer token
  • OAuth-linked users cannot change their email through this route.

GET /api/library

Lists a user library with filtering, pagination, and optional pack metadata.

Bearer token
  • Supports category, characterType, tag, search, source_type, includePackInfo, includeTotal, limit, offset, and cursor.

POST /api/polar/checkout-url

Creates a checkout session URL for plans or credit packs.

Bearer token
  • Request bodies differentiate between recurring plans and one-time credit packs.