This guide explains how to authenticate with the Enroll Path API and make your first requests so your district can integrate its systems with Enroll Path. To create the Service Account that your integration uses, open User Management in Enroll Path.
Table of Contents ↑
At a Glance
How It Works
Step 1 - Create a Service Account for Your Integration
Step 2 - Authenticate and Get an Access Token
Step 3 - Look Up Your Tenant ID
Step 4 - Call the Enroll Path API
Token Lifetime
Security Responsibilities
Troubleshooting
Support
At a Glance ↑
| Item | Value |
|---|---|
| Authentication endpoint | https://cognito-idp.us-west-2.amazonaws.com/ |
| Client ID | 7b60cpunjem99eml2q9n747nvt |
| Enroll Path API base URL | https://api.aeriesenroll.com |
| API reference (Swagger) | https://api.aeriesenroll.com/swagger/ |
| Token to use | AuthenticationResult.AccessToken, sent as Authorization: Bearer [token] |
How It Works ↑
Integration is a one-time setup followed by a repeatable request cycle.

- Create a Service Account - a dedicated Enroll Path user with the Registrar role.
- Authenticate - exchange the account's username and password for an access token.
- Look up your Tenant ID - using your district's tenant key.
- Call the API - send the access token with every request.
Step 1 - Create a Service Account for Your Integration ↑
In Enroll Path, open User Management and create a new user with the Registrar role. This user is your integration's Service Account - the account your integration signs in as.
Recommendations
- Use a dedicated account for the integration, not a staff member's personal login. This keeps access working when staff change and makes API activity easy to identify.
- Use a shared mailbox you control (for example,
enrollpath-integration@yourdistrict.org) so password resets reach the right team. - Sign in to Enroll Path once with the new account to confirm it works and to set a permanent password before using it for the API.
Step 2 - Authenticate and Get an Access Token ↑
Send the account's username and password to the authentication endpoint. A successful response contains an AccessToken, which you'll use for every API call.

Request
| Part | Value |
|---|---|
| Method | POST |
| URL | https://cognito-idp.us-west-2.amazonaws.com/ |
| Header | Content-Type: application/x-amz-json-1.1 |
| Header | X-Amz-Target: AWSCognitoIdentityProviderService.InitiateAuth |
Body:
{
"AuthFlow": "USER_PASSWORD_AUTH",
"ClientId": "7b60cpunjem99eml2q9n747nvt",
"AuthParameters": {
"USERNAME": "[your-service-account-username]",
"PASSWORD": "[your-service-account-password]"
}
}
Examples
curl (uses jq to build the body safely; credentials come from environment variables, never hard-coded):
curl -s https://cognito-idp.us-west-2.amazonaws.com/ \
-H 'Content-Type: application/x-amz-json-1.1' \
-H 'X-Amz-Target: AWSCognitoIdentityProviderService.InitiateAuth' \
-d "$(jq -n --arg u "$USERNAME" --arg p "$PASSWORD" \
'{AuthFlow:"USER_PASSWORD_AUTH",ClientId:"7b60cpunjem99eml2q9n747nvt",AuthParameters:{USERNAME:$u,PASSWORD:$p}}')"
PowerShell:
$body = @{
AuthFlow = "USER_PASSWORD_AUTH"
ClientId = "7b60cpunjem99eml2q9n747nvt"
AuthParameters = @{ USERNAME = $env:ENROLLPATH_USERNAME; PASSWORD = $env:ENROLLPATH_PASSWORD }
} | ConvertTo-Json
$auth = Invoke-RestMethod -Method Post `
-Uri "https://cognito-idp.us-west-2.amazonaws.com/" `
-ContentType "application/x-amz-json-1.1" `
-Headers @{ "X-Amz-Target" = "AWSCognitoIdentityProviderService.InitiateAuth" } `
-Body $body
$accessToken = $auth.AuthenticationResult.AccessToken
Python:
import os, requests
resp = requests.post(
"https://cognito-idp.us-west-2.amazonaws.com/",
headers={
"Content-Type": "application/x-amz-json-1.1",
"X-Amz-Target": "AWSCognitoIdentityProviderService.InitiateAuth",
},
json={
"AuthFlow": "USER_PASSWORD_AUTH",
"ClientId": "7b60cpunjem99eml2q9n747nvt",
"AuthParameters": {
"USERNAME": os.environ["ENROLLPATH_USERNAME"],
"PASSWORD": os.environ["ENROLLPATH_PASSWORD"],
},
},
timeout=30,
)
resp.raise_for_status()
access_token = resp.json()["AuthenticationResult"]["AccessToken"]
Response
{
"AuthenticationResult": {
"AccessToken": "eyJraWQiOi...",
"ExpiresIn": 3600,
"IdToken": "eyJraWQiOi...",
"RefreshToken": "eyJjdHkiOi...",
"TokenType": "Bearer"
},
"ChallengeParameters": {}
}
AccessToken. The response also includes an IdToken and a RefreshToken - these will not work as API credentials.ExpiresIn is the token's lifetime in seconds. See Token Lifetime below.
Step 3 - Look Up Your Tenant ID ↑
Every district in Enroll Path has a tenant key and a Tenant ID. Use your tenant key to retrieve your Tenant ID, which subsequent API requests require. If you don't know your tenant key, contact Aeries Support.
curl -s "https://api.aeriesenroll.com/api/tenants/key/[your-tenant-key]" \
-H "Authorization: Bearer $ACCESS_TOKEN"
Keep the returned Tenant ID in your integration's configuration - it doesn't change, so you only need to look it up once.
Step 4 - Call the Enroll Path API ↑
Send the access token in the Authorization header of every request:
Authorization: Bearer [AccessToken]
Finding Endpoints
The full list of endpoints, parameters and response shapes is available in Swagger:
https://api.aeriesenroll.com/swagger/
Always Use the Latest API Version
Build your integration against the latest API version listed in Swagger. Older versions will be retired in future releases, and integrations built on them will stop working at that point.
Token Lifetime ↑
Access tokens expire. Rather than authenticating on every call, reuse the token until it's close to expiring, then authenticate again.

