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 ↑

ItemValue
Authentication endpointhttps://cognito-idp.us-west-2.amazonaws.com/
Client ID7b60cpunjem99eml2q9n747nvt
Enroll Path API base URLhttps://api.aeriesenroll.com
API reference (Swagger)https://api.aeriesenroll.com/swagger/
Token to useAuthenticationResult.AccessToken, sent as Authorization: Bearer [token]

How It Works ↑

Integration is a one-time setup followed by a repeatable request cycle.

The one-time setup and the steps of each integration run.
The one-time setup and the steps of each integration run.
  1. Create a Service Account - a dedicated Enroll Path user with the Registrar role.
  2. Authenticate - exchange the account's username and password for an access token.
  3. Look up your Tenant ID - using your district's tenant key.
  4. 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.

The sign-in, tenant lookup, and API request flow.
The sign-in, tenant lookup, and API request flow.

Request

PartValue
MethodPOST
URLhttps://cognito-idp.us-west-2.amazonaws.com/
HeaderContent-Type: application/x-amz-json-1.1
HeaderX-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": {}

}

Important: Use the 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/

Note: Use Swagger as a reference for endpoints and request formats. Sending requests directly from the Swagger page ("Try it out") is not currently supported - make calls from your own tools or code as shown above.

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.

When to reuse a cached access token and when to sign in again.
When to reuse a cached access token and when to sign in again.
  • Track expiry using ExpiresIn from 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.
Warning: If you suspect the password has been exposed, change it in Enroll Path immediately and notify Aeries Support.

Troubleshooting ↑

SymptomLikely CauseWhat to Do
NotAuthorizedException from the authentication endpointWrong username or password, or account disabledVerify credentials; confirm the user is active in User Management
Response contains ChallengeName instead of AuthenticationResultAccount needs a password change or other sign-in stepSign in to Enroll Path once with the account, complete the prompt, then retry
TooManyRequestsExceptionAuthenticating too frequentlyCache and reuse the access token (see Token Lifetime)
401 Unauthorized from the APIToken expired, missing, or the wrong token was sentRe-authenticate; make sure you send the AccessToken (not the IdToken) with the Bearer prefix
403 Forbidden from the APIAccount lacks permission for that resourceConfirm the user has the Registrar role
404 Not Found on the tenant lookupIncorrect tenant keyConfirm 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.

Warning: Never include your password or access token in a support request.

Back to Top