API · Cosmos
GET /cosmos/users/{handle}/posts
A Cosmos user’s saved elements, newest first, paginated.
| |
|---|
| Request | GET /v1/cosmos/users/{handle}/posts |
| Operation id | cosmos.user.posts |
| Cost | 1 credit, refunded if the call fails |
| Auth | API key: Authorization: Bearer <key> or x-api-key. |
A Cosmos user’s saved elements, newest first, paginated.
| Name | Type | Required | Description |
|---|
handle | string | yes | Username, with or without @, or a profile URL. Example: cosmos. |
| Name | Type | Required | Description |
|---|
after | string | no | The previous page’s meta.next_token. |
| Status | Meaning | Schema |
|---|
200 | A page of elements. | CosmosElements |
400 | Invalid input. Nothing was charged. | Error |
401 | Missing or invalid API key. | Error |
402 | Not enough credits, a spend cap was reached, or payment is required. | Error |
403 | The target is private, or the account is suspended. | Error |
404 | The user, element or collection does not exist. | Error |
429 | Too many requests. Wait for Retry-After seconds. | Error |
503 | Cosmos is temporarily unavailable. Retryable; nothing was charged. | Error |
| Field | Type | Description |
|---|
data | CosmosElement[] | |
meta | object | |
Errors use one shape everywhere; see Errors for every code and what to do.