This guide walks you through everything you need to make your first API call to Lofty. By the end, you’ll have a developer account, valid credentials, and a working request that returns lead data from the API.Documentation Index
Fetch the complete documentation index at: https://developer.lofty.com/llms.txt
Use this file to discover all available pages before exploring further.
Create a developer account
Go to the Lofty Developer Platform at https://api.lofty.com/vendor/frontend/static/index.html#/login and complete the signup flow:
- Click Sign Up.
- Enter your full name, organization name, email address, phone number, and a password.
- Check your email for a verification code — it’s valid for 10 minutes.
- Enter the verification code to complete signup.
If you’re building an integration for production use, you’ll need to submit your application for review. Lofty’s review process typically takes 2–5 business days. You can continue developing against the API in Development Mode while your app is under review.
Get your credentials
Choose the authentication method that fits your use case:OAuth 2.0 (recommended for third-party integrations)Once your application is registered in the Developer Portal, you’ll receive a Client ID and Client Secret. Use these to obtain a short-lived
access_token by following the OAuth 2.0 flow. Each token is scoped to the API permissions you’ve granted to your application.If you call an endpoint your application hasn’t been granted access to, the API returns HTTP 403 with error code 200100 (“Sorry, the vendor does not have permission for this API.”) — even if your token is otherwise valid. Grant the necessary scopes in the Developer Portal before making those calls.API Key (for personal use, scripts, CLI)In the Lofty CRM, go to Settings > Integrations > API to generate an API key. Each key is a user-scoped personal access token with configurable expiration.API keys are also used as
LOFTY_CUSTOMER_KEY in the Lofty CLI and the Client Credentials flow.Make your first API call
Fetch a list of leads from your Lofty account. The endpoint requires your credentials in the Replace
Authorization header.YOUR_ACCESS_TOKEN or YOUR_API_KEY with your actual credentials.Handle the response
A successful response returns a JSON object containing your leads data. Check the If the request fails, the response includes a non-zero
code field to confirm success — Lofty uses 0 to indicate a successful operation.code and a human-readable msg field explaining the error. Common error codes include 200100 (missing API permission scope, returns HTTP 403) and 401 (invalid or expired credentials).