The Nadles User Portal includes a built-in API that allows you to programmatically access user portal data directly from within the user portal. This API is ideal for customizing user experiences, building custom dashboards, or integrating client-side tools that require user-specific information. You can use this API directly in JavaScript injected into user portal pages. All requests are scoped to the currently logged-in user, and no additional authentication is required when used within the portal environment.Documentation Index
Fetch the complete documentation index at: https://docs.nadles.com/llms.txt
Use this file to discover all available pages before exploring further.
Base URL
GET /customer
Returns the current user’s account data.
Example Request
GET /subscriptions/
Returns a paginated list of the current user’s subscriptions.
Query Parameters
| Parameter | Type | Description |
|---|---|---|
state | string | Optional. One of active, canceled |
offset | int | Optional. Pagination offset |
limit | int | Optional. Max number of results |
GET /subscriptions/{subscriptionId}/access-tokens/
Returns a list of access tokens for a given subscription.
Path Parameters
| Parameter | Type | Description |
|---|---|---|
subscriptionId | string | ID of the subscription |
Using the API
You can call this API from JavaScript injected into user portal pages.Example: Fetch current customer data
Notes
- All endpoints are automatically authenticated in the user portal.
- CORS is fully supported for use in client-side JavaScript within the portal.
- Responses are JSON-formatted.