Account
List API requests
GET /v1/account/api-requests- Permission
read:account- Tokens
- API key, CLI user token
List requests made with API keys, user tokens, and session tokens, newest first.
Query parameters
startstring, date-time
Only requests at or after this time.
endstring, date-time
Only requests before this time.
operationarray<string>
Only requests to these operations.
status_codearray<integer>
Only requests that returned these status codes.
credential_typearray<ApiRequestCredentialType>
Only requests made with these credential types.
credential_idarray<string>
Only requests made with these API keys, user tokens, or sessions, by id.
limitdefault
50integercursorstring
The `next_cursor` of the previous page.
{
"has_more": bool,
"next_cursor": str
}
1
import os
2
3
from ellipsis import Ellipsis
4
5
client = Ellipsis(api_key=os.environ["ELLIPSIS_API_TOKEN"])
6
7
for item in client.account.api_requests.list():
8
print(item)
1
import { Ellipsis } from '@ellipsis-dev/sdk';
2
3
const client = new Ellipsis({
4
apiKey: process.env.ELLIPSIS_API_TOKEN!,
5
});
6
7
for await (const item of await client.account.apiRequests.list()) {
8
console.log(item);
9
}
1
curl "https://api.ellipsis.dev/v1/account/api-requests" \
2
-H "Authorization: Bearer $ELLIPSIS_API_TOKEN"
Response
api_requestsarray<ApiRequest>required
has_moredefault
falsebooleanWhether more results exist past this page.
next_cursorstring
Pass as `cursor` to fetch the next page. Null on the last page. Opaque , echo it back rather than parsing it.