> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.algorhythm.app/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.algorhythm.app/_mcp/server.

# List posts

GET https://api.algorhythm.app/v1/posts

Returns your team's posts across all farm profiles, newest first. In-flight posts are included with `status` `processing`; `platform_post_id` and `url` populate once each post is live.

**Rate limit:** 100 requests per minute per team.

Reference: https://docs.algorhythm.app/api-reference/posts/list-posts-v-1-posts-get

## Authentication

- `X-API-Key` header (required) — API Key authentication via header

## Request

### Query parameters

- `cursor` (string, optional, nullable) — Opaque pagination cursor from a previous response's `next_cursor`.
- `limit` (integer, optional, default: 20) — Maximum number of posts to return (max 100).

## Response

### 200

Successful Response

- `posts` (list of PostStatusResponse, required)
- `has_more` (boolean, required) — Whether more results exist beyond this page.
- `next_cursor` (string, optional, nullable) — Opaque cursor for the next page. Pass back as the `cursor` query parameter. `null` when no more pages.

## Errors

### 422 Unprocessable Entity Error

Validation Error

- `detail` (list of ValidationError, optional)

### 429 Too Many Requests Error

Rate limit exceeded.

- `any`

## Types

### PostStatusResponse

- `post_id` (string, required) — The post identifier (the same value returned by `POST /v1/posts`).
- `profile_id` (string, required) — The farm profile this post belongs to.
- `status` (enum, required) — `processing` while the post uploads/publishes on the device, `posted` once it is live on TikTok, `failed` if the post errored out.
  - Allowed values: `processing`, `posted`, `failed`
- `platform_post_id` (string, optional, nullable) — TikTok's native post ID. `null` until the post is `posted`.
- `url` (string, optional, nullable) — Public TikTok URL of the post. `null` until the post is `posted`.
- `failure_reason` (string, optional, nullable) — Why the post failed, when `status` is `failed`. `null` otherwise.

### ValidationError

- `loc` (list of ValidationErrorLocItems, required)
- `msg` (string, required)
- `type` (string, required)
- `input` (any, optional)
- `ctx` (ValidationErrorCtx, optional)

### ValidationErrorLocItems

- string
- integer

### ValidationErrorCtx

## Examples

**Response**

```json
{
  "posts": [
    {
      "post_id": "273a704c-0114-4e9e-a574-e8ae3a4d427e",
      "profile_id": "f8a1c2d4-3b7e-4f9a-9c2d-1e5b7a8f9c3d",
      "status": "posted",
      "platform_post_id": "7255433468434549509",
      "url": "https://www.tiktok.com/@greenvalleyfarm/video/7255433468434549509"
    },
    {
      "post_id": "4154a282-2759-4d3a-beb9-4f7c3fcfb1a6",
      "profile_id": "f8a1c2d4-3b7e-4f9a-9c2d-1e5b7a8f9c3d",
      "status": "processing",
      "platform_post_id": null,
      "url": null
    }
  ],
  "has_more": false,
  "next_cursor": "eyJvZmZzZXQiOiAyMH0="
}
```

**SDK Code**

```python
import requests

url = "https://api.algorhythm.app/v1/posts"

headers = {"X-API-Key": "<apiKey>"}

response = requests.get(url, headers=headers)

print(response.json())
```

```javascript
const url = 'https://api.algorhythm.app/v1/posts';
const options = {method: 'GET', headers: {'X-API-Key': '<apiKey>'}};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "https://api.algorhythm.app/v1/posts"

	req, _ := http.NewRequest("GET", url, nil)

	req.Header.Add("X-API-Key", "<apiKey>")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby
require 'uri'
require 'net/http'

url = URI("https://api.algorhythm.app/v1/posts")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["X-API-Key"] = '<apiKey>'

response = http.request(request)
puts response.read_body
```

```java
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.get("https://api.algorhythm.app/v1/posts")
  .header("X-API-Key", "<apiKey>")
  .asString();
```

```php
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://api.algorhythm.app/v1/posts', [
  'headers' => [
    'X-API-Key' => '<apiKey>',
  ],
]);

echo $response->getBody();
```

```csharp
using RestSharp;

var client = new RestClient("https://api.algorhythm.app/v1/posts");
var request = new RestRequest(Method.GET);
request.AddHeader("X-API-Key", "<apiKey>");
IRestResponse response = client.Execute(request);
```

```swift
import Foundation

let headers = ["X-API-Key": "<apiKey>"]

let request = NSMutableURLRequest(url: NSURL(string: "https://api.algorhythm.app/v1/posts")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```