Documentation Index
Fetch the complete documentation index at: https://docs.pylon.mortgage/llms.txt
Use this file to discover all available pages before exploring further.
Environments
Pylon provides two separate environments, each requiring its own set of credentials:| Environment | API URL | Auth URL |
|---|---|---|
| Production | https://pylon.mortgage | https://auth.pylon.mortgage |
| Sandbox | https://sandbox.pylon.mortgage | https://auth.pylon.mortgage |
Contact Pylon to obtain your
client_id and client_secret for each
environment. Never use sandbox credentials in production or vice versa.Obtaining an access token
Exchange your client credentials for an access token by making a POST request to the auth endpoint:Response
A successful authentication request returns:Using your access token
Include your access token as a Bearer token in theAuthorization header for all API requests:
Authentication flow
The OAuth 2.0 Client Credentials flow works as follows:Error handling
| HTTP Status | Error | Resolution |
|---|---|---|
400 | Invalid request | Check your request body format and required fields |
401 | Invalid credentials | Verify your client_id and client_secret |
403 | Forbidden | Confirm your credentials have access to the target environment |