Skip to Content
aiMermaid
APIReference

Read a project as an AI brief

Also available in Swagger.

GET
/v1/projects/{id}/brief

One level as ordered text: the goal, the steps in flow order with their ids, branches, notes and attachments, and how to open the levels below. Ids in the brief are the ids operations accept. Long notes are cut; read the rest with note and offset. Credits: 1.

Authorization

bearer
headerAuthorizationBearer <token>

An API key: amk_live__. A key can have an expiry date chosen when it is created (1 hour to 90 days, or none). After that moment the API answers 401 unauthorized, as for a revoked key. Create a new key or rotate the expired one (rotation keeps the same lifetime). A key can also be limited to one folder (with its subfolders) or one project: anything else answers 404 not_found, and a project key cannot create projects or use folders (403 insufficient_scope). A folder key creates projects and folders inside its folder. If that folder or project is deleted for good, the key answers 403 target_gone.

Path Parameters

id*string
Formatuuid

Query Parameters

level?string

Level to read, e.g. n3 or n3/n7. Default: the main level.

format?string
Default"md"
Value in"md""json"
note?string

Id of a cut note to read further.

offset?integer

Character offset for note.

Response Body

OK

Example Request
curl -X GET 'https://pltlaavsvbpebaopfbsp.supabase.co/functions/v1/api/v1/projects/497f6eca-6276-4993-bfeb-53cbbbba6f08/brief'
Example Response
Empty