Query Recent Usage. This interface is deprecated and will be removed in a later version.
GET/users/me/requests
deprecated
This endpoint has been deprecated and may be replaced or removed in future versions of the API.
A list of the ten most recent tasks successfully completed by the API. Contains statistics about the task, including duration of execution and cost in credits.
Responses
- 200
OK
- application/json
- Schema
- Example (auto)
Schema
- Array [
- ]
create_timestampstring
model_namestring
request_typestring
token_count_promptinteger
image_count_promptinteger
token_count_completioninteger
duration_millisinteger
creditsnumber
[
{
"create_timestamp": "string",
"model_name": "string",
"request_type": "string",
"token_count_prompt": 0,
"image_count_prompt": 0,
"token_count_completion": 0,
"duration_millis": 0,
"credits": 0
}
]
Authorization: http
name: tokentype: httpscheme: bearerdescription: Can be generated in your [Aleph Alpha profile](https://app.aleph-alpha.com/profile)
- csharp
- curl
- dart
- go
- http
- java
- javascript
- kotlin
- c
- nodejs
- objective-c
- ocaml
- php
- powershell
- python
- r
- ruby
- rust
- shell
- swift
- HTTPCLIENT
- RESTSHARP
var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Get, "https://docs.aleph-alpha.com/users/me/requests");
request.Headers.Add("Accept", "application/json");
request.Headers.Add("Authorization", "Bearer <token>");
var response = await client.SendAsync(request);
response.EnsureSuccessStatusCode();
Console.WriteLine(await response.Content.ReadAsStringAsync());