Get Started
Learn how to authenticate and start using the Glint Solar API.
Enable API Access
To use the APIs an Organization Admin has to enable it.
- As an organization admin, log in to your Glint Solar account
- Navigate to Company Settings → Integrations → API Access
- Enable API Access
Authentication
The Glint Solar API uses Personal Access Tokens (PAT) for authentication. Include your token in the X-API-Key header with every request.
The Personal Access Token is tied to your user, and gives you access to everything your user has access to.
Creating a Personal Access Token
- Log in to your Glint Solar account
- Navigate to My Settings → Security → Personal Access Tokens
- Click "Create New Token"
- Give your token a descriptive name
- Copy the token immediately — it won't be shown again
Token Security
- Treat your token like you would a password
- Never share your token or commit it to version control
- Use environment variables to store tokens
- Set an expiry date on the token, and rotate tokens periodically
- Delete tokens you no longer need
Verify Your Setup
To verify that your API access is working, try listing your organizations:
curl -X GET "https://api.glintsolar.com/organizations/v1" \
-H "X-API-Key: YOUR_PERSONAL_ACCESS_TOKEN"
A successful response returns your organizations:
[
{
"id": "org_a1b2c3d4e5f6",
"name": "My Organization"
}
]
If you receive a 403 error, check that your token is correct and has not expired.