REST API Reference
The ~alter REST API exposes 76 endpoints across 11 sections for authentication, identity management, Discovery, identity matching, and credential infrastructure. For agent-based access, see the MCP Identity Server.
Base URL
https://mcp.truealter.com/api/v1All endpoint paths below are relative to this base URL.
Authentication
Endpoints use one of four authentication methods, indicated by the auth badge on each endpoint. For full details, see Authentication:
- JWT
Bearer - Bearer token in the
Authorizationheader. Obtained via/auth/loginor/auth/register. Expires after 6 hours; refresh via/auth/refresh. - Capability token
Bearer - The path for agents and programmatic clients. Connect through the OAuth flow and receive a capability token scoped per tool with explicit consent, passed as a bearer credential in the
Authorizationheader. - x402
micropayment - HTTP 402-based micropayment protocol. The server returns a 402 response with payment requirements; the client fulfils payment and retries. $0.01–$1.00 per identity query, 75% to data subject.
- Public
no auth - No authentication required. Used for registration, login, public archetype exploration, and anonymous discovery entry points.
Pagination
All list endpoints use cursor-based pagination. Pass cursor and limit as query parameters. The response includes a next_cursor field for fetching the next page.
GET /members?limit=20&cursor=eyJpZCI6MTAwfQ==Default limit varies by endpoint (max 100); see each endpoint's reference. Omit cursor to start from the beginning. When has_more is false, you have reached the last page.
API Sections
Authentication
11 endpointsRegistration, login, token management, and MFA.
People
12 endpointsIndividual profile management, consent settings, and discovery flow.
Organisations
7 endpointsOrganisation profiles, context configuration, SSO, and retention analytics.
Contexts
7 endpointsContext management, external tracking system sync, and indexing.
Matches
9 endpointsMatch results, belonging probability tiers, and interest tracking.
Identity
2 endpointsIdentity claim flow for verifying and linking individual identities.
Credentials
7 endpointsW3C Verifiable Credential issuance, verification, and revocation.
Credential Queries
5 endpointsx402-gated identity queries with audit trail.
Marketplace
4 endpointsx402 transaction records and identity income tracking.
Webhooks
8 endpointsWebhook subscription management and event delivery.
Exports
4 endpointsPDF reports and CSV data exports.