Skip to main content
POST
/
batch
Batch read requests
curl --request POST \
  --url https://slog.ai/batch \
  --header 'Content-Type: application/json' \
  --header 'slog-api-key: <api-key>' \
  --data '
{
  "requests": [
    "/tasks?filter[eq][status]=TODO&limit=10",
    "/projects/proj_01jqproj0001",
    "/teams/team_01jqteam0001/members"
  ]
}
'
{
  "results": [
    {
      "tasks": [
        {
          "id": "task_01jqabcd1111",
          "title": "Implement OAuth login",
          "status": "TODO"
        }
      ],
      "pagination": {
        "limit": 10,
        "nextCursor": null
      }
    },
    {
      "project": {
        "id": "proj_01jqproj0001",
        "name": "Platform v2",
        "status": "ACTIVE"
      }
    },
    {
      "error": {
        "code": "NOT_FOUND",
        "message": "Resource not found"
      }
    }
  ]
}

Authorizations

slog-api-key
string
header
required

API key obtained from the Slog dashboard or returned by the signup/invite-redeem flows. Pass as the slog-api-key header.

Body

application/json
requests
string[]
required

Array of relative API paths to fetch.

Example:
[
"/tasks?filter[eq][status]=TODO&limit=10",
"/projects/proj_01jqproj0001",
"/teams/team_01jqteam0001/members"
]

Response

Results in request order. Each result is either the resource response or an error object.

results
object[]

Successful resource response (shape varies by resource)