---
title: "Create Action"
method: POST
path: "/api/fiverr/accounts/{account_id}/actions"
tags: ["fiverr"]
---

# Create Action

`POST /api/fiverr/accounts/{account_id}/actions`

## Request

- Base URL: `https://api.tintin-x.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.tintin-x.com/api/fiverr/accounts/{account_id}/actions`
- Auth: HTTP bearer

Submit a drafted action for owner approval.

Owner-only — agent-side loops authenticate as the agent's owner, which
matches the FiverrAccount's owner_user_id. The ``payload`` shape varies
by action type and is opaque here; the agent pre-validates against ToS
rules before calling this route. Created in ``state='pending'``.

## Path parameters

- `account_id` string, uuid, required

## Request body

- FiverrActionPendingCreate: Bot drafts an action; owner approves it before it touches the dashboard. ``payload`` shape varies by action type — kept JSON to avoid a Union explosion. Validation that the payload matches the type lives in the bot, not the API. (W2 work; the schema is forward-compatible.)
  - `type` 'send_message' | 'accept_order' | 'deliver' | 'request_revision' | 'update_gig', required
  - `order_id` string, uuid, nullable
  - `payload` object

## Response `201`

Successful Response

- FiverrActionPendingResponse
  - `id` string, uuid, required
  - `account_id` string, uuid, required
  - `order_id` string, uuid, nullable
  - `type` 'send_message' | 'accept_order' | 'deliver' | 'request_revision' | 'update_gig', required
  - `payload` object, required
  - `drafted_by_agent_at` string, date-time, required
  - `approved_by_owner_at` string, date-time, nullable
  - `applied_at` string, date-time, nullable
  - `state` 'pending' | 'approved' | 'rejected' | 'applied' | 'failed', required
  - `reject_reason` string, nullable

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/tintin-x/apis/tintin-api.md) · [All operations](https://skmtc.dev/tintin-x/apis/tintin-api/llms.txt) · [OpenAPI document](https://skmtc.dev/tintin-x/apis/tintin-api/revisions/8839a8d0a66c?raw)
