Skip to content

Savings and caching

Every request goes to your tenant’s own host, https://<tenant id>.atlanticagenticlabs.com, and is scoped to that tenant by row-level security. The examples read AAL_TENANT, AAL_KEY and your Access service token from the environment: see Authentication.

GET /api/v1/caching

Authentication: A person’s session, or a machine key with your Access service token, as the route’s role allows. A route that approves, decides, pays or changes a limit refuses a machine key (person_required).

Status Meaning
200 OK: the JSON document this route reads.
4XX Refused: {error, message} with a fixed error code, listed under Errors.
Terminal window
curl "https://$AAL_TENANT.atlanticagenticlabs.com/api/v1/caching" \
-H "Authorization: Bearer $AAL_KEY" \
-H "CF-Access-Client-Id: $CF_ACCESS_CLIENT_ID" \
-H "CF-Access-Client-Secret: $CF_ACCESS_CLIENT_SECRET"
GET /api/v1/rate-limits

Authentication: A person’s session, or a machine key with your Access service token, as the route’s role allows. A route that approves, decides, pays or changes a limit refuses a machine key (person_required).

Status Meaning
200 OK: the JSON document this route reads.
4XX Refused: {error, message} with a fixed error code, listed under Errors.
Terminal window
curl "https://$AAL_TENANT.atlanticagenticlabs.com/api/v1/rate-limits" \
-H "Authorization: Bearer $AAL_KEY" \
-H "CF-Access-Client-Id: $CF_ACCESS_CLIENT_ID" \
-H "CF-Access-Client-Secret: $CF_ACCESS_CLIENT_SECRET"
GET /api/v1/savings

Authentication: A person’s session, or a machine key with your Access service token, as the route’s role allows. A route that approves, decides, pays or changes a limit refuses a machine key (person_required).

Status Meaning
200 OK: the JSON document this route reads.
4XX Refused: {error, message} with a fixed error code, listed under Errors.
Terminal window
curl "https://$AAL_TENANT.atlanticagenticlabs.com/api/v1/savings" \
-H "Authorization: Bearer $AAL_KEY" \
-H "CF-Access-Client-Id: $CF_ACCESS_CLIENT_ID" \
-H "CF-Access-Client-Secret: $CF_ACCESS_CLIENT_SECRET"
GET /api/v1/savings/headline

Authentication: A person’s session, or a machine key with your Access service token, as the route’s role allows. A route that approves, decides, pays or changes a limit refuses a machine key (person_required).

Status Meaning
200 OK: the JSON document this route reads.
4XX Refused: {error, message} with a fixed error code, listed under Errors.
Terminal window
curl "https://$AAL_TENANT.atlanticagenticlabs.com/api/v1/savings/headline" \
-H "Authorization: Bearer $AAL_KEY" \
-H "CF-Access-Client-Id: $CF_ACCESS_CLIENT_ID" \
-H "CF-Access-Client-Secret: $CF_ACCESS_CLIENT_SECRET"
GET /api/v1/savings/retrieval

Authentication: A person’s session, or a machine key with your Access service token, as the route’s role allows. A route that approves, decides, pays or changes a limit refuses a machine key (person_required).

Status Meaning
200 OK: the JSON document this route reads.
4XX Refused: {error, message} with a fixed error code, listed under Errors.
Terminal window
curl "https://$AAL_TENANT.atlanticagenticlabs.com/api/v1/savings/retrieval" \
-H "Authorization: Bearer $AAL_KEY" \
-H "CF-Access-Client-Id: $CF_ACCESS_CLIENT_ID" \
-H "CF-Access-Client-Secret: $CF_ACCESS_CLIENT_SECRET"
GET /api/v1/savings/settings

Authentication: A person’s session, or a machine key with your Access service token, as the route’s role allows. A route that approves, decides, pays or changes a limit refuses a machine key (person_required).

Status Meaning
200 OK: the JSON document this route reads.
4XX Refused: {error, message} with a fixed error code, listed under Errors.
Terminal window
curl "https://$AAL_TENANT.atlanticagenticlabs.com/api/v1/savings/settings" \
-H "Authorization: Bearer $AAL_KEY" \
-H "CF-Access-Client-Id: $CF_ACCESS_CLIENT_ID" \
-H "CF-Access-Client-Secret: $CF_ACCESS_CLIENT_SECRET"
PUT /api/v1/savings/settings

Authentication: A person’s session, or a machine key with your Access service token, as the route’s role allows. A route that approves, decides, pays or changes a limit refuses a machine key (person_required).

Status Meaning
200 OK: the request was carried out. The answer is JSON.
4XX Refused: {error, message} with a fixed error code, listed under Errors.
Terminal window
curl -X PUT "https://$AAL_TENANT.atlanticagenticlabs.com/api/v1/savings/settings" \
-H "Authorization: Bearer $AAL_KEY" \
-H "CF-Access-Client-Id: $CF_ACCESS_CLIENT_ID" \
-H "CF-Access-Client-Secret: $CF_ACCESS_CLIENT_SECRET"