# Build on Portfolio Dividend Tracker > Register an OAuth app for Portfolio Dividend Tracker (PDT) and let investors connect their PDT account to it. Apps are public OAuth 2.0 clients that use the authorization code flow with PKCE (S256), then call the PDT REST API with the investor's access token. Registration is a single unauthenticated request, so an agent can register an app itself. Each investor still approves access in their browser. ## Build - [Full guide for agents](https://build.portfoliodividendtracker.com/llms-full.txt): Registration, authorization with PKCE, token exchange, refresh, calling the API and error handling, with exact requests and responses - [Register an app](https://build.portfoliodividendtracker.com/#register): The registration form for people ## API - [API reference for agents](https://api.portfoliodividendtracker.com/llms-full.txt): Every endpoint of the REST API in Markdown - [OpenAPI specification](https://api.portfoliodividendtracker.com/openapi.json): Machine-readable OpenAPI 3.1 specification - [Interactive API reference](https://api.portfoliodividendtracker.com): API documentation for people ## Optional - [OAuth server metadata](https://mcp.portfoliodividendtracker.com/.well-known/oauth-authorization-server): RFC 8414 discovery, including the registration_endpoint - [MCP server](https://mcp.portfoliodividendtracker.com): Model Context Protocol server for AI clients, with its own scope (mcp:use)