Atmee.aiDocs
APIAPI referenceGeneration

Summarize generations

GET
/v1/generation/summary

Counts the account's generations by kind and its clips by mode (picture or avatar; unknown for clips made before modes were recorded), under the same madeBy, status, since and q filters as GET /v1/generation, for filter chips such as "Clips · 14". makers lists everyone who made any of the account's generations (whatever the filters), latest first: members, former members (named "Former member") and API keys, each with its user id or key id for madeBy. Visibility and scopes are those of GET /v1/generation.

Authorization

headerX-Api-Key<token>

Your secret API key (sk_atmee_...; older keys start sk_live_), sent as X-Api-Key. Keep it on your server and never send it to a browser.

Query Parameters

madeBy?array<>

As on GET /v1/generation.

Itemsitems <= 50
status?array<>

As on GET /v1/generation.

Itemsitems <= 5
since?string
Formatdate-time
q?string
Lengthlength <= 200

Response Body

The counts and makers.

application/json
  1. response
counts*

Generations by kind under the filters.

total*integer
clipModes*

Clips by mode under the filters; unknown counts clips made before modes were recorded.

makers*array<>

Everyone who made any of the account's generations, latest first (the filters do not apply).

unknownGenerations*integer

Generations whose maker was not recorded (older calls).

Example Request
curl -X GET 'https://api.atmanity.us/v1/generation/summary'
Example Response
{  "counts": {    "clip": 0,    "portrait": 0,    "voice": 0  },  "total": 0,  "clipModes": {    "picture": 0,    "avatar": 0,    "unknown": 0  },  "makers": [    {      "madeBy": {        "type": "member",        "userId": "2c4a230c-5085-4924-a3e1-25fb4fc5965b",        "apiKeyId": "37ba0474-c0bb-4910-bfb5-d6cebb614366",        "name": "string",        "avatarUrl": "http://example.com",        "formerMember": true,        "revoked": true      },      "generations": 0,      "lastAt": "2019-08-24T14:15:22Z"    }  ],  "unknownGenerations": 0}