---
title: "Get or create the workspace's Agent findings inbox."
method: POST
path: "/projects/agent-inbox"
tags: ["projects"]
---

# Get or create the workspace's Agent findings inbox.

`POST /projects/agent-inbox`

## Request

- Base URL: `https://restivity.ai/api/v1`
- URL: `https://restivity.ai/api/v1/projects/agent-inbox`
- Auth: OAuth 2 (authorization code, authorization URL `https://restivity.ai/oauth/authorize`, token URL `https://restivity.ai/api/oauth/token`, scopes: `projects:write`)

The project where AI agents file the bugs / gaps they meet while working a task (restivity-focus-flow skill). Created on first use with a server-chosen reserved key (`AGF`, or `AGF2`… when a legacy project holds it); idempotent and race-safe. `workspace_id` omitted → the caller's personal workspace; given → the caller must be a member (403 otherwise).

## Request body

- AgentInboxInput
  - `workspace_id` string, uuid, nullable: Workspace whose inbox to return (the caller must be a member). Omit for the caller's personal workspace.

## Response `200`

The inbox already existed (or a legacy "Agent findings" project was adopted).

- AgentInboxResult
  - `project` Project, required
    - `id` string, uuid, required
    - `user_id` string, uuid, required
    - `name` string, required
    - `description` string, required
    - `color` string, required
    - `is_archived` boolean, required
    - `team_id` string, uuid, nullable, required
    - `prefix` string, nullable, required
    - `task_counter` integer, required
    - `created_at` string, required
    - `updated_at` string, required
    - `deleted_at` string, nullable, required
    - `url` string
    - `scope` string
    - `firestore_id` string, nullable
    - `team_name` string, nullable
    - `team_slug` string, nullable
    - `task_count` integer
    - `completed_task_count` integer
    - `overdue_task_count` integer
    - `next_due_date` string, nullable
    - `is_agent_inbox` boolean
    - `workspace_id` string, uuid, nullable
    - `workspace_short_id` string, nullable
    - `workspace_slug` string, nullable
    - `team_short_id` string, nullable
  - `created` boolean, required: true when this call created the inbox; false when it already existed (or a legacy "Agent findings" project was adopted).

## Other responses

- `201`: The inbox was created by this call.
- `400`: Invalid request shape.
- `401`: Missing or invalid access token.
- `403`: Token lacks the required scope.
- `404`: No such workspace among the caller's memberships.
- `422`: Request body failed schema validation.
- `429`: Rate-limit exceeded for this tier.

---

[API](https://skmtc.dev/restivity/apis/restivity-rest-api.md) · [All operations](https://skmtc.dev/restivity/apis/restivity-rest-api/llms.txt) · [OpenAPI document](https://skmtc.dev/restivity/apis/restivity-rest-api/revisions/5764e41ebb3a?raw)