- Track expiry using
ExpiresInfrom the authentication response. - Re-authenticate a few minutes before expiry, or whenever the API returns 401 Unauthorized.
- Don't authenticate more often than needed - excessive sign-in attempts may be throttled.
Security Responsibilities ↑
The Service Account's password is a secret. Your district is responsible for protecting it. Anyone who has it can access your district's Enroll Path data through the API.
Do
- Store the password in a secrets manager or vault (e.g. Azure Key Vault, AWS Secrets Manager, a password manager, or your platform's credential store).
- Load it at runtime from that store or from environment variables.
- Limit who can view or change the credential, and rotate it periodically and whenever someone with access leaves.
- Treat access tokens as credentials too - keep them in memory and don't write them to disk or logs.
Don't
- Put the password or tokens in source code, scripts, config files checked into version control, tickets, emails, or chat messages.
- Log request bodies or headers that contain the password or token.
- Share the Service Account with other people or vendors - create a separate Service Account for each integration.
Troubleshooting ↑
| Symptom | Likely Cause | What to Do |
|---|---|---|
NotAuthorizedException from the authentication endpoint | Wrong username or password, or account disabled | Verify credentials; confirm the user is active in User Management |
Response contains ChallengeName instead of AuthenticationResult | Account needs a password change or other sign-in step | Sign in to Enroll Path once with the account, complete the prompt, then retry |
TooManyRequestsException | Authenticating too frequently | Cache and reuse the access token (see Token Lifetime) |
401 Unauthorized from the API | Token expired, missing, or the wrong token was sent | Re-authenticate; make sure you send the AccessToken (not the IdToken) with the Bearer prefix |
403 Forbidden from the API | Account lacks permission for that resource | Confirm the user has the Registrar role |
404 Not Found on the tenant lookup | Incorrect tenant key | Confirm your tenant key with Aeries Support |
Support ↑
For help with your integration, contact Aeries Support and include the endpoint, the time of the request, and the HTTP status code you received.