Button Preview

        

API Reference

v2.0.0

Full API documentation is available on GitBook — always up to date with the latest endpoints, parameters, and examples.

Open Full API Docs on GitBook ↗

Base URL

https://id.yaphub.xyz

Quick Reference — Endpoints

MethodEndpointDescription
POST/auth/registerRegister a wallet address
POST/auth/challengeGet a one-time challenge to sign
POST/auth/loginLogin → returns access + refresh token
POST/auth/refreshRefresh access token
POST/auth/logoutLogout current session
POST/auth/logout-allLogout from all devices
POST/api/verifyVerify a token (public endpoint)
GET/api/userinfoGet user info (OIDC)
GET/api/statusService health check
GET/.well-known/openid-configurationOIDC discovery

POST /api/verify

The main endpoint for your backend to verify a token:

// Request POST https://id.yaphub.xyz/api/verify { "access_token": "eyJ..." } // Response { "valid": true, "sub": "uuid", "accountId": "uuid", "yapid_premium": false, "scope": "openid profile", "expires_in": 3597 }

Full documentation on GitBook ↗

Live API Tests
GET /api/status

Check if the YapID service is running.

POST /api/verify
GET /.well-known/openid-configuration

OIDC Discovery endpoint.