Retrieve series information
GET/api/v2/series
Retrieves series metadata for the authenticated account. The endpoint supports three operation modes:
1. List All Series: Returns a complete list of all series associated with the authenticated account.
- Omit the
seriesparameter. - Response contains an array of all series with their metadata.
2. Get Specific Series: Returns metadata for a specified series if it exists in the account.
- Provide the
seriesparameter with a valid series identifier. - Response contains a single series object with name and displayName.
3. Non-Existent Series: When an invalid or non-existent series identifier is provided, the endpoint returns an empty list with HTTP 200 status.
- Provide the
seriesparameter with an invalid identifier. - Response contains an empty array.
- This is not treated as an error condition; the endpoint always returns HTTP 200.
Use Cases:
- Series Discovery: Browse all available series in an account
- Series Validation: Verify if a specific series exists in an account
- Metadata Retrieval: Get display names and identifiers for series management
Examples:
List All Series:
curl -L 'https://sandbox.amuselabs.com/pmm/api/v2/series' \
-H 'Authorization: Bearer YOUR_JWT_TOKEN' \
-H 'Accept: application/json'
Get Specific Series:
curl -L 'https://sandbox.amuselabs.com/pmm/api/v2/series?series=api-demo-crossword' \
-H 'Authorization: Bearer YOUR_JWT_TOKEN' \
-H 'Accept: application/json'
Request
Responses
- 200
- 400
- 401
- 403
- 500
Successful response. The endpoint always returns HTTP 200 status code. The response body contains a list of series objects. When the series parameter is omitted, the list contains all series for the account. When a valid series identifier is provided, the list contains a single series object. When an invalid series identifier is provided, the list is empty.
Bad request. Possible errorCode values for this endpoint:
INVALID_PARAMETER(116) — generic input validation (malformed query parameters).
Caller is not authenticated.
Possible errorCode values:
UNAUTHENTICATED_ACCESS(108) — noAuthorizationheader presented.EXPIRED_TOKEN(98) — bearer token expired.INVALID_TOKEN(99) — bearer token malformed or signature invalid.
Caller is authenticated but not allowed to access the requested resource. Possible errorCode values for this endpoint:
NO_ACCESS_TO_SET(84) — caller has no access to the requested series.
An internal server error occurred while processing the request.
Possible errorCode values include IO_FAILURE (128) and other internal failures.