---
title: "Trigger logs, newest first"
method: GET
path: "/logs"
tags: ["Logs"]
---

# Trigger logs, newest first

`GET /logs`

## Request

- Base URL: `https://social-automation.cresclab.com/api/v1`
- URL: `https://social-automation.cresclab.com/api/v1/logs`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/cresclab/apis/social-automation-api/docs/logs/get.ts> (a function with typed inputs; its response is checked against the schema)

## Query parameters

- `activity_id` string
- `account_id` string
- `status` 'success' | 'failed'
- `days` integer
- `limit` integer
- `page` integer

## Response `200`

OK

- object
  - `logs` TriggerLog[]
    - `id` string
    - `activity_id` string, nullable
    - `activity_name` string, nullable
    - `account_id` string
    - `trigger` string
    - `username` string, nullable
    - `comment_text` string, nullable
    - `post_id` string, nullable
    - `action` string
    - `status` 'success' | 'failed'
    - `error` string, nullable
    - `created_at` string
  - `total` integer
  - `page` integer
  - `limit` integer

## Other responses

- `400`: Invalid request (see error.field)
- `401`: Missing or invalid API key
- `403`: Insufficient scope, trial expired, contract expired or plan limit (see error.code and error.action_url)
- `429`: Rate limited

---

[API](https://skmtc.dev/cresclab/apis/social-automation-api.md) - [All operations](https://skmtc.dev/cresclab/apis/social-automation-api/llms.txt) - [OpenAPI document](https://skmtc.dev/cresclab/apis/social-automation-api/revisions/1d4ea62ba46d?raw)
