{"openapi":"3.1.0","info":{"title":"FloConnector API","version":"0.51.1","description":"The control plane behind the FloConnector dashboard, as an API. Authenticate with a workspace API key (Settings → API and MCP) as `Authorization: Bearer flc_live_…`. Every list that pages does so by cursor (`?cursor=` and `next_cursor`). Errors share one shape: `{ error: { code, message, field? } }`.","x-rate-limits":{"read_per_minute":120,"write_per_minute":60}},"servers":[{"url":"https://api.floconnector.com"}],"tags":[{"name":"me","x-displayName":"Identity","description":"Check a key: the workspace it acts for and the scopes it holds."},{"name":"connectors","x-displayName":"Connectors","description":"The catalog: every vendor FloConnector can connect, and each connector's tools."},{"name":"connections","x-displayName":"Connections","description":"A workspace's live links to vendor accounts. Start one, rename it, choose the tools it makes available, or disconnect it."},{"name":"profiles","x-displayName":"Profiles","description":"Named sets of connections and tools, each with its own MCP endpoint to paste into an AI client."},{"name":"links","x-displayName":"Connect links","description":"URLs you send to a person so they can connect their own vendor accounts into the workspace. Pro and Scale."},{"name":"tables","x-displayName":"Tables","description":"Structured records a workspace keeps between chats: tables, their fields and the records in them."},{"name":"skills","x-displayName":"Skills","description":"Instructions your AI clients load on demand: skills, the collections that group them and the curated library."},{"name":"media","x-displayName":"Media","description":"Files moved between tools and kept: list, upload, organise, link and download."},{"name":"activity","x-displayName":"Activity","description":"The log of tool calls AI clients made through the workspace, as metadata only, and usage summaries over it."},{"name":"members","x-displayName":"Members","description":"The people on the account and the invites waiting to be accepted."},{"name":"billing","x-displayName":"Billing","description":"The plan, the credit balance and ledger, and invoices. Read only."}],"paths":{"/v1/me":{"get":{"operationId":"me.get","summary":"Who am I","description":"A key sees its own name, workspace and scopes. Useful as the first call of an integration, and as a liveness check that costs nothing.","tags":["me"],"x-scope":"any","x-limit":"read","security":[{"bearerAuth":[]}],"parameters":[],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"principal":{"type":"string","enum":["key","session"],"description":"How the request was authenticated: `key` for an API key, `session` for a dashboard sign-in."},"workspace":{"type":"object","properties":{"id":{"type":"string","description":"The workspace's id."},"slug":{"type":"string","description":"The workspace's slug, as it appears in dashboard URLs."}},"required":["id","slug"],"additionalProperties":false,"description":"The workspace the caller acts in. A key belongs to exactly one."},"key":{"type":"object","properties":{"id":{"type":"string","description":"The key's id."},"name":{"type":"string","description":"The name the key was given when it was created."},"prefix":{"type":"string","description":"The first characters of the key's secret, for telling keys apart. Not enough to use the key."},"scopes":{"type":"array","items":{"type":"string"},"description":"The scopes as granted."},"expanded_scopes":{"type":"array","items":{"type":"string"},"description":"The granted scopes plus every scope they imply, sorted: what the key can actually reach."},"expires_at":{"type":"string","nullable":true,"description":"When the key stops working, ISO 8601 timestamp. Null for a key that does not expire."}},"required":["id","name","prefix","scopes","expanded_scopes","expires_at"],"additionalProperties":false,"nullable":true,"description":"The calling key. Null when the caller is a session."},"user":{"type":"object","properties":{"id":{"type":"string","description":"The person's user id."},"email":{"type":"string","description":"Their sign-in email."},"name":{"type":"string","nullable":true,"description":"Their display name. Null until they set one."},"permissions":{"type":"array","items":{"type":"string"},"description":"The permission keys the person holds in this workspace, sorted."}},"required":["id","email","name","permissions"],"additionalProperties":false,"nullable":true,"description":"The signed-in person. Null when the caller is a key."}},"required":["principal","workspace","key","user"],"additionalProperties":false}}}},"400":{"description":"validation: a field failed validation; `field` names it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"unauthorized: no key, or an unknown, revoked or expired key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"insufficient_scope: the key lacks the route's scope, named in `required`. Or forbidden, or plan_limit when the plan does not include the API.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"not_found: the thing is not in this workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"rate_limited: the key's per-minute budget is spent. Retry after `Retry-After` seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/tables":{"get":{"operationId":"tables.list","summary":"List tables","description":"Every table in the workspace with its fields and record count, plus the workspace's usage against its plan.","tags":["tables"],"x-scope":"tables.read","x-limit":"read","security":[{"bearerAuth":["tables.read"]}],"parameters":[{"name":"include_archived","in":"query","required":false,"schema":{"type":"string","enum":["1","true","0","false"],"description":"Include archived tables. Default false."},"description":"Include archived tables. Default false."}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"tables":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"The table's id."},"slug":{"type":"string","description":"The table's short name in lower snake case, e.g. leads. Derived from the name when the table is created; it never changes."},"name":{"type":"string","description":"What people call the table."},"description":{"type":"string","nullable":true,"description":"One line on what the table is for. Null when none was given."},"status":{"type":"string","enum":["active","archived"],"description":"An archived table can be read but not written until it is restored."},"fields":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","description":"The field's name, as records carry it."},"label":{"type":"string","description":"The name as people read it: company_name becomes \"Company name\"."},"type":{"type":"string","enum":["text","long_text","number","checkbox","date","datetime","single_select","multi_select","email","url","phone"],"description":"The field's type. text holds up to 2,000 characters and long_text up to 50,000; date is a calendar day (YYYY-MM-DD) and datetime a moment in ISO 8601 with a timezone; single_select and multi_select take one or several of the field's options."},"required":{"type":"boolean","description":"Whether every record must have a value."},"key":{"type":"boolean","description":"true on the table's unique key field. Left out on every other field."},"description":{"type":"string","description":"What the field holds. Left out when none was given."},"options":{"type":"array","items":{"type":"string"},"description":"The allowed values. Present on single_select and multi_select fields only."}},"required":["name","label","type","required"],"additionalProperties":false},"description":"The table's fields, in the order they are shown."},"key_field":{"type":"string","nullable":true,"description":"The name of the unique key field. Null when the table has no key."},"record_count":{"type":"integer","description":"How many records the table holds."},"archived_at":{"type":"string","nullable":true,"description":"When the table was archived, ISO 8601. Null while it is active."},"created_at":{"type":"string","description":"When the table was created, ISO 8601."},"updated_at":{"type":"string","description":"When the table last changed, ISO 8601."}},"required":["id","slug","name","description","status","fields","key_field","record_count","archived_at","created_at","updated_at"],"additionalProperties":false,"description":"A table: its fields, its unique key and how many records it holds."},"description":"The workspace's tables, sorted by name."},"usage":{"type":"object","properties":{"plan_id":{"type":"string","description":"The id of the workspace's plan."},"plan":{"type":"string","description":"The plan's name."},"tables":{"type":"integer","description":"Tables in the workspace, archived ones included."},"max_tables":{"type":"integer","nullable":true,"description":"Tables the plan includes. Null means unlimited."},"records":{"type":"integer","description":"Records in the workspace, across all its tables."},"max_records":{"type":"integer","nullable":true,"description":"Records the plan includes. Null means unlimited."},"read_only":{"type":"boolean","description":"true when the workspace is over a cap, for example after a downgrade: nothing can be added or changed until it is back under. Nothing is deleted for it."},"upgrade":{"type":"object","properties":{"id":{"type":"string","description":"The plan's id."},"name":{"type":"string","description":"The plan's name."},"max_tables":{"type":"integer","nullable":true,"description":"Tables the plan includes per workspace. Null means unlimited."},"max_records":{"type":"integer","nullable":true,"description":"Records the plan includes per workspace, across all its tables. Null means unlimited."}},"required":["id","name","max_tables","max_records"],"additionalProperties":false,"nullable":true,"description":"The next plan with more room. Null when there is none."}},"required":["plan_id","plan","tables","max_tables","records","max_records","read_only","upgrade"],"additionalProperties":false,"description":"The workspace's tables and records against its plan's caps."}},"required":["tables","usage"],"additionalProperties":false}}}},"400":{"description":"validation: a field failed validation; `field` names it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"unauthorized: no key, or an unknown, revoked or expired key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"insufficient_scope: the key lacks the route's scope, named in `required`. Or forbidden, or plan_limit when the plan does not include the API.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"not_found: the thing is not in this workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"rate_limited: the key's per-minute budget is spent. Retry after `Retry-After` seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"post":{"operationId":"tables.create","summary":"Create a table","description":"A table may start with no fields and grow them later. Name a `key` field when records have a natural identifier, so upserts update instead of duplicating.","tags":["tables"],"x-scope":"tables.manage","x-limit":"write","security":[{"bearerAuth":["tables.manage"]}],"parameters":[],"responses":{"201":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"table":{"type":"object","properties":{"id":{"type":"string","description":"The table's id."},"slug":{"type":"string","description":"The table's short name in lower snake case, e.g. leads. Derived from the name when the table is created; it never changes."},"name":{"type":"string","description":"What people call the table."},"description":{"type":"string","nullable":true,"description":"One line on what the table is for. Null when none was given."},"status":{"type":"string","enum":["active","archived"],"description":"An archived table can be read but not written until it is restored."},"fields":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","description":"The field's name, as records carry it."},"label":{"type":"string","description":"The name as people read it: company_name becomes \"Company name\"."},"type":{"type":"string","enum":["text","long_text","number","checkbox","date","datetime","single_select","multi_select","email","url","phone"],"description":"The field's type. text holds up to 2,000 characters and long_text up to 50,000; date is a calendar day (YYYY-MM-DD) and datetime a moment in ISO 8601 with a timezone; single_select and multi_select take one or several of the field's options."},"required":{"type":"boolean","description":"Whether every record must have a value."},"key":{"type":"boolean","description":"true on the table's unique key field. Left out on every other field."},"description":{"type":"string","description":"What the field holds. Left out when none was given."},"options":{"type":"array","items":{"type":"string"},"description":"The allowed values. Present on single_select and multi_select fields only."}},"required":["name","label","type","required"],"additionalProperties":false},"description":"The table's fields, in the order they are shown."},"key_field":{"type":"string","nullable":true,"description":"The name of the unique key field. Null when the table has no key."},"record_count":{"type":"integer","description":"How many records the table holds."},"archived_at":{"type":"string","nullable":true,"description":"When the table was archived, ISO 8601. Null while it is active."},"created_at":{"type":"string","description":"When the table was created, ISO 8601."},"updated_at":{"type":"string","description":"When the table last changed, ISO 8601."}},"required":["id","slug","name","description","status","fields","key_field","record_count","archived_at","created_at","updated_at"],"additionalProperties":false,"description":"A table: its fields, its unique key and how many records it holds."}},"required":["table"],"additionalProperties":false}}}},"400":{"description":"validation: a field failed validation; `field` names it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"unauthorized: no key, or an unknown, revoked or expired key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"insufficient_scope: the key lacks the route's scope, named in `required`. Or forbidden, or plan_limit when the plan does not include the API.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"not_found: the thing is not in this workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"rate_limited: the key's per-minute budget is spent. Retry after `Retry-After` seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":80,"description":"What people call it, e.g. Leads. Its slug (leads) is derived from it and never changes."},"description":{"type":"string","maxLength":500,"description":"One line on what the table is for."},"fields":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","minLength":1,"description":"Lower snake case, e.g. company_name. Shown to people as \"Company name\"."},"type":{"type":"string","enum":["text","long_text","number","checkbox","date","datetime","single_select","multi_select","email","url","phone"],"description":"The field's type. text holds up to 2,000 characters and long_text up to 50,000; date is a calendar day (YYYY-MM-DD) and datetime a moment in ISO 8601 with a timezone; single_select and multi_select take one or several of the field's options."},"required":{"type":"boolean","description":"Every record must have a value. Default false."},"description":{"type":"string","maxLength":500,"description":"What the field holds, for whoever writes to it next."},"options":{"type":"array","items":{"type":"string"},"description":"The allowed values. Required for single_select and multi_select."}},"required":["name","type"],"additionalProperties":false},"maxItems":100,"default":[],"description":"The columns. A table may start empty and grow fields later."},"key":{"type":"string","description":"The field that uniquely identifies a record (text, email, url, phone, number or date). Omit for no key."}},"required":["name"],"additionalProperties":false},"example":{"name":"Leads","description":"Inbound leads from the website form.","fields":[{"name":"email","type":"email","required":true},{"name":"company","type":"text"},{"name":"stage","type":"single_select","options":["new","contacted","won","lost"]}],"key":"email"}}}}}},"/v1/tables/{id}":{"get":{"operationId":"tables.get","summary":"Get a table","description":"`{id}` takes the table's slug, its name or its id, and an archived table is returned too. The reply carries the table's fields and record count, plus the workspace's usage against its plan caps. An unknown table answers `not_found` with the tables that do exist in `details.tables`.","tags":["tables"],"x-scope":"tables.read","x-limit":"read","security":[{"bearerAuth":["tables.read"]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1,"description":"The table: its slug (e.g. leads), its name, or its id."},"description":"The table: its slug (e.g. leads), its name, or its id."}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"table":{"type":"object","properties":{"id":{"type":"string","description":"The table's id."},"slug":{"type":"string","description":"The table's short name in lower snake case, e.g. leads. Derived from the name when the table is created; it never changes."},"name":{"type":"string","description":"What people call the table."},"description":{"type":"string","nullable":true,"description":"One line on what the table is for. Null when none was given."},"status":{"type":"string","enum":["active","archived"],"description":"An archived table can be read but not written until it is restored."},"fields":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","description":"The field's name, as records carry it."},"label":{"type":"string","description":"The name as people read it: company_name becomes \"Company name\"."},"type":{"type":"string","enum":["text","long_text","number","checkbox","date","datetime","single_select","multi_select","email","url","phone"],"description":"The field's type. text holds up to 2,000 characters and long_text up to 50,000; date is a calendar day (YYYY-MM-DD) and datetime a moment in ISO 8601 with a timezone; single_select and multi_select take one or several of the field's options."},"required":{"type":"boolean","description":"Whether every record must have a value."},"key":{"type":"boolean","description":"true on the table's unique key field. Left out on every other field."},"description":{"type":"string","description":"What the field holds. Left out when none was given."},"options":{"type":"array","items":{"type":"string"},"description":"The allowed values. Present on single_select and multi_select fields only."}},"required":["name","label","type","required"],"additionalProperties":false},"description":"The table's fields, in the order they are shown."},"key_field":{"type":"string","nullable":true,"description":"The name of the unique key field. Null when the table has no key."},"record_count":{"type":"integer","description":"How many records the table holds."},"archived_at":{"type":"string","nullable":true,"description":"When the table was archived, ISO 8601. Null while it is active."},"created_at":{"type":"string","description":"When the table was created, ISO 8601."},"updated_at":{"type":"string","description":"When the table last changed, ISO 8601."}},"required":["id","slug","name","description","status","fields","key_field","record_count","archived_at","created_at","updated_at"],"additionalProperties":false,"description":"A table: its fields, its unique key and how many records it holds."},"usage":{"type":"object","properties":{"plan_id":{"type":"string","description":"The id of the workspace's plan."},"plan":{"type":"string","description":"The plan's name."},"tables":{"type":"integer","description":"Tables in the workspace, archived ones included."},"max_tables":{"type":"integer","nullable":true,"description":"Tables the plan includes. Null means unlimited."},"records":{"type":"integer","description":"Records in the workspace, across all its tables."},"max_records":{"type":"integer","nullable":true,"description":"Records the plan includes. Null means unlimited."},"read_only":{"type":"boolean","description":"true when the workspace is over a cap, for example after a downgrade: nothing can be added or changed until it is back under. Nothing is deleted for it."},"upgrade":{"type":"object","properties":{"id":{"type":"string","description":"The plan's id."},"name":{"type":"string","description":"The plan's name."},"max_tables":{"type":"integer","nullable":true,"description":"Tables the plan includes per workspace. Null means unlimited."},"max_records":{"type":"integer","nullable":true,"description":"Records the plan includes per workspace, across all its tables. Null means unlimited."}},"required":["id","name","max_tables","max_records"],"additionalProperties":false,"nullable":true,"description":"The next plan with more room. Null when there is none."}},"required":["plan_id","plan","tables","max_tables","records","max_records","read_only","upgrade"],"additionalProperties":false,"description":"The workspace's tables and records against its plan's caps."}},"required":["table","usage"],"additionalProperties":false}}}},"400":{"description":"validation: a field failed validation; `field` names it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"unauthorized: no key, or an unknown, revoked or expired key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"insufficient_scope: the key lacks the route's scope, named in `required`. Or forbidden, or plan_limit when the plan does not include the API.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"not_found: the thing is not in this workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"rate_limited: the key's per-minute budget is spent. Retry after `Retry-After` seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"patch":{"operationId":"tables.update","summary":"Update a table's schema","description":"Rename it, add fields, change a field (rename, type, required, options), remove fields, reorder them, or set or drop the unique key. Existing records are never rewritten to fit a new type; `misfits` says how many no longer fit.","tags":["tables"],"x-scope":"tables.manage","x-limit":"write","security":[{"bearerAuth":["tables.manage"]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1,"description":"The table: its slug (e.g. leads), its name, or its id."},"description":"The table: its slug (e.g. leads), its name, or its id."}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"table":{"type":"object","properties":{"id":{"type":"string","description":"The table's id."},"slug":{"type":"string","description":"The table's short name in lower snake case, e.g. leads. Derived from the name when the table is created; it never changes."},"name":{"type":"string","description":"What people call the table."},"description":{"type":"string","nullable":true,"description":"One line on what the table is for. Null when none was given."},"status":{"type":"string","enum":["active","archived"],"description":"An archived table can be read but not written until it is restored."},"fields":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","description":"The field's name, as records carry it."},"label":{"type":"string","description":"The name as people read it: company_name becomes \"Company name\"."},"type":{"type":"string","enum":["text","long_text","number","checkbox","date","datetime","single_select","multi_select","email","url","phone"],"description":"The field's type. text holds up to 2,000 characters and long_text up to 50,000; date is a calendar day (YYYY-MM-DD) and datetime a moment in ISO 8601 with a timezone; single_select and multi_select take one or several of the field's options."},"required":{"type":"boolean","description":"Whether every record must have a value."},"key":{"type":"boolean","description":"true on the table's unique key field. Left out on every other field."},"description":{"type":"string","description":"What the field holds. Left out when none was given."},"options":{"type":"array","items":{"type":"string"},"description":"The allowed values. Present on single_select and multi_select fields only."}},"required":["name","label","type","required"],"additionalProperties":false},"description":"The table's fields, in the order they are shown."},"key_field":{"type":"string","nullable":true,"description":"The name of the unique key field. Null when the table has no key."},"record_count":{"type":"integer","description":"How many records the table holds."},"archived_at":{"type":"string","nullable":true,"description":"When the table was archived, ISO 8601. Null while it is active."},"created_at":{"type":"string","description":"When the table was created, ISO 8601."},"updated_at":{"type":"string","description":"When the table last changed, ISO 8601."}},"required":["id","slug","name","description","status","fields","key_field","record_count","archived_at","created_at","updated_at"],"additionalProperties":false,"description":"A table: its fields, its unique key and how many records it holds."},"renamed":{"type":"array","items":{"type":"object","properties":{"from":{"type":"string","description":"The old name."},"to":{"type":"string","description":"The new name."}},"required":["from","to"],"additionalProperties":false},"description":"The fields this call renamed."},"removed":{"type":"array","items":{"type":"string"},"description":"Names of the fields this call removed."},"added":{"type":"array","items":{"type":"string"},"description":"Names of the fields this call added."},"misfits":{"type":"array","items":{"type":"object","properties":{"field":{"type":"string","description":"The changed field's name."},"records":{"type":"integer","description":"How many existing records are affected."},"reason":{"type":"string","description":"What is wrong with them, phrased to follow the count, e.g. \"hold values that are not a valid number\"."}},"required":["field","records","reason"],"additionalProperties":false},"description":"Existing records whose values no longer fit a changed field. They stay as they are until edited."}},"required":["table","renamed","removed","added","misfits"],"additionalProperties":false}}}},"400":{"description":"validation: a field failed validation; `field` names it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"unauthorized: no key, or an unknown, revoked or expired key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"insufficient_scope: the key lacks the route's scope, named in `required`. Or forbidden, or plan_limit when the plan does not include the API.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"not_found: the thing is not in this workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"rate_limited: the key's per-minute budget is spent. Retry after `Retry-After` seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":80,"description":"New display name. The slug stays the same."},"description":{"type":"string","maxLength":500,"nullable":true,"description":"null clears it."},"add_fields":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","minLength":1,"description":"Lower snake case, e.g. company_name. Shown to people as \"Company name\"."},"type":{"type":"string","enum":["text","long_text","number","checkbox","date","datetime","single_select","multi_select","email","url","phone"],"description":"The field's type. text holds up to 2,000 characters and long_text up to 50,000; date is a calendar day (YYYY-MM-DD) and datetime a moment in ISO 8601 with a timezone; single_select and multi_select take one or several of the field's options."},"required":{"type":"boolean","description":"Every record must have a value. Default false."},"description":{"type":"string","maxLength":500,"description":"What the field holds, for whoever writes to it next."},"options":{"type":"array","items":{"type":"string"},"description":"The allowed values. Required for single_select and multi_select."}},"required":["name","type"],"additionalProperties":false},"description":"Fields to add, after the existing ones."},"update_fields":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","minLength":1,"description":"The field's current name."},"new_name":{"type":"string","description":"A new name for the field, in lower snake case. Its values move with it."},"type":{"type":"string","enum":["text","long_text","number","checkbox","date","datetime","single_select","multi_select","email","url","phone"],"description":"A new type. Existing values are never rewritten to fit; the reply's misfits counts the records that no longer do."},"required":{"type":"boolean","description":"true makes the field required, false optional. When it turns on, records with no value are counted in the reply's misfits."},"description":{"type":"string","maxLength":500,"nullable":true,"description":"What the field holds. null clears it."},"options":{"type":"array","items":{"type":"string"},"description":"The full new option list (replaces the old one)."}},"required":["name"],"additionalProperties":false},"description":"Changes to existing fields, each naming its field by the name it has before this call. A field may be changed once per call."},"remove_fields":{"type":"array","items":{"type":"string"},"description":"Field names to remove. Their values are deleted from every record."},"confirm_remove":{"type":"boolean","description":"Must be true when remove_fields is set, after the user has agreed."},"order":{"type":"array","items":{"type":"string"},"description":"Field names in the order to show them."},"key":{"type":"string","nullable":true,"description":"The unique key field, or null for no key. Fails if existing records share a value."}},"additionalProperties":false},"example":{"add_fields":[{"name":"phone","type":"phone"}],"update_fields":[{"name":"company","new_name":"company_name"}]}}}}},"delete":{"operationId":"tables.delete","summary":"Delete a table permanently","description":"The table and every record go. Archive instead when the data might be wanted again.","tags":["tables"],"x-scope":"tables.delete","x-dangerous":true,"x-limit":"write","security":[{"bearerAuth":["tables.delete"]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1,"description":"The table: its slug (e.g. leads), its name, or its id."},"description":"The table: its slug (e.g. leads), its name, or its id."}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true],"description":"Always true."}},"required":["ok"],"additionalProperties":false}}}},"400":{"description":"validation: a field failed validation; `field` names it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"unauthorized: no key, or an unknown, revoked or expired key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"insufficient_scope: the key lacks the route's scope, named in `required`. Or forbidden, or plan_limit when the plan does not include the API.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"not_found: the thing is not in this workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"rate_limited: the key's per-minute budget is spent. Retry after `Retry-After` seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/tables/{id}/archive":{"post":{"operationId":"tables.archive","summary":"Archive or restore a table","description":"An archived table keeps its records and can still be read, but adding or changing records and changing fields are refused with `read_only` until it is restored with `restore: true`. Deleting records still works. An archived table still counts toward the plan's table limit.","tags":["tables"],"x-scope":"tables.manage","x-limit":"write","security":[{"bearerAuth":["tables.manage"]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1,"description":"The table: its slug (e.g. leads), its name, or its id."},"description":"The table: its slug (e.g. leads), its name, or its id."}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"table":{"type":"object","properties":{"id":{"type":"string","description":"The table's id."},"slug":{"type":"string","description":"The table's short name in lower snake case, e.g. leads. Derived from the name when the table is created; it never changes."},"name":{"type":"string","description":"What people call the table."},"description":{"type":"string","nullable":true,"description":"One line on what the table is for. Null when none was given."},"status":{"type":"string","enum":["active","archived"],"description":"An archived table can be read but not written until it is restored."},"fields":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","description":"The field's name, as records carry it."},"label":{"type":"string","description":"The name as people read it: company_name becomes \"Company name\"."},"type":{"type":"string","enum":["text","long_text","number","checkbox","date","datetime","single_select","multi_select","email","url","phone"],"description":"The field's type. text holds up to 2,000 characters and long_text up to 50,000; date is a calendar day (YYYY-MM-DD) and datetime a moment in ISO 8601 with a timezone; single_select and multi_select take one or several of the field's options."},"required":{"type":"boolean","description":"Whether every record must have a value."},"key":{"type":"boolean","description":"true on the table's unique key field. Left out on every other field."},"description":{"type":"string","description":"What the field holds. Left out when none was given."},"options":{"type":"array","items":{"type":"string"},"description":"The allowed values. Present on single_select and multi_select fields only."}},"required":["name","label","type","required"],"additionalProperties":false},"description":"The table's fields, in the order they are shown."},"key_field":{"type":"string","nullable":true,"description":"The name of the unique key field. Null when the table has no key."},"record_count":{"type":"integer","description":"How many records the table holds."},"archived_at":{"type":"string","nullable":true,"description":"When the table was archived, ISO 8601. Null while it is active."},"created_at":{"type":"string","description":"When the table was created, ISO 8601."},"updated_at":{"type":"string","description":"When the table last changed, ISO 8601."}},"required":["id","slug","name","description","status","fields","key_field","record_count","archived_at","created_at","updated_at"],"additionalProperties":false,"description":"A table: its fields, its unique key and how many records it holds."}},"required":["table"],"additionalProperties":false}}}},"400":{"description":"validation: a field failed validation; `field` names it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"unauthorized: no key, or an unknown, revoked or expired key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"insufficient_scope: the key lacks the route's scope, named in `required`. Or forbidden, or plan_limit when the plan does not include the API.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"not_found: the thing is not in this workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"rate_limited: the key's per-minute budget is spent. Retry after `Retry-After` seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"restore":{"type":"boolean","description":"true restores an archived table; omitted or false archives it."}},"additionalProperties":false},"example":{"restore":false}}}}}},"/v1/tables/{id}/records/query":{"post":{"operationId":"tables.records.query","summary":"Query records","description":"Filter, sort, search or count records. Text matching is case-insensitive. Pass `cursor` from the previous page's `next_cursor` to continue; `count_only` returns just the total.","tags":["tables"],"x-scope":"tables.read","x-limit":"read","security":[{"bearerAuth":["tables.read"]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1,"description":"The table: its slug (e.g. leads), its name, or its id."},"description":"The table: its slug (e.g. leads), its name, or its id."}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"records":{"type":"array","items":{"type":"object","properties":{"id":{"type":"integer","description":"The record id: its number in the table (1, 2, 3…). A number is never reused."},"created_at":{"type":"string","description":"When the record was created, ISO 8601. Left out when a query's fields list does not name it."},"updated_at":{"type":"string","description":"When the record last changed, ISO 8601. Left out when a query's fields list does not name it."},"version":{"type":"integer","description":"Goes up by one each time the record changes. Send it back as expected_version to guard an update."}},"required":["id","created_at","updated_at","version"],"additionalProperties":true,"description":"A record: these system fields plus one key per table field, null where the record has no value."},"description":"One page of the matching records."},"total":{"type":"integer","description":"Matching records across every page."},"next_cursor":{"type":"string","nullable":true,"description":"Pass it as cursor to get the next page. Null on the last page."}},"required":["records","total","next_cursor"],"additionalProperties":false},{"type":"object","properties":{"total":{"type":"integer","description":"How many records match."}},"required":["total"],"additionalProperties":false}]}}}},"400":{"description":"validation: a field failed validation; `field` names it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"unauthorized: no key, or an unknown, revoked or expired key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"insufficient_scope: the key lacks the route's scope, named in `required`. Or forbidden, or plan_limit when the plan does not include the API.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"not_found: the thing is not in this workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"rate_limited: the key's per-minute budget is spent. Retry after `Retry-After` seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"where":{"type":"array","items":{"type":"object","properties":{"field":{"type":"string","minLength":1,"description":"A field name, or id (the record number) / created_at / updated_at."},"op":{"type":"string","enum":["eq","neq","gt","gte","lt","lte","contains","not_contains","starts_with","in","not_in","is_empty","is_not_empty"],"description":"The comparison. Text matches ignore case. contains, not_contains and starts_with match part of a text value; in and not_in take a list; on a multi_select field, contains means the record has every value given and in means it has any of them."},"value":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"}]}}],"nullable":true,"description":"Not needed for is_empty / is_not_empty. A list for in / not_in."}},"required":["field","op"],"additionalProperties":false},"maxItems":20,"description":"Filters, up to 20. Omit to match every record."},"match":{"type":"string","enum":["all","any"],"description":"all = every filter must match (default); any = at least one."},"sort":{"type":"array","items":{"type":"object","properties":{"field":{"type":"string","minLength":1,"description":"A field name, or id (the record number) / created_at / updated_at."},"direction":{"type":"string","enum":["asc","desc"],"description":"asc (the default) or desc. Records with no value for the field sort last either way."}},"required":["field"],"additionalProperties":false},"maxItems":5,"description":"Up to 5 sort keys, applied in order. Default: by record id, ascending."},"fields":{"type":"array","items":{"type":"string"},"description":"Return only these fields, plus id and version. Name created_at or updated_at to keep them."},"limit":{"type":"integer","minimum":1,"maximum":200,"description":"Records per page, default 50."},"cursor":{"type":"string","description":"The next_cursor from the previous page."},"count_only":{"type":"boolean","description":"Return only how many records match."}},"additionalProperties":false},"example":{"where":[{"field":"stage","op":"eq","value":"new"}],"sort":[{"field":"created_at","direction":"desc"}],"limit":50}}}}}},"/v1/tables/{id}/records":{"post":{"operationId":"tables.records.write","summary":"Add records","description":"All or nothing: one bad record and nothing is written, with every problem listed as \"record N\" (0-based). With `mode: \"upsert\"` a record whose key already exists is updated and keeps the fields you leave out.","tags":["tables"],"x-scope":"tables.write","x-limit":"write","security":[{"bearerAuth":["tables.write"]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1,"description":"The table: its slug (e.g. leads), its name, or its id."},"description":"The table: its slug (e.g. leads), its name, or its id."}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"inserted":{"type":"integer","description":"How many records were added."},"updated":{"type":"integer","description":"How many existing records an upsert matched on the key. Always 0 for an insert."},"records":{"type":"array","items":{"type":"object","properties":{"id":{"type":"integer","description":"The record id: its number in the table (1, 2, 3…). A number is never reused."},"created_at":{"type":"string","description":"When the record was created, ISO 8601. Left out when a query's fields list does not name it."},"updated_at":{"type":"string","description":"When the record last changed, ISO 8601. Left out when a query's fields list does not name it."},"version":{"type":"integer","description":"Goes up by one each time the record changes. Send it back as expected_version to guard an update."}},"required":["id","created_at","updated_at","version"],"additionalProperties":true,"description":"A record: these system fields plus one key per table field, null where the record has no value."},"description":"The records as stored: the added ones first, then the matched ones."}},"required":["inserted","updated","records"],"additionalProperties":false}}}},"400":{"description":"validation: a field failed validation; `field` names it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"unauthorized: no key, or an unknown, revoked or expired key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"insufficient_scope: the key lacks the route's scope, named in `required`. Or forbidden, or plan_limit when the plan does not include the API.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"not_found: the thing is not in this workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"rate_limited: the key's per-minute budget is spent. Retry after `Retry-After` seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"records":{"type":"array","items":{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"}]}}],"nullable":true}},"minItems":1,"maxItems":500,"description":"Records as { field: value } objects, up to 500 per call. Field names come from the table's fields."},"mode":{"type":"string","enum":["insert","upsert"],"description":"insert (default) refuses a duplicate key; upsert merges into the existing record."}},"required":["records"],"additionalProperties":false},"example":{"records":[{"email":"ann@acme.com","company":"Acme","stage":"new"}],"mode":"upsert"}}}}},"patch":{"operationId":"tables.records.update","summary":"Update records","description":"Each update names a record by id and carries only the fields to change; `null` clears a value. All or nothing, up to 500 per call: one refused update and nothing is written, with every problem listed as \"record N\" (0-based) and coded in `details.errors`. Send `expected_version` from a query and the write is refused with `stale_version` if the record changed since.","tags":["tables"],"x-scope":"tables.write","x-limit":"write","security":[{"bearerAuth":["tables.write"]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1,"description":"The table: its slug (e.g. leads), its name, or its id."},"description":"The table: its slug (e.g. leads), its name, or its id."}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"records":{"type":"array","items":{"type":"object","properties":{"id":{"type":"integer","description":"The record id: its number in the table (1, 2, 3…). A number is never reused."},"created_at":{"type":"string","description":"When the record was created, ISO 8601. Left out when a query's fields list does not name it."},"updated_at":{"type":"string","description":"When the record last changed, ISO 8601. Left out when a query's fields list does not name it."},"version":{"type":"integer","description":"Goes up by one each time the record changes. Send it back as expected_version to guard an update."}},"required":["id","created_at","updated_at","version"],"additionalProperties":true,"description":"A record: these system fields plus one key per table field, null where the record has no value."},"description":"The records after the update, in the order the updates were sent."}},"required":["records"],"additionalProperties":false}}}},"400":{"description":"validation: a field failed validation; `field` names it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"unauthorized: no key, or an unknown, revoked or expired key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"insufficient_scope: the key lacks the route's scope, named in `required`. Or forbidden, or plan_limit when the plan does not include the API.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"not_found: the thing is not in this workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"rate_limited: the key's per-minute budget is spent. Retry after `Retry-After` seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"updates":{"type":"array","items":{"type":"object","properties":{"id":{"type":"integer","minimum":1,"description":"The record id: its number in the table (1, 2, 3…)."},"fields":{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"}]}}],"nullable":true},"description":"Only the fields to change. null clears a value."},"expected_version":{"type":"integer","description":"Refuse the write if the record changed since this version."}},"required":["id","fields"],"additionalProperties":false},"minItems":1,"maxItems":500,"description":"The changes, one per record, up to 500 per call. A record may appear once."}},"required":["updates"],"additionalProperties":false},"example":{"updates":[{"id":1,"fields":{"stage":"contacted"},"expected_version":1}]}}}}}},"/v1/tables/{id}/records/delete":{"post":{"operationId":"tables.records.delete","summary":"Delete records","description":"Up to 500 ids per call, and a deleted record cannot be restored. Ids that are already gone come back in `missing`, not as an error. Deleting still works on an archived table and in a workspace over its plan caps, which is how it gets back under them.","tags":["tables"],"x-scope":"tables.write","x-limit":"write","security":[{"bearerAuth":["tables.write"]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1,"description":"The table: its slug (e.g. leads), its name, or its id."},"description":"The table: its slug (e.g. leads), its name, or its id."}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"deleted":{"type":"array","items":{"type":"integer"},"description":"Ids of the records that were deleted, ascending."},"missing":{"type":"array","items":{"type":"integer"},"description":"Ids that were already gone. Reported, not an error."}},"required":["deleted","missing"],"additionalProperties":false}}}},"400":{"description":"validation: a field failed validation; `field` names it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"unauthorized: no key, or an unknown, revoked or expired key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"insufficient_scope: the key lacks the route's scope, named in `required`. Or forbidden, or plan_limit when the plan does not include the API.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"not_found: the thing is not in this workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"rate_limited: the key's per-minute budget is spent. Retry after `Retry-After` seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"ids":{"type":"array","items":{"type":"integer","minimum":1,"description":"The record id: its number in the table (1, 2, 3…)."},"minItems":1,"maxItems":500,"description":"Record ids (their numbers in the table)."}},"required":["ids"],"additionalProperties":false},"example":{"ids":[1,2]}}}}}},"/v1/skills/guide":{"get":{"operationId":"skills.guide","summary":"The skill-writing guide","description":"Returns the guide as markdown with a suggested `filename`: what a skill is, the three fixed folders, the size limits, how to lay out and zip a bundle, and what an import does. The limits are rendered from the live values, so they match what the API enforces.","tags":["skills"],"x-scope":"skills.read","x-limit":"read","security":[{"bearerAuth":["skills.read"]}],"parameters":[],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"filename":{"type":"string","description":"A file name to save the guide under."},"markdown":{"type":"string","description":"The guide's text, in markdown."}},"required":["filename","markdown"],"additionalProperties":false}}}},"400":{"description":"validation: a field failed validation; `field` names it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"unauthorized: no key, or an unknown, revoked or expired key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"insufficient_scope: the key lacks the route's scope, named in `required`. Or forbidden, or plan_limit when the plan does not include the API.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"not_found: the thing is not in this workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"rate_limited: the key's per-minute budget is spent. Retry after `Retry-After` seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/skills/collections":{"get":{"operationId":"skills.collections.list","summary":"List skill collections","description":"A collection is the folder of skills a profile attaches. Each one comes back with its `tool_prefix`, its skill counts by status and the profiles carrying it. Archived collections are left out unless `include_archived` is set.","tags":["skills"],"x-scope":"skills.read","x-limit":"read","security":[{"bearerAuth":["skills.read"]}],"parameters":[{"name":"include_archived","in":"query","required":false,"schema":{"type":"string","enum":["1","true","0","false"],"description":"Include archived collections. Default false."},"description":"Include archived collections. Default false."}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"collections":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"The collection's id."},"slug":{"type":"string","description":"Derived from the name when the collection was created. It never changes."},"name":{"type":"string","description":"The display name."},"description":{"type":"string","nullable":true,"description":"One line on what the collection holds. Null when none was given."},"icon":{"type":"string","nullable":true,"description":"The emoji mark shown in the dashboard. Null for the default mark."},"status":{"type":"string","enum":["active","archived"],"description":"active, or archived: an archived collection serves none of its skills to AI clients."},"tool_prefix":{"type":"string","description":"The start of the tool name of every skill in the collection: skill_<slug>_."},"skill_counts":{"type":"object","properties":{"draft":{"type":"integer","description":"Skills not published yet."},"active":{"type":"integer","description":"Published skills."},"archived":{"type":"integer","description":"Archived skills."}},"required":["draft","active","archived"],"additionalProperties":false,"description":"How many skills the collection holds, by status."},"profiles":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"The profile's id."},"name":{"type":"string","description":"The profile's name."},"auto_receive":{"type":"boolean","description":"True when the profile is set to take up skills published in this collection later, without anyone picking them again."}},"required":["id","name","auto_receive"],"additionalProperties":false},"description":"The profiles carrying this collection. Empty means its skills reach no AI client yet."},"created_at":{"type":"string","description":"When the collection was created, ISO 8601."},"updated_at":{"type":"string","description":"When the collection's own details last changed, ISO 8601."}},"required":["id","slug","name","description","icon","status","tool_prefix","skill_counts","profiles","created_at","updated_at"],"additionalProperties":false},"description":"The workspace's collections, newest first."}},"required":["collections"],"additionalProperties":false}}}},"400":{"description":"validation: a field failed validation; `field` names it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"unauthorized: no key, or an unknown, revoked or expired key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"insufficient_scope: the key lacks the route's scope, named in `required`. Or forbidden, or plan_limit when the plan does not include the API.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"not_found: the thing is not in this workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"rate_limited: the key's per-minute budget is spent. Retry after `Retry-After` seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"post":{"operationId":"skills.collections.create","summary":"Create a skill collection","description":"The slug is derived from the name and never changes: it becomes the tool prefix `skill_<slug>_` for every skill in the collection. A name whose slug is already used in the workspace is refused with a 409 `conflict`. A new collection reaches no AI client until it is attached to a profile.","tags":["skills"],"x-scope":"skills.manage","x-limit":"write","security":[{"bearerAuth":["skills.manage"]}],"parameters":[],"responses":{"201":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"collection":{"type":"object","properties":{"id":{"type":"string","description":"The collection's id."},"slug":{"type":"string","description":"Derived from the name when the collection was created. It never changes."},"name":{"type":"string","description":"The display name."},"description":{"type":"string","nullable":true,"description":"One line on what the collection holds. Null when none was given."},"icon":{"type":"string","nullable":true,"description":"The emoji mark shown in the dashboard. Null for the default mark."},"status":{"type":"string","enum":["active","archived"],"description":"active, or archived: an archived collection serves none of its skills to AI clients."},"tool_prefix":{"type":"string","description":"The start of the tool name of every skill in the collection: skill_<slug>_."},"skill_counts":{"type":"object","properties":{"draft":{"type":"integer","description":"Skills not published yet."},"active":{"type":"integer","description":"Published skills."},"archived":{"type":"integer","description":"Archived skills."}},"required":["draft","active","archived"],"additionalProperties":false,"description":"How many skills the collection holds, by status."},"profiles":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"The profile's id."},"name":{"type":"string","description":"The profile's name."},"auto_receive":{"type":"boolean","description":"True when the profile is set to take up skills published in this collection later, without anyone picking them again."}},"required":["id","name","auto_receive"],"additionalProperties":false},"description":"The profiles carrying this collection. Empty means its skills reach no AI client yet."},"created_at":{"type":"string","description":"When the collection was created, ISO 8601."},"updated_at":{"type":"string","description":"When the collection's own details last changed, ISO 8601."}},"required":["id","slug","name","description","icon","status","tool_prefix","skill_counts","profiles","created_at","updated_at"],"additionalProperties":false,"description":"The new collection."}},"required":["collection"],"additionalProperties":false}}}},"400":{"description":"validation: a field failed validation; `field` names it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"unauthorized: no key, or an unknown, revoked or expired key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"insufficient_scope: the key lacks the route's scope, named in `required`. Or forbidden, or plan_limit when the plan does not include the API.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"not_found: the thing is not in this workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"rate_limited: the key's per-minute budget is spent. Retry after `Retry-After` seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":80,"description":"What people call the collection. Its slug, and so the tool prefix skill_<slug>_, is derived from it and never changes."},"description":{"type":"string","maxLength":500,"nullable":true,"description":"One line on what the collection holds."},"icon":{"type":"string","maxLength":16,"nullable":true,"description":"A single emoji mark for the collection card. Dashboard only."}},"required":["name"],"additionalProperties":false},"example":{"name":"Sales playbooks","description":"How we qualify and follow up."}}}}}},"/v1/skills/collections/{id}":{"patch":{"operationId":"skills.collections.update","summary":"Update a skill collection","description":"Rename it, re-describe it, change its icon, or archive and restore it with `status`. The slug never changes, so the tool names built from it stay the same. An archived collection serves none of its skills to AI clients; nothing is deleted, and `status: \"active\"` brings it back.","tags":["skills"],"x-scope":"skills.manage","x-limit":"write","security":[{"bearerAuth":["skills.manage"]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1,"description":"The collection: its id or slug."},"description":"The collection: its id or slug."}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"collection":{"type":"object","properties":{"id":{"type":"string","description":"The collection's id."},"slug":{"type":"string","description":"Derived from the name when the collection was created. It never changes."},"name":{"type":"string","description":"The display name."},"description":{"type":"string","nullable":true,"description":"One line on what the collection holds. Null when none was given."},"icon":{"type":"string","nullable":true,"description":"The emoji mark shown in the dashboard. Null for the default mark."},"status":{"type":"string","enum":["active","archived"],"description":"active, or archived: an archived collection serves none of its skills to AI clients."},"tool_prefix":{"type":"string","description":"The start of the tool name of every skill in the collection: skill_<slug>_."},"skill_counts":{"type":"object","properties":{"draft":{"type":"integer","description":"Skills not published yet."},"active":{"type":"integer","description":"Published skills."},"archived":{"type":"integer","description":"Archived skills."}},"required":["draft","active","archived"],"additionalProperties":false,"description":"How many skills the collection holds, by status."},"profiles":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"The profile's id."},"name":{"type":"string","description":"The profile's name."},"auto_receive":{"type":"boolean","description":"True when the profile is set to take up skills published in this collection later, without anyone picking them again."}},"required":["id","name","auto_receive"],"additionalProperties":false},"description":"The profiles carrying this collection. Empty means its skills reach no AI client yet."},"created_at":{"type":"string","description":"When the collection was created, ISO 8601."},"updated_at":{"type":"string","description":"When the collection's own details last changed, ISO 8601."}},"required":["id","slug","name","description","icon","status","tool_prefix","skill_counts","profiles","created_at","updated_at"],"additionalProperties":false,"description":"The collection after the change."}},"required":["collection"],"additionalProperties":false}}}},"400":{"description":"validation: a field failed validation; `field` names it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"unauthorized: no key, or an unknown, revoked or expired key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"insufficient_scope: the key lacks the route's scope, named in `required`. Or forbidden, or plan_limit when the plan does not include the API.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"not_found: the thing is not in this workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"rate_limited: the key's per-minute budget is spent. Retry after `Retry-After` seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":80,"description":"New display name. The slug and the tool prefix stay the same."},"description":{"type":"string","maxLength":500,"nullable":true,"description":"null clears it."},"icon":{"type":"string","maxLength":16,"nullable":true,"description":"null restores the default mark."},"status":{"type":"string","enum":["active","archived"],"description":"archived exposes nothing; active restores it."}},"additionalProperties":false},"example":{"name":"Sales playbooks"}}}}},"delete":{"operationId":"skills.collections.delete","summary":"Permanently delete a collection and its skills","description":"The collection, every skill in it, and each skill's files and version history are deleted. This cannot be undone and no other copy exists. To take a collection out of use and keep it, archive it with `PATCH /v1/skills/collections/{id}` and `status: \"archived\"`.","tags":["skills"],"x-scope":"skills.delete","x-dangerous":true,"x-limit":"write","security":[{"bearerAuth":["skills.delete"]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1,"description":"The collection: its id or slug."},"description":"The collection: its id or slug."}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true],"description":"Always true: the delete went through."}},"required":["ok"],"additionalProperties":false}}}},"400":{"description":"validation: a field failed validation; `field` names it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"unauthorized: no key, or an unknown, revoked or expired key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"insufficient_scope: the key lacks the route's scope, named in `required`. Or forbidden, or plan_limit when the plan does not include the API.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"not_found: the thing is not in this workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"rate_limited: the key's per-minute budget is spent. Retry after `Retry-After` seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/skills/collections/{id}/import":{"post":{"operationId":"skills.collections.import","summary":"Import an Agent Skills bundle into a collection","description":"Send the zip base64 encoded in `zip`. Without `apply: true` nothing is written: the report lists what would be created, what collides and what was skipped, from the same checks a real run makes. Imported skills land as drafts, and a skill whose name is already in the collection is skipped, never overwritten. Send the same zip again with `apply: true` to write.","tags":["skills"],"x-scope":"skills.write","x-limit":"write","security":[{"bearerAuth":["skills.write"]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1,"description":"The collection: its id or slug."},"description":"The collection: its id or slug."}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"applied":{"type":"boolean","description":"True when the skills were written. False for a preview."},"layout":{"type":"string","enum":["plugin","bare","empty"],"description":"The bundle layout found: plugin (skills under a skills/ folder), bare (skill folders with no skills/ folder above them) or empty (no SKILL.md anywhere)."},"created":{"type":"array","items":{"type":"object","properties":{"slug":{"type":"string","description":"The slug the skill gets, from its directory name."},"name":{"type":"string","description":"The skill's name: the frontmatter name, or the directory name when there is none."},"description":{"type":"string","description":"The description from the frontmatter."},"file_count":{"type":"integer","description":"How many files come with the skill, besides SKILL.md."}},"required":["slug","name","description","file_count"],"additionalProperties":false},"description":"The skills created, or on a preview the ones that would be."},"collisions":{"type":"array","items":{"type":"object","properties":{"slug":{"type":"string","description":"The slug that collided, or the directory name when no slug could be made from it."},"name":{"type":"string","description":"The skill's name in the bundle."},"reason":{"type":"string","description":"Why it was left out."}},"required":["slug","name","reason"],"additionalProperties":false},"description":"Skills in the bundle that were left out: the collection already has one with that name, the bundle holds it twice, or its name cannot make a slug."},"skipped":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string","description":"The entry's path inside the zip."},"reason":{"type":"string","description":"Why it was skipped."}},"required":["path","reason"],"additionalProperties":false},"description":"Entries in the zip that were not imported, such as a SKILL.md with no description, a binary file, a file over the size limit or a file outside the three folders."}},"required":["applied","layout","created","collisions","skipped"],"additionalProperties":false}}}},"400":{"description":"validation: a field failed validation; `field` names it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"unauthorized: no key, or an unknown, revoked or expired key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"insufficient_scope: the key lacks the route's scope, named in `required`. Or forbidden, or plan_limit when the plan does not include the API.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"not_found: the thing is not in this workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"rate_limited: the key's per-minute budget is spent. Retry after `Retry-After` seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"zip":{"type":"string","minLength":1,"description":"An Agent Skills bundle (.zip), base64 encoded."},"apply":{"type":"boolean","description":"false (the default) previews: the report says what WOULD happen. true writes every skill in the bundle, as drafts."}},"required":["zip"],"additionalProperties":false},"example":{"zip":"UEsFBgAAAAAAAAAAAAAAAAAAAAAAAA==","apply":false}}}}}},"/v1/skills/library":{"get":{"operationId":"skills.library.list","summary":"List the skills library","description":"The library is the set of skills FloConnector writes and maintains for every workspace. Every published entry comes back, retired ones included (see `status`), each with `installs`: where it is already installed in this workspace and how.","tags":["skills"],"x-scope":"skills.read","x-limit":"read","security":[{"bearerAuth":["skills.read"]}],"parameters":[],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"entries":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"The library entry's id."},"slug":{"type":"string","description":"The entry's slug: lowercase, words joined by hyphens."},"name":{"type":"string","description":"The published name."},"description":{"type":"string","description":"The published description: when to use the skill."},"category":{"type":"string","description":"The category the entry is filed under, e.g. sales or finance."},"icon":{"type":"string","nullable":true,"description":"The entry's emoji mark, or its category's mark when it has none of its own."},"status":{"type":"string","enum":["draft","published","retired"],"description":"published, or retired: FloConnector no longer maintains a retired entry, and it installs only as a copy. Draft entries are never returned."},"retired_at":{"type":"string","nullable":true,"description":"When the entry was retired, ISO 8601. Null while it is maintained."},"version":{"type":"integer","description":"The latest published version number."},"published_at":{"type":"string","nullable":true,"description":"When that version was published, ISO 8601."},"updated_at":{"type":"string","description":"When the entry last changed, ISO 8601."},"connectors":{"type":"array","items":{"type":"object","properties":{"vendor":{"type":"string","description":"The connector's slug."},"name":{"type":"string","description":"The connector's display name."}},"required":["vendor","name"],"additionalProperties":false},"description":"The connectors the skill is written to work with."},"install_count":{"type":"integer","description":"How many workspaces across FloConnector have it installed."},"download_count":{"type":"integer","description":"How many times its bundle has been downloaded as a zip."},"file_count":{"type":"integer","description":"How many files the published version carries, besides the body."},"installs":{"type":"array","items":{"type":"object","properties":{"skill_id":{"type":"string","description":"The installed skill's id in this workspace."},"collection_id":{"type":"string","description":"The id of the collection it was installed into."},"collection_name":{"type":"string","description":"That collection's name."},"collection_slug":{"type":"string","description":"That collection's slug."},"mode":{"type":"string","enum":["managed","copy"],"description":"managed = kept up to date by the library and read-only; copy = your own editable skill."},"version":{"type":"integer","description":"The library version the install carries. 0 when it was installed from an entry that was not published yet."},"status":{"type":"string","enum":["draft","active","archived"],"description":"The installed skill's status: draft, active (published) or archived."},"installed_at":{"type":"string","nullable":true,"description":"When it was installed, ISO 8601."},"detached_at":{"type":"string","nullable":true,"description":"When a managed install was made editable, ISO 8601. Null if that never happened."}},"required":["skill_id","collection_id","collection_name","collection_slug","mode","version","status","installed_at","detached_at"],"additionalProperties":false},"description":"Where the entry is installed in this workspace. Empty when it is not."}},"required":["id","slug","name","description","category","icon","status","retired_at","version","published_at","updated_at","connectors","install_count","download_count","file_count","installs"],"additionalProperties":false},"description":"The library's entries, published and retired."}},"required":["entries"],"additionalProperties":false}}}},"400":{"description":"validation: a field failed validation; `field` names it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"unauthorized: no key, or an unknown, revoked or expired key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"insufficient_scope: the key lacks the route's scope, named in `required`. Or forbidden, or plan_limit when the plan does not include the API.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"not_found: the thing is not in this workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"rate_limited: the key's per-minute budget is spent. Retry after `Retry-After` seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/skills/library/{id}":{"get":{"operationId":"skills.library.get","summary":"Get a library skill","description":"One entry by id or slug: the published `body` and files, the published version history, and where it is installed in this workspace. A retired entry stays readable; an entry that is not published answers 404.","tags":["skills"],"x-scope":"skills.read","x-limit":"read","security":[{"bearerAuth":["skills.read"]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1,"description":"The library entry: its id or slug."},"description":"The library entry: its id or slug."}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"entry":{"type":"object","properties":{"id":{"type":"string","description":"The library entry's id."},"slug":{"type":"string","description":"The entry's slug: lowercase, words joined by hyphens."},"name":{"type":"string","description":"The published name."},"description":{"type":"string","description":"The published description: when to use the skill."},"category":{"type":"string","description":"The category the entry is filed under, e.g. sales or finance."},"icon":{"type":"string","nullable":true,"description":"The entry's emoji mark, or its category's mark when it has none of its own."},"status":{"type":"string","enum":["draft","published","retired"],"description":"published, or retired: FloConnector no longer maintains a retired entry, and it installs only as a copy. Draft entries are never returned."},"retired_at":{"type":"string","nullable":true,"description":"When the entry was retired, ISO 8601. Null while it is maintained."},"version":{"type":"integer","description":"The latest published version number."},"published_at":{"type":"string","nullable":true,"description":"When that version was published, ISO 8601."},"updated_at":{"type":"string","description":"When the entry last changed, ISO 8601."},"connectors":{"type":"array","items":{"type":"object","properties":{"vendor":{"type":"string","description":"The connector's slug."},"name":{"type":"string","description":"The connector's display name."}},"required":["vendor","name"],"additionalProperties":false},"description":"The connectors the skill is written to work with."},"install_count":{"type":"integer","description":"How many workspaces across FloConnector have it installed."},"download_count":{"type":"integer","description":"How many times its bundle has been downloaded as a zip."},"file_count":{"type":"integer","description":"How many files the published version carries, besides the body."},"installs":{"type":"array","items":{"type":"object","properties":{"skill_id":{"type":"string","description":"The installed skill's id in this workspace."},"collection_id":{"type":"string","description":"The id of the collection it was installed into."},"collection_name":{"type":"string","description":"That collection's name."},"collection_slug":{"type":"string","description":"That collection's slug."},"mode":{"type":"string","enum":["managed","copy"],"description":"managed = kept up to date by the library and read-only; copy = your own editable skill."},"version":{"type":"integer","description":"The library version the install carries. 0 when it was installed from an entry that was not published yet."},"status":{"type":"string","enum":["draft","active","archived"],"description":"The installed skill's status: draft, active (published) or archived."},"installed_at":{"type":"string","nullable":true,"description":"When it was installed, ISO 8601."},"detached_at":{"type":"string","nullable":true,"description":"When a managed install was made editable, ISO 8601. Null if that never happened."}},"required":["skill_id","collection_id","collection_name","collection_slug","mode","version","status","installed_at","detached_at"],"additionalProperties":false},"description":"Where the entry is installed in this workspace. Empty when it is not."},"body":{"type":"string","description":"The published instructions, in markdown."},"files":{"type":"array","items":{"type":"object","properties":{"folder":{"type":"string","enum":["references","scripts","assets"],"description":"The folder the file sits in: references, scripts or assets."},"name":{"type":"string","description":"The file name, extension included."},"path":{"type":"string","description":"<folder>/<name>: the path the body links to, and the one to send when changing the file."},"content":{"type":"string","description":"The file's text."}},"required":["folder","name","path","content"],"additionalProperties":false},"description":"The published files, with their text."},"changelog":{"type":"string","nullable":true,"description":"The note on the latest published version. Null when none was written."},"license":{"type":"string","enum":["CC0-1.0"],"description":"The licence every library skill is published under."},"versions":{"type":"array","items":{"type":"object","properties":{"version":{"type":"integer","description":"The published version number."},"changelog":{"type":"string","nullable":true,"description":"What changed in that version. Null when no note was written."},"published_at":{"type":"string","description":"When it was published, ISO 8601."}},"required":["version","changelog","published_at"],"additionalProperties":false},"description":"The published history, newest first."}},"required":["id","slug","name","description","category","icon","status","retired_at","version","published_at","updated_at","connectors","install_count","download_count","file_count","installs","body","files","changelog","license","versions"],"additionalProperties":false,"description":"The library entry, in full."}},"required":["entry"],"additionalProperties":false}}}},"400":{"description":"validation: a field failed validation; `field` names it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"unauthorized: no key, or an unknown, revoked or expired key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"insufficient_scope: the key lacks the route's scope, named in `required`. Or forbidden, or plan_limit when the plan does not include the API.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"not_found: the thing is not in this workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"rate_limited: the key's per-minute budget is spent. Retry after `Retry-After` seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/skills/library/{id}/install":{"post":{"operationId":"skills.library.install","summary":"Install a library skill into a collection","description":"`mode: \"copy\"` adds an editable draft that is yours from then on. `mode: \"managed\"` adds a published, read-only skill that is rewritten each time the library publishes a new version; it needs the `skills.publish` scope and is refused for a retired entry. A managed install that already exists in the collection is returned with `created: false` instead of being duplicated.","tags":["skills"],"x-scope":"skills.write","x-limit":"write","security":[{"bearerAuth":["skills.write"]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1,"description":"The library entry: its id or slug."},"description":"The library entry: its id or slug."}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"skill":{"type":"object","properties":{"id":{"type":"string","description":"The skill's id."},"tool_name":{"type":"string","description":"The tool an AI client calls to read the skill once it is published: skill_<collection slug>_<skill slug>."},"slug":{"type":"string","description":"The skill's slug, the last part of its tool name. Renaming the skill does not change it."},"name":{"type":"string","description":"The display name."},"description":{"type":"string","description":"When to use the skill. AI clients see it as the tool's description."},"icon":{"type":"string","nullable":true,"description":"The emoji mark shown in the dashboard. Null for the default mark."},"status":{"type":"string","enum":["draft","active","archived"],"description":"draft = not visible to any AI client; active = published; archived = kept, but served to no one."},"origin":{"type":"string","enum":["dashboard","mcp","library"],"description":"How the skill first arrived: dashboard (written or imported by a person), mcp (written by an AI client or with an API key) or library (installed from the library). A copy keeps its source's value."},"collection":{"type":"object","properties":{"id":{"type":"string","description":"The collection's id."},"slug":{"type":"string","description":"The collection's slug, the middle part of the tool name of every skill in it."},"name":{"type":"string","description":"The collection's display name."}},"required":["id","slug","name"],"additionalProperties":false,"description":"The collection the skill belongs to."},"library":{"type":"object","properties":{"library_id":{"type":"string","description":"The library entry's id."},"slug":{"type":"string","description":"The library entry's slug."},"name":{"type":"string","description":"The library entry's name."},"mode":{"type":"string","enum":["managed","copy"],"description":"managed = rewritten on every library publish and read-only here; copy = your own skill, which the library no longer changes."},"read_only":{"type":"boolean","description":"True for a managed install: its content cannot be edited here until it is made editable."},"installed_version":{"type":"integer","description":"The library version this skill carries. 0 when it was installed from an entry that was not published yet."},"current_version":{"type":"integer","description":"The latest version the library has published."},"library_status":{"type":"string","enum":["draft","published","retired"],"description":"The entry's state in the library. retired = FloConnector no longer maintains it."},"installed_at":{"type":"string","nullable":true,"description":"When the skill was installed from the library, ISO 8601."},"detached_at":{"type":"string","nullable":true,"description":"When a managed install was made editable, ISO 8601. Null if that never happened."},"update_available":{"type":"boolean","description":"True for a copy that sits behind the library's latest published version. Always false for a managed install."}},"required":["library_id","slug","name","mode","read_only","installed_version","current_version","library_status","installed_at","detached_at","update_available"],"additionalProperties":false,"nullable":true,"description":"The skill's link to the library entry it was installed from. Null for a skill that was not installed from the library."},"version":{"type":"integer","description":"The skill's current version number, or the version being shown when a past one was asked for."},"files":{"type":"array","items":{"type":"object","properties":{"folder":{"type":"string","enum":["references","scripts","assets"],"description":"The folder the file sits in: references, scripts or assets."},"name":{"type":"string","description":"The file name, extension included."},"path":{"type":"string","description":"<folder>/<name>: the path the body links to, and the one to send when changing the file."}},"required":["folder","name","path"],"additionalProperties":false},"description":"The skill's files, as paths."},"created_at":{"type":"string","description":"When the skill was created, ISO 8601."},"updated_at":{"type":"string","description":"When the skill last changed, ISO 8601."}},"required":["id","tool_name","slug","name","description","icon","status","origin","collection","library","version","files","created_at","updated_at"],"additionalProperties":false,"description":"The installed skill."},"created":{"type":"boolean","description":"True when this call created the skill. False when a managed install was already in the collection and is returned as it stands."},"version":{"type":"integer","description":"The library version the install carries. 0 when it was installed from an entry that was not published yet."}},"required":["skill","created","version"],"additionalProperties":false}}}},"400":{"description":"validation: a field failed validation; `field` names it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"unauthorized: no key, or an unknown, revoked or expired key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"insufficient_scope: the key lacks the route's scope, named in `required`. Or forbidden, or plan_limit when the plan does not include the API.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"not_found: the thing is not in this workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"rate_limited: the key's per-minute budget is spent. Retry after `Retry-After` seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"collection":{"type":"string","minLength":1,"description":"The collection to install into: id or slug."},"mode":{"type":"string","enum":["managed","copy"],"description":"managed = live at once and rewritten on every library publish (needs skills.publish); copy = an editable draft of your own."}},"required":["collection","mode"],"additionalProperties":false},"example":{"collection":"smoke_target","mode":"copy"}}}}}},"/v1/skills":{"get":{"operationId":"skills.list","summary":"List skills","description":"Every skill in the workspace, or in one collection, whatever its status: drafts and archived skills are included unless you filter with `status`. Each comes back with its tool name, current version, file paths and library link, without the body. Read the text with `GET /v1/skills/{id}`.","tags":["skills"],"x-scope":"skills.read","x-limit":"read","security":[{"bearerAuth":["skills.read"]}],"parameters":[{"name":"collection","in":"query","required":false,"schema":{"type":"string","minLength":1,"description":"Only this collection's skills."},"description":"Only this collection's skills."},{"name":"status","in":"query","required":false,"schema":{"type":"string","enum":["draft","active","archived"],"description":"Only skills in this status: draft, active (published) or archived. Omit for every status."},"description":"Only skills in this status: draft, active (published) or archived. Omit for every status."}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"skills":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"The skill's id."},"tool_name":{"type":"string","description":"The tool an AI client calls to read the skill once it is published: skill_<collection slug>_<skill slug>."},"slug":{"type":"string","description":"The skill's slug, the last part of its tool name. Renaming the skill does not change it."},"name":{"type":"string","description":"The display name."},"description":{"type":"string","description":"When to use the skill. AI clients see it as the tool's description."},"icon":{"type":"string","nullable":true,"description":"The emoji mark shown in the dashboard. Null for the default mark."},"status":{"type":"string","enum":["draft","active","archived"],"description":"draft = not visible to any AI client; active = published; archived = kept, but served to no one."},"origin":{"type":"string","enum":["dashboard","mcp","library"],"description":"How the skill first arrived: dashboard (written or imported by a person), mcp (written by an AI client or with an API key) or library (installed from the library). A copy keeps its source's value."},"collection":{"type":"object","properties":{"id":{"type":"string","description":"The collection's id."},"slug":{"type":"string","description":"The collection's slug, the middle part of the tool name of every skill in it."},"name":{"type":"string","description":"The collection's display name."}},"required":["id","slug","name"],"additionalProperties":false,"description":"The collection the skill belongs to."},"library":{"type":"object","properties":{"library_id":{"type":"string","description":"The library entry's id."},"slug":{"type":"string","description":"The library entry's slug."},"name":{"type":"string","description":"The library entry's name."},"mode":{"type":"string","enum":["managed","copy"],"description":"managed = rewritten on every library publish and read-only here; copy = your own skill, which the library no longer changes."},"read_only":{"type":"boolean","description":"True for a managed install: its content cannot be edited here until it is made editable."},"installed_version":{"type":"integer","description":"The library version this skill carries. 0 when it was installed from an entry that was not published yet."},"current_version":{"type":"integer","description":"The latest version the library has published."},"library_status":{"type":"string","enum":["draft","published","retired"],"description":"The entry's state in the library. retired = FloConnector no longer maintains it."},"installed_at":{"type":"string","nullable":true,"description":"When the skill was installed from the library, ISO 8601."},"detached_at":{"type":"string","nullable":true,"description":"When a managed install was made editable, ISO 8601. Null if that never happened."},"update_available":{"type":"boolean","description":"True for a copy that sits behind the library's latest published version. Always false for a managed install."}},"required":["library_id","slug","name","mode","read_only","installed_version","current_version","library_status","installed_at","detached_at","update_available"],"additionalProperties":false,"nullable":true,"description":"The skill's link to the library entry it was installed from. Null for a skill that was not installed from the library."},"version":{"type":"integer","description":"The skill's current version number, or the version being shown when a past one was asked for."},"files":{"type":"array","items":{"type":"object","properties":{"folder":{"type":"string","enum":["references","scripts","assets"],"description":"The folder the file sits in: references, scripts or assets."},"name":{"type":"string","description":"The file name, extension included."},"path":{"type":"string","description":"<folder>/<name>: the path the body links to, and the one to send when changing the file."}},"required":["folder","name","path"],"additionalProperties":false},"description":"The skill's files, as paths."},"created_at":{"type":"string","description":"When the skill was created, ISO 8601."},"updated_at":{"type":"string","description":"When the skill last changed, ISO 8601."}},"required":["id","tool_name","slug","name","description","icon","status","origin","collection","library","version","files","created_at","updated_at"],"additionalProperties":false},"description":"The matching skills, without their bodies."}},"required":["skills"],"additionalProperties":false}}}},"400":{"description":"validation: a field failed validation; `field` names it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"unauthorized: no key, or an unknown, revoked or expired key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"insufficient_scope: the key lacks the route's scope, named in `required`. Or forbidden, or plan_limit when the plan does not include the API.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"not_found: the thing is not in this workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"rate_limited: the key's per-minute budget is spent. Retry after `Retry-After` seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"post":{"operationId":"skills.create","summary":"Create a skill (as a draft)","description":"The body and any files land together as version 1. `name` and `description` may be left out when the body opens with a frontmatter block that carries them; the block is stripped either way. The skill is a draft that no AI client can see until it is published: call `POST /v1/skills/{id}/publish`, or send `publish: true` here with a key that holds `skills.publish`.","tags":["skills"],"x-scope":"skills.write","x-limit":"write","security":[{"bearerAuth":["skills.write"]}],"parameters":[],"responses":{"201":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"skill":{"type":"object","properties":{"id":{"type":"string","description":"The skill's id."},"tool_name":{"type":"string","description":"The tool an AI client calls to read the skill once it is published: skill_<collection slug>_<skill slug>."},"slug":{"type":"string","description":"The skill's slug, the last part of its tool name. Renaming the skill does not change it."},"name":{"type":"string","description":"The display name."},"description":{"type":"string","description":"When to use the skill. AI clients see it as the tool's description."},"icon":{"type":"string","nullable":true,"description":"The emoji mark shown in the dashboard. Null for the default mark."},"status":{"type":"string","enum":["draft","active","archived"],"description":"draft = not visible to any AI client; active = published; archived = kept, but served to no one."},"origin":{"type":"string","enum":["dashboard","mcp","library"],"description":"How the skill first arrived: dashboard (written or imported by a person), mcp (written by an AI client or with an API key) or library (installed from the library). A copy keeps its source's value."},"collection":{"type":"object","properties":{"id":{"type":"string","description":"The collection's id."},"slug":{"type":"string","description":"The collection's slug, the middle part of the tool name of every skill in it."},"name":{"type":"string","description":"The collection's display name."}},"required":["id","slug","name"],"additionalProperties":false,"description":"The collection the skill belongs to."},"library":{"type":"object","properties":{"library_id":{"type":"string","description":"The library entry's id."},"slug":{"type":"string","description":"The library entry's slug."},"name":{"type":"string","description":"The library entry's name."},"mode":{"type":"string","enum":["managed","copy"],"description":"managed = rewritten on every library publish and read-only here; copy = your own skill, which the library no longer changes."},"read_only":{"type":"boolean","description":"True for a managed install: its content cannot be edited here until it is made editable."},"installed_version":{"type":"integer","description":"The library version this skill carries. 0 when it was installed from an entry that was not published yet."},"current_version":{"type":"integer","description":"The latest version the library has published."},"library_status":{"type":"string","enum":["draft","published","retired"],"description":"The entry's state in the library. retired = FloConnector no longer maintains it."},"installed_at":{"type":"string","nullable":true,"description":"When the skill was installed from the library, ISO 8601."},"detached_at":{"type":"string","nullable":true,"description":"When a managed install was made editable, ISO 8601. Null if that never happened."},"update_available":{"type":"boolean","description":"True for a copy that sits behind the library's latest published version. Always false for a managed install."}},"required":["library_id","slug","name","mode","read_only","installed_version","current_version","library_status","installed_at","detached_at","update_available"],"additionalProperties":false,"nullable":true,"description":"The skill's link to the library entry it was installed from. Null for a skill that was not installed from the library."},"version":{"type":"integer","description":"The skill's current version number, or the version being shown when a past one was asked for."},"files":{"type":"array","items":{"type":"object","properties":{"folder":{"type":"string","enum":["references","scripts","assets"],"description":"The folder the file sits in: references, scripts or assets."},"name":{"type":"string","description":"The file name, extension included."},"path":{"type":"string","description":"<folder>/<name>: the path the body links to, and the one to send when changing the file."}},"required":["folder","name","path"],"additionalProperties":false},"description":"The skill's files, as paths."},"created_at":{"type":"string","description":"When the skill was created, ISO 8601."},"updated_at":{"type":"string","description":"When the skill last changed, ISO 8601."}},"required":["id","tool_name","slug","name","description","icon","status","origin","collection","library","version","files","created_at","updated_at"],"additionalProperties":false,"description":"The skill after the write."},"changed_paths":{"type":"array","items":{"type":"string"},"description":"The documents this call changed: SKILL.md for the body, plus file paths. Empty when no new version was written."},"changelog_recorded":{"type":"boolean","description":"True when the call wrote a new version, which carries the changelog. False when nothing differed or only the name, description or icon changed: no version was written and the changelog was not kept."},"dangling_links":{"type":"array","items":{"type":"string"},"description":"Paths under references/, scripts/ or assets/ that the body mentions but the skill does not carry. Advisory: the write still went through. Left out when there are none."}},"required":["skill","changed_paths","changelog_recorded"],"additionalProperties":false}}}},"400":{"description":"validation: a field failed validation; `field` names it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"unauthorized: no key, or an unknown, revoked or expired key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"insufficient_scope: the key lacks the route's scope, named in `required`. Or forbidden, or plan_limit when the plan does not include the API.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"not_found: the thing is not in this workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"rate_limited: the key's per-minute budget is spent. Retry after `Retry-After` seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"collection":{"type":"string","minLength":1,"description":"The collection: its id or slug."},"name":{"type":"string","minLength":1,"maxLength":80,"description":"Short and plain; becomes half the tool name. Taken from frontmatter if omitted."},"description":{"type":"string","minLength":1,"maxLength":1024,"description":"WHEN to use the skill. Taken from frontmatter if omitted."},"body":{"type":"string","minLength":1,"description":"The instructions, in markdown, up to 20480 bytes. A leading YAML frontmatter block is read and stripped."},"icon":{"type":"string","maxLength":16,"description":"A single emoji mark for the skill in the dashboard. Never shown to a model."},"files":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string","minLength":1,"description":"\"<folder>/<name>\" with folder one of references, scripts, assets, e.g. references/tone.md"},"content":{"type":"string","description":"Text only, up to 32768 bytes."}},"required":["path","content"],"additionalProperties":false},"maxItems":25,"description":"Up to 25 files in references/, scripts/ or assets/."},"changelog":{"type":"string","minLength":1,"maxLength":200,"description":"What v1 is and why it exists, for the history. Always send one."},"publish":{"type":"boolean","description":"Also publish it (needs skills.publish). Default false: it is a draft."}},"required":["collection","body"],"additionalProperties":false},"example":{"collection":"smoke_target","name":"Qualify a lead","description":"When a new lead arrives and needs scoring before anyone calls.","body":"# Qualify a lead\n\nScore the lead 1 to 5 on fit, then on urgency.","changelog":"First draft"}}}}}},"/v1/skills/{id}":{"get":{"operationId":"skills.get","summary":"Get a skill","description":"The skill in full: its metadata, the body, every file with its text, the version history as summaries and its library link. `version` returns the body and files as they stood at a past version, and the `version` field in the reply says which one you are reading. `{id}` accepts the skill's id, its tool name, or its slug when only one skill has it.","tags":["skills"],"x-scope":"skills.read","x-limit":"read","security":[{"bearerAuth":["skills.read"]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1,"description":"The skill: its id, its tool name (skill_<collection>_<skill>), collection/skill slugs, or a bare slug when only one skill carries it."},"description":"The skill: its id, its tool name (skill_<collection>_<skill>), collection/skill slugs, or a bare slug when only one skill carries it."},{"name":"version","in":"query","required":false,"schema":{"type":"integer","exclusiveMinimum":true,"minimum":0,"description":"A past version: its body and files as they stood then. Omit for the current one."},"description":"A past version: its body and files as they stood then. Omit for the current one."}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","description":"The skill's id."},"tool_name":{"type":"string","description":"The tool an AI client calls to read the skill once it is published: skill_<collection slug>_<skill slug>."},"slug":{"type":"string","description":"The skill's slug, the last part of its tool name. Renaming the skill does not change it."},"name":{"type":"string","description":"The display name."},"description":{"type":"string","description":"When to use the skill. AI clients see it as the tool's description."},"icon":{"type":"string","nullable":true,"description":"The emoji mark shown in the dashboard. Null for the default mark."},"status":{"type":"string","enum":["draft","active","archived"],"description":"draft = not visible to any AI client; active = published; archived = kept, but served to no one."},"origin":{"type":"string","enum":["dashboard","mcp","library"],"description":"How the skill first arrived: dashboard (written or imported by a person), mcp (written by an AI client or with an API key) or library (installed from the library). A copy keeps its source's value."},"collection":{"type":"object","properties":{"id":{"type":"string","description":"The collection's id."},"slug":{"type":"string","description":"The collection's slug, the middle part of the tool name of every skill in it."},"name":{"type":"string","description":"The collection's display name."}},"required":["id","slug","name"],"additionalProperties":false,"description":"The collection the skill belongs to."},"library":{"type":"object","properties":{"library_id":{"type":"string","description":"The library entry's id."},"slug":{"type":"string","description":"The library entry's slug."},"name":{"type":"string","description":"The library entry's name."},"mode":{"type":"string","enum":["managed","copy"],"description":"managed = rewritten on every library publish and read-only here; copy = your own skill, which the library no longer changes."},"read_only":{"type":"boolean","description":"True for a managed install: its content cannot be edited here until it is made editable."},"installed_version":{"type":"integer","description":"The library version this skill carries. 0 when it was installed from an entry that was not published yet."},"current_version":{"type":"integer","description":"The latest version the library has published."},"library_status":{"type":"string","enum":["draft","published","retired"],"description":"The entry's state in the library. retired = FloConnector no longer maintains it."},"installed_at":{"type":"string","nullable":true,"description":"When the skill was installed from the library, ISO 8601."},"detached_at":{"type":"string","nullable":true,"description":"When a managed install was made editable, ISO 8601. Null if that never happened."},"update_available":{"type":"boolean","description":"True for a copy that sits behind the library's latest published version. Always false for a managed install."}},"required":["library_id","slug","name","mode","read_only","installed_version","current_version","library_status","installed_at","detached_at","update_available"],"additionalProperties":false,"nullable":true,"description":"The skill's link to the library entry it was installed from. Null for a skill that was not installed from the library."},"version":{"type":"integer","description":"The skill's current version number, or the version being shown when a past one was asked for."},"files":{"type":"array","items":{"type":"object","properties":{"folder":{"type":"string","enum":["references","scripts","assets"],"description":"The folder the file sits in: references, scripts or assets."},"name":{"type":"string","description":"The file name, extension included."},"path":{"type":"string","description":"<folder>/<name>: the path the body links to, and the one to send when changing the file."},"content":{"type":"string","description":"The file's text."},"updated_at":{"type":"string","description":"When the file was last written, ISO 8601. On a past version, when that version was saved."}},"required":["folder","name","path","content","updated_at"],"additionalProperties":false},"description":"Every file with its text, at the version shown."},"created_at":{"type":"string","description":"When the skill was created, ISO 8601."},"updated_at":{"type":"string","description":"When the skill last changed, ISO 8601."},"body":{"type":"string","description":"The skill's instructions, in markdown, at the version shown."},"versions":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"The version's id."},"version":{"type":"integer","description":"The version number, counting up from 1 for each skill."},"changelog":{"type":"string","nullable":true,"description":"The note saved with the version. Null when none was given."},"author":{"type":"string","nullable":true,"description":"The name, or failing that the email, of the person who wrote it. Null when no person is on record, as with a library update."},"source":{"type":"string","enum":["dashboard","mcp","import","restore","library"],"nullable":true,"description":"How the version arrived: dashboard (the editor), mcp (an AI client), import (a bundle import), restore (a restored version) or library (written from the library). Null on old versions saved before this was recorded."},"via":{"type":"string","nullable":true,"description":"A label for how it arrived, for display: the AI client's name on an mcp version, FloConnector library on a library one. Null otherwise."},"changed_paths":{"type":"array","items":{"type":"string"},"nullable":true,"description":"The documents this version changed: SKILL.md for the body, plus file paths. Null on old versions saved before this was recorded."},"body_length":{"type":"integer","description":"The length of the body at this version, in characters."},"created_at":{"type":"string","description":"When the version was saved, ISO 8601."}},"required":["id","version","changelog","author","source","via","changed_paths","body_length","created_at"],"additionalProperties":false},"description":"The whole version history as summaries, newest first."}},"required":["id","tool_name","slug","name","description","icon","status","origin","collection","library","version","files","created_at","updated_at","body","versions"],"additionalProperties":false}}}},"400":{"description":"validation: a field failed validation; `field` names it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"unauthorized: no key, or an unknown, revoked or expired key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"insufficient_scope: the key lacks the route's scope, named in `required`. Or forbidden, or plan_limit when the plan does not include the API.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"not_found: the thing is not in this workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"rate_limited: the key's per-minute budget is spent. Retry after `Retry-After` seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"patch":{"operationId":"skills.update","summary":"Update a skill","description":"One call writes at most one new version: the body and the file changes land together, and `files` is a delta, so send only the paths you are changing. If the skill is published, AI clients read the new text on their next call. Pass `expected_version` to be refused with a 409 `conflict` when the skill has moved on since you read it. A managed library install answers 409 `read_only` until it is made editable with `POST /v1/skills/{id}/detach-library`.","tags":["skills"],"x-scope":"skills.write","x-limit":"write","security":[{"bearerAuth":["skills.write"]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1,"description":"The skill: its id, its tool name (skill_<collection>_<skill>), collection/skill slugs, or a bare slug when only one skill carries it."},"description":"The skill: its id, its tool name (skill_<collection>_<skill>), collection/skill slugs, or a bare slug when only one skill carries it."}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"skill":{"type":"object","properties":{"id":{"type":"string","description":"The skill's id."},"tool_name":{"type":"string","description":"The tool an AI client calls to read the skill once it is published: skill_<collection slug>_<skill slug>."},"slug":{"type":"string","description":"The skill's slug, the last part of its tool name. Renaming the skill does not change it."},"name":{"type":"string","description":"The display name."},"description":{"type":"string","description":"When to use the skill. AI clients see it as the tool's description."},"icon":{"type":"string","nullable":true,"description":"The emoji mark shown in the dashboard. Null for the default mark."},"status":{"type":"string","enum":["draft","active","archived"],"description":"draft = not visible to any AI client; active = published; archived = kept, but served to no one."},"origin":{"type":"string","enum":["dashboard","mcp","library"],"description":"How the skill first arrived: dashboard (written or imported by a person), mcp (written by an AI client or with an API key) or library (installed from the library). A copy keeps its source's value."},"collection":{"type":"object","properties":{"id":{"type":"string","description":"The collection's id."},"slug":{"type":"string","description":"The collection's slug, the middle part of the tool name of every skill in it."},"name":{"type":"string","description":"The collection's display name."}},"required":["id","slug","name"],"additionalProperties":false,"description":"The collection the skill belongs to."},"library":{"type":"object","properties":{"library_id":{"type":"string","description":"The library entry's id."},"slug":{"type":"string","description":"The library entry's slug."},"name":{"type":"string","description":"The library entry's name."},"mode":{"type":"string","enum":["managed","copy"],"description":"managed = rewritten on every library publish and read-only here; copy = your own skill, which the library no longer changes."},"read_only":{"type":"boolean","description":"True for a managed install: its content cannot be edited here until it is made editable."},"installed_version":{"type":"integer","description":"The library version this skill carries. 0 when it was installed from an entry that was not published yet."},"current_version":{"type":"integer","description":"The latest version the library has published."},"library_status":{"type":"string","enum":["draft","published","retired"],"description":"The entry's state in the library. retired = FloConnector no longer maintains it."},"installed_at":{"type":"string","nullable":true,"description":"When the skill was installed from the library, ISO 8601."},"detached_at":{"type":"string","nullable":true,"description":"When a managed install was made editable, ISO 8601. Null if that never happened."},"update_available":{"type":"boolean","description":"True for a copy that sits behind the library's latest published version. Always false for a managed install."}},"required":["library_id","slug","name","mode","read_only","installed_version","current_version","library_status","installed_at","detached_at","update_available"],"additionalProperties":false,"nullable":true,"description":"The skill's link to the library entry it was installed from. Null for a skill that was not installed from the library."},"version":{"type":"integer","description":"The skill's current version number, or the version being shown when a past one was asked for."},"files":{"type":"array","items":{"type":"object","properties":{"folder":{"type":"string","enum":["references","scripts","assets"],"description":"The folder the file sits in: references, scripts or assets."},"name":{"type":"string","description":"The file name, extension included."},"path":{"type":"string","description":"<folder>/<name>: the path the body links to, and the one to send when changing the file."}},"required":["folder","name","path"],"additionalProperties":false},"description":"The skill's files, as paths."},"created_at":{"type":"string","description":"When the skill was created, ISO 8601."},"updated_at":{"type":"string","description":"When the skill last changed, ISO 8601."}},"required":["id","tool_name","slug","name","description","icon","status","origin","collection","library","version","files","created_at","updated_at"],"additionalProperties":false,"description":"The skill after the write."},"changed_paths":{"type":"array","items":{"type":"string"},"description":"The documents this call changed: SKILL.md for the body, plus file paths. Empty when no new version was written."},"changelog_recorded":{"type":"boolean","description":"True when the call wrote a new version, which carries the changelog. False when nothing differed or only the name, description or icon changed: no version was written and the changelog was not kept."},"dangling_links":{"type":"array","items":{"type":"string"},"description":"Paths under references/, scripts/ or assets/ that the body mentions but the skill does not carry. Advisory: the write still went through. Left out when there are none."}},"required":["skill","changed_paths","changelog_recorded"],"additionalProperties":false}}}},"400":{"description":"validation: a field failed validation; `field` names it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"unauthorized: no key, or an unknown, revoked or expired key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"insufficient_scope: the key lacks the route's scope, named in `required`. Or forbidden, or plan_limit when the plan does not include the API.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"not_found: the thing is not in this workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"rate_limited: the key's per-minute budget is spent. Retry after `Retry-After` seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":80,"description":"New display name. The slug, and so the tool name, stays the same."},"description":{"type":"string","minLength":1,"maxLength":1024,"description":"New description: WHEN to use the skill. AI clients read it as the tool's description to decide whether to open the skill."},"icon":{"type":"string","maxLength":16,"nullable":true,"description":"A single emoji mark for the dashboard; null restores the default."},"body":{"type":"string","minLength":1,"description":"The whole new body. A leading frontmatter block is stripped."},"files":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string","minLength":1,"description":"\"<folder>/<name>\" with folder one of references, scripts, assets, e.g. references/tone.md"},"content":{"type":"string","nullable":true,"description":"The new text, or null to delete the file."}},"required":["path","content"],"additionalProperties":false},"maxItems":25,"description":"A delta: put or replace with content, delete with null. Untouched files stay."},"changelog":{"type":"string","minLength":1,"maxLength":200,"description":"What this revision changed, for the history. Always send one with a body or file change."},"expected_version":{"type":"integer","description":"The version you read. Refused with a conflict if the skill has moved on."}},"additionalProperties":false},"example":{"description":"When a lead needs scoring before the first call.","changelog":"Sharper trigger"}}}}},"delete":{"operationId":"skills.delete","summary":"Permanently delete a skill","description":"The skill, its files and its whole version history are deleted. This cannot be undone and no other copy exists. Use `POST /v1/skills/{id}/archive` to take a skill out of use and keep it.","tags":["skills"],"x-scope":"skills.delete","x-dangerous":true,"x-limit":"write","security":[{"bearerAuth":["skills.delete"]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1,"description":"The skill: its id, its tool name (skill_<collection>_<skill>), collection/skill slugs, or a bare slug when only one skill carries it."},"description":"The skill: its id, its tool name (skill_<collection>_<skill>), collection/skill slugs, or a bare slug when only one skill carries it."}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true],"description":"Always true: the delete went through."}},"required":["ok"],"additionalProperties":false}}}},"400":{"description":"validation: a field failed validation; `field` names it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"unauthorized: no key, or an unknown, revoked or expired key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"insufficient_scope: the key lacks the route's scope, named in `required`. Or forbidden, or plan_limit when the plan does not include the API.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"not_found: the thing is not in this workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"rate_limited: the key's per-minute budget is spent. Retry after `Retry-After` seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/skills/{id}/publish":{"post":{"operationId":"skills.publish","summary":"Publish or unpublish a skill","description":"A published skill is served as the tool `skill_<collection>_<skill>` by every profile carrying its collection; a draft is served by none. `publish: false` takes a published skill back to a draft. `profiles` names the profiles carrying the collection: when it is empty the skill is published but nothing can call it yet. An archived skill is refused until it is restored with `POST /v1/skills/{id}/archive` and `restore: true`.","tags":["skills"],"x-scope":"skills.publish","x-limit":"write","security":[{"bearerAuth":["skills.publish"]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1,"description":"The skill: its id, its tool name (skill_<collection>_<skill>), collection/skill slugs, or a bare slug when only one skill carries it."},"description":"The skill: its id, its tool name (skill_<collection>_<skill>), collection/skill slugs, or a bare slug when only one skill carries it."}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"skill":{"type":"object","properties":{"id":{"type":"string","description":"The skill's id."},"tool_name":{"type":"string","description":"The tool an AI client calls to read the skill once it is published: skill_<collection slug>_<skill slug>."},"slug":{"type":"string","description":"The skill's slug, the last part of its tool name. Renaming the skill does not change it."},"name":{"type":"string","description":"The display name."},"description":{"type":"string","description":"When to use the skill. AI clients see it as the tool's description."},"icon":{"type":"string","nullable":true,"description":"The emoji mark shown in the dashboard. Null for the default mark."},"status":{"type":"string","enum":["draft","active","archived"],"description":"draft = not visible to any AI client; active = published; archived = kept, but served to no one."},"origin":{"type":"string","enum":["dashboard","mcp","library"],"description":"How the skill first arrived: dashboard (written or imported by a person), mcp (written by an AI client or with an API key) or library (installed from the library). A copy keeps its source's value."},"collection":{"type":"object","properties":{"id":{"type":"string","description":"The collection's id."},"slug":{"type":"string","description":"The collection's slug, the middle part of the tool name of every skill in it."},"name":{"type":"string","description":"The collection's display name."}},"required":["id","slug","name"],"additionalProperties":false,"description":"The collection the skill belongs to."},"library":{"type":"object","properties":{"library_id":{"type":"string","description":"The library entry's id."},"slug":{"type":"string","description":"The library entry's slug."},"name":{"type":"string","description":"The library entry's name."},"mode":{"type":"string","enum":["managed","copy"],"description":"managed = rewritten on every library publish and read-only here; copy = your own skill, which the library no longer changes."},"read_only":{"type":"boolean","description":"True for a managed install: its content cannot be edited here until it is made editable."},"installed_version":{"type":"integer","description":"The library version this skill carries. 0 when it was installed from an entry that was not published yet."},"current_version":{"type":"integer","description":"The latest version the library has published."},"library_status":{"type":"string","enum":["draft","published","retired"],"description":"The entry's state in the library. retired = FloConnector no longer maintains it."},"installed_at":{"type":"string","nullable":true,"description":"When the skill was installed from the library, ISO 8601."},"detached_at":{"type":"string","nullable":true,"description":"When a managed install was made editable, ISO 8601. Null if that never happened."},"update_available":{"type":"boolean","description":"True for a copy that sits behind the library's latest published version. Always false for a managed install."}},"required":["library_id","slug","name","mode","read_only","installed_version","current_version","library_status","installed_at","detached_at","update_available"],"additionalProperties":false,"nullable":true,"description":"The skill's link to the library entry it was installed from. Null for a skill that was not installed from the library."},"version":{"type":"integer","description":"The skill's current version number, or the version being shown when a past one was asked for."},"files":{"type":"array","items":{"type":"object","properties":{"folder":{"type":"string","enum":["references","scripts","assets"],"description":"The folder the file sits in: references, scripts or assets."},"name":{"type":"string","description":"The file name, extension included."},"path":{"type":"string","description":"<folder>/<name>: the path the body links to, and the one to send when changing the file."}},"required":["folder","name","path"],"additionalProperties":false},"description":"The skill's files, as paths."},"created_at":{"type":"string","description":"When the skill was created, ISO 8601."},"updated_at":{"type":"string","description":"When the skill last changed, ISO 8601."}},"required":["id","tool_name","slug","name","description","icon","status","origin","collection","library","version","files","created_at","updated_at"],"additionalProperties":false,"description":"The skill after the change."},"profiles":{"type":"array","items":{"type":"string"},"description":"The names of the profiles carrying the skill's collection. Empty means no AI client can reach the skill yet."}},"required":["skill","profiles"],"additionalProperties":false}}}},"400":{"description":"validation: a field failed validation; `field` names it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"unauthorized: no key, or an unknown, revoked or expired key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"insufficient_scope: the key lacks the route's scope, named in `required`. Or forbidden, or plan_limit when the plan does not include the API.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"not_found: the thing is not in this workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"rate_limited: the key's per-minute budget is spent. Retry after `Retry-After` seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"publish":{"type":"boolean","default":true,"description":"true = draft → live; false = live → draft."}},"additionalProperties":false},"example":{"publish":true}}}}}},"/v1/skills/{id}/archive":{"post":{"operationId":"skills.archive","summary":"Archive or restore a skill","description":"An archived skill is served to no AI client, and nothing is deleted: the body, files and version history stay. `restore: true` brings an archived skill back as a draft, never straight to published. Call `POST /v1/skills/{id}/publish` when it should be live again.","tags":["skills"],"x-scope":"skills.write","x-limit":"write","security":[{"bearerAuth":["skills.write"]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1,"description":"The skill: its id, its tool name (skill_<collection>_<skill>), collection/skill slugs, or a bare slug when only one skill carries it."},"description":"The skill: its id, its tool name (skill_<collection>_<skill>), collection/skill slugs, or a bare slug when only one skill carries it."}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"skill":{"type":"object","properties":{"id":{"type":"string","description":"The skill's id."},"tool_name":{"type":"string","description":"The tool an AI client calls to read the skill once it is published: skill_<collection slug>_<skill slug>."},"slug":{"type":"string","description":"The skill's slug, the last part of its tool name. Renaming the skill does not change it."},"name":{"type":"string","description":"The display name."},"description":{"type":"string","description":"When to use the skill. AI clients see it as the tool's description."},"icon":{"type":"string","nullable":true,"description":"The emoji mark shown in the dashboard. Null for the default mark."},"status":{"type":"string","enum":["draft","active","archived"],"description":"draft = not visible to any AI client; active = published; archived = kept, but served to no one."},"origin":{"type":"string","enum":["dashboard","mcp","library"],"description":"How the skill first arrived: dashboard (written or imported by a person), mcp (written by an AI client or with an API key) or library (installed from the library). A copy keeps its source's value."},"collection":{"type":"object","properties":{"id":{"type":"string","description":"The collection's id."},"slug":{"type":"string","description":"The collection's slug, the middle part of the tool name of every skill in it."},"name":{"type":"string","description":"The collection's display name."}},"required":["id","slug","name"],"additionalProperties":false,"description":"The collection the skill belongs to."},"library":{"type":"object","properties":{"library_id":{"type":"string","description":"The library entry's id."},"slug":{"type":"string","description":"The library entry's slug."},"name":{"type":"string","description":"The library entry's name."},"mode":{"type":"string","enum":["managed","copy"],"description":"managed = rewritten on every library publish and read-only here; copy = your own skill, which the library no longer changes."},"read_only":{"type":"boolean","description":"True for a managed install: its content cannot be edited here until it is made editable."},"installed_version":{"type":"integer","description":"The library version this skill carries. 0 when it was installed from an entry that was not published yet."},"current_version":{"type":"integer","description":"The latest version the library has published."},"library_status":{"type":"string","enum":["draft","published","retired"],"description":"The entry's state in the library. retired = FloConnector no longer maintains it."},"installed_at":{"type":"string","nullable":true,"description":"When the skill was installed from the library, ISO 8601."},"detached_at":{"type":"string","nullable":true,"description":"When a managed install was made editable, ISO 8601. Null if that never happened."},"update_available":{"type":"boolean","description":"True for a copy that sits behind the library's latest published version. Always false for a managed install."}},"required":["library_id","slug","name","mode","read_only","installed_version","current_version","library_status","installed_at","detached_at","update_available"],"additionalProperties":false,"nullable":true,"description":"The skill's link to the library entry it was installed from. Null for a skill that was not installed from the library."},"version":{"type":"integer","description":"The skill's current version number, or the version being shown when a past one was asked for."},"files":{"type":"array","items":{"type":"object","properties":{"folder":{"type":"string","enum":["references","scripts","assets"],"description":"The folder the file sits in: references, scripts or assets."},"name":{"type":"string","description":"The file name, extension included."},"path":{"type":"string","description":"<folder>/<name>: the path the body links to, and the one to send when changing the file."}},"required":["folder","name","path"],"additionalProperties":false},"description":"The skill's files, as paths."},"created_at":{"type":"string","description":"When the skill was created, ISO 8601."},"updated_at":{"type":"string","description":"When the skill last changed, ISO 8601."}},"required":["id","tool_name","slug","name","description","icon","status","origin","collection","library","version","files","created_at","updated_at"],"additionalProperties":false,"description":"The skill after the change."}},"required":["skill"],"additionalProperties":false}}}},"400":{"description":"validation: a field failed validation; `field` names it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"unauthorized: no key, or an unknown, revoked or expired key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"insufficient_scope: the key lacks the route's scope, named in `required`. Or forbidden, or plan_limit when the plan does not include the API.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"not_found: the thing is not in this workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"rate_limited: the key's per-minute budget is spent. Retry after `Retry-After` seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"restore":{"type":"boolean","description":"true brings an archived skill back as a draft. Default false: archive it."}},"additionalProperties":false},"example":{"restore":false}}}}}},"/v1/skills/{id}/copy":{"post":{"operationId":"skills.copy","summary":"Copy a skill into another collection","description":"The copy takes the body and every file, starts its own history at version 1, and is always a draft, even when the source is published. If the destination already has a skill with the same slug, the copy gets a `_copy` suffix instead of being refused. Copying a managed library install gives a draft you can edit.","tags":["skills"],"x-scope":"skills.write","x-limit":"write","security":[{"bearerAuth":["skills.write"]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1,"description":"The skill: its id, its tool name (skill_<collection>_<skill>), collection/skill slugs, or a bare slug when only one skill carries it."},"description":"The skill: its id, its tool name (skill_<collection>_<skill>), collection/skill slugs, or a bare slug when only one skill carries it."}],"responses":{"201":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"skill":{"type":"object","properties":{"id":{"type":"string","description":"The skill's id."},"tool_name":{"type":"string","description":"The tool an AI client calls to read the skill once it is published: skill_<collection slug>_<skill slug>."},"slug":{"type":"string","description":"The skill's slug, the last part of its tool name. Renaming the skill does not change it."},"name":{"type":"string","description":"The display name."},"description":{"type":"string","description":"When to use the skill. AI clients see it as the tool's description."},"icon":{"type":"string","nullable":true,"description":"The emoji mark shown in the dashboard. Null for the default mark."},"status":{"type":"string","enum":["draft","active","archived"],"description":"draft = not visible to any AI client; active = published; archived = kept, but served to no one."},"origin":{"type":"string","enum":["dashboard","mcp","library"],"description":"How the skill first arrived: dashboard (written or imported by a person), mcp (written by an AI client or with an API key) or library (installed from the library). A copy keeps its source's value."},"collection":{"type":"object","properties":{"id":{"type":"string","description":"The collection's id."},"slug":{"type":"string","description":"The collection's slug, the middle part of the tool name of every skill in it."},"name":{"type":"string","description":"The collection's display name."}},"required":["id","slug","name"],"additionalProperties":false,"description":"The collection the skill belongs to."},"library":{"type":"object","properties":{"library_id":{"type":"string","description":"The library entry's id."},"slug":{"type":"string","description":"The library entry's slug."},"name":{"type":"string","description":"The library entry's name."},"mode":{"type":"string","enum":["managed","copy"],"description":"managed = rewritten on every library publish and read-only here; copy = your own skill, which the library no longer changes."},"read_only":{"type":"boolean","description":"True for a managed install: its content cannot be edited here until it is made editable."},"installed_version":{"type":"integer","description":"The library version this skill carries. 0 when it was installed from an entry that was not published yet."},"current_version":{"type":"integer","description":"The latest version the library has published."},"library_status":{"type":"string","enum":["draft","published","retired"],"description":"The entry's state in the library. retired = FloConnector no longer maintains it."},"installed_at":{"type":"string","nullable":true,"description":"When the skill was installed from the library, ISO 8601."},"detached_at":{"type":"string","nullable":true,"description":"When a managed install was made editable, ISO 8601. Null if that never happened."},"update_available":{"type":"boolean","description":"True for a copy that sits behind the library's latest published version. Always false for a managed install."}},"required":["library_id","slug","name","mode","read_only","installed_version","current_version","library_status","installed_at","detached_at","update_available"],"additionalProperties":false,"nullable":true,"description":"The skill's link to the library entry it was installed from. Null for a skill that was not installed from the library."},"version":{"type":"integer","description":"The skill's current version number, or the version being shown when a past one was asked for."},"files":{"type":"array","items":{"type":"object","properties":{"folder":{"type":"string","enum":["references","scripts","assets"],"description":"The folder the file sits in: references, scripts or assets."},"name":{"type":"string","description":"The file name, extension included."},"path":{"type":"string","description":"<folder>/<name>: the path the body links to, and the one to send when changing the file."}},"required":["folder","name","path"],"additionalProperties":false},"description":"The skill's files, as paths."},"created_at":{"type":"string","description":"When the skill was created, ISO 8601."},"updated_at":{"type":"string","description":"When the skill last changed, ISO 8601."}},"required":["id","tool_name","slug","name","description","icon","status","origin","collection","library","version","files","created_at","updated_at"],"additionalProperties":false,"description":"The new copy, a draft in the destination collection."}},"required":["skill"],"additionalProperties":false}}}},"400":{"description":"validation: a field failed validation; `field` names it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"unauthorized: no key, or an unknown, revoked or expired key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"insufficient_scope: the key lacks the route's scope, named in `required`. Or forbidden, or plan_limit when the plan does not include the API.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"not_found: the thing is not in this workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"rate_limited: the key's per-minute budget is spent. Retry after `Retry-After` seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"collection":{"type":"string","minLength":1,"description":"The destination collection: id or slug."}},"required":["collection"],"additionalProperties":false},"example":{"collection":"smoke_target"}}}}}},"/v1/skills/{id}/versions":{"get":{"operationId":"skills.versions.list","summary":"A skill's version history","description":"Newest first, as summaries: who wrote each version, how it arrived, its note and the paths it changed, without the text. `limit` defaults to 20 and accepts up to 50. Read one version's body and files with `GET /v1/skills/{id}/versions/{version}`.","tags":["skills"],"x-scope":"skills.read","x-limit":"read","security":[{"bearerAuth":["skills.read"]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1,"description":"The skill: its id, its tool name (skill_<collection>_<skill>), collection/skill slugs, or a bare slug when only one skill carries it."},"description":"The skill: its id, its tool name (skill_<collection>_<skill>), collection/skill slugs, or a bare slug when only one skill carries it."},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":50,"description":"Default 20."},"description":"Default 20."}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"skill":{"type":"object","properties":{"id":{"type":"string","description":"The skill's id."},"tool_name":{"type":"string","description":"The tool an AI client calls to read the skill once it is published: skill_<collection slug>_<skill slug>."},"slug":{"type":"string","description":"The skill's slug, the last part of its tool name. Renaming the skill does not change it."},"name":{"type":"string","description":"The display name."},"description":{"type":"string","description":"When to use the skill. AI clients see it as the tool's description."},"icon":{"type":"string","nullable":true,"description":"The emoji mark shown in the dashboard. Null for the default mark."},"status":{"type":"string","enum":["draft","active","archived"],"description":"draft = not visible to any AI client; active = published; archived = kept, but served to no one."},"origin":{"type":"string","enum":["dashboard","mcp","library"],"description":"How the skill first arrived: dashboard (written or imported by a person), mcp (written by an AI client or with an API key) or library (installed from the library). A copy keeps its source's value."},"collection":{"type":"object","properties":{"id":{"type":"string","description":"The collection's id."},"slug":{"type":"string","description":"The collection's slug, the middle part of the tool name of every skill in it."},"name":{"type":"string","description":"The collection's display name."}},"required":["id","slug","name"],"additionalProperties":false,"description":"The collection the skill belongs to."},"library":{"type":"object","properties":{"library_id":{"type":"string","description":"The library entry's id."},"slug":{"type":"string","description":"The library entry's slug."},"name":{"type":"string","description":"The library entry's name."},"mode":{"type":"string","enum":["managed","copy"],"description":"managed = rewritten on every library publish and read-only here; copy = your own skill, which the library no longer changes."},"read_only":{"type":"boolean","description":"True for a managed install: its content cannot be edited here until it is made editable."},"installed_version":{"type":"integer","description":"The library version this skill carries. 0 when it was installed from an entry that was not published yet."},"current_version":{"type":"integer","description":"The latest version the library has published."},"library_status":{"type":"string","enum":["draft","published","retired"],"description":"The entry's state in the library. retired = FloConnector no longer maintains it."},"installed_at":{"type":"string","nullable":true,"description":"When the skill was installed from the library, ISO 8601."},"detached_at":{"type":"string","nullable":true,"description":"When a managed install was made editable, ISO 8601. Null if that never happened."},"update_available":{"type":"boolean","description":"True for a copy that sits behind the library's latest published version. Always false for a managed install."}},"required":["library_id","slug","name","mode","read_only","installed_version","current_version","library_status","installed_at","detached_at","update_available"],"additionalProperties":false,"nullable":true,"description":"The skill's link to the library entry it was installed from. Null for a skill that was not installed from the library."},"version":{"type":"integer","description":"The skill's current version number, or the version being shown when a past one was asked for."},"files":{"type":"array","items":{"type":"object","properties":{"folder":{"type":"string","enum":["references","scripts","assets"],"description":"The folder the file sits in: references, scripts or assets."},"name":{"type":"string","description":"The file name, extension included."},"path":{"type":"string","description":"<folder>/<name>: the path the body links to, and the one to send when changing the file."}},"required":["folder","name","path"],"additionalProperties":false},"description":"The skill's files, as paths."},"created_at":{"type":"string","description":"When the skill was created, ISO 8601."},"updated_at":{"type":"string","description":"When the skill last changed, ISO 8601."}},"required":["id","tool_name","slug","name","description","icon","status","origin","collection","library","version","files","created_at","updated_at"],"additionalProperties":false,"description":"The skill the history belongs to."},"versions":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"The version's id."},"version":{"type":"integer","description":"The version number, counting up from 1 for each skill."},"changelog":{"type":"string","nullable":true,"description":"The note saved with the version. Null when none was given."},"author":{"type":"string","nullable":true,"description":"The name, or failing that the email, of the person who wrote it. Null when no person is on record, as with a library update."},"source":{"type":"string","enum":["dashboard","mcp","import","restore","library"],"nullable":true,"description":"How the version arrived: dashboard (the editor), mcp (an AI client), import (a bundle import), restore (a restored version) or library (written from the library). Null on old versions saved before this was recorded."},"via":{"type":"string","nullable":true,"description":"A label for how it arrived, for display: the AI client's name on an mcp version, FloConnector library on a library one. Null otherwise."},"changed_paths":{"type":"array","items":{"type":"string"},"nullable":true,"description":"The documents this version changed: SKILL.md for the body, plus file paths. Null on old versions saved before this was recorded."},"body_length":{"type":"integer","description":"The length of the body at this version, in characters."},"created_at":{"type":"string","description":"When the version was saved, ISO 8601."}},"required":["id","version","changelog","author","source","via","changed_paths","body_length","created_at"],"additionalProperties":false},"description":"The versions, newest first, as many as limit allows."}},"required":["skill","versions"],"additionalProperties":false}}}},"400":{"description":"validation: a field failed validation; `field` names it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"unauthorized: no key, or an unknown, revoked or expired key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"insufficient_scope: the key lacks the route's scope, named in `required`. Or forbidden, or plan_limit when the plan does not include the API.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"not_found: the thing is not in this workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"rate_limited: the key's per-minute budget is spent. Retry after `Retry-After` seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/skills/{id}/versions/{version}":{"get":{"operationId":"skills.versions.get","summary":"Get one version of a skill","description":"A version is a snapshot of the whole skill, so this returns the body and every file as they stood then, with the author, how it arrived and its note. A version number the skill never had answers 404.","tags":["skills"],"x-scope":"skills.read","x-limit":"read","security":[{"bearerAuth":["skills.read"]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1,"description":"The skill: its id, its tool name (skill_<collection>_<skill>), collection/skill slugs, or a bare slug when only one skill carries it."},"description":"The skill: its id, its tool name (skill_<collection>_<skill>), collection/skill slugs, or a bare slug when only one skill carries it."},{"name":"version","in":"path","required":true,"schema":{"type":"integer","exclusiveMinimum":true,"minimum":0,"description":"A version number, 1 and up."},"description":"A version number, 1 and up."}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"version":{"type":"integer","description":"The version number."},"body":{"type":"string","description":"The body as it stood at this version."},"changelog":{"type":"string","nullable":true,"description":"The note saved with the version. Null when none was given."},"author":{"type":"string","nullable":true,"description":"The name, or failing that the email, of the person who wrote it. Null when no person is on record, as with a library update."},"source":{"type":"string","enum":["dashboard","mcp","import","restore","library"],"nullable":true,"description":"How the version arrived: dashboard (the editor), mcp (an AI client), import (a bundle import), restore (a restored version) or library (written from the library). Null on old versions saved before this was recorded."},"via":{"type":"string","nullable":true,"description":"A label for how it arrived, for display: the AI client's name on an mcp version, FloConnector library on a library one. Null otherwise."},"changed_paths":{"type":"array","items":{"type":"string"},"nullable":true,"description":"The documents this version changed: SKILL.md for the body, plus file paths. Null on old versions saved before this was recorded."},"files":{"type":"array","items":{"type":"object","properties":{"folder":{"type":"string","enum":["references","scripts","assets"],"description":"The folder the file sits in: references, scripts or assets."},"name":{"type":"string","description":"The file name, extension included."},"path":{"type":"string","description":"<folder>/<name>: the path the body links to, and the one to send when changing the file."},"content":{"type":"string","description":"The file's text at this version."}},"required":["folder","name","path","content"],"additionalProperties":false},"description":"Every file the skill carried at this version, with its text."},"created_at":{"type":"string","description":"When the version was saved, ISO 8601."}},"required":["version","body","changelog","author","source","via","changed_paths","files","created_at"],"additionalProperties":false}}}},"400":{"description":"validation: a field failed validation; `field` names it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"unauthorized: no key, or an unknown, revoked or expired key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"insufficient_scope: the key lacks the route's scope, named in `required`. Or forbidden, or plan_limit when the plan does not include the API.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"not_found: the thing is not in this workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"rate_limited: the key's per-minute budget is spent. Retry after `Retry-After` seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/skills/{id}/versions/{version}/restore":{"post":{"operationId":"skills.versions.restore","summary":"Restore a past version as a new revision","description":"The body and the whole file set of the chosen version are written back as a new version on top of the history: restoring version 3 over version 9 produces version 10, and nothing is removed from the history. Files added after the restored version are dropped from the skill. A managed library install answers 409 `read_only`.","tags":["skills"],"x-scope":"skills.write","x-limit":"write","security":[{"bearerAuth":["skills.write"]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1,"description":"The skill: its id, its tool name (skill_<collection>_<skill>), collection/skill slugs, or a bare slug when only one skill carries it."},"description":"The skill: its id, its tool name (skill_<collection>_<skill>), collection/skill slugs, or a bare slug when only one skill carries it."},{"name":"version","in":"path","required":true,"schema":{"type":"integer","exclusiveMinimum":true,"minimum":0,"description":"A version number, 1 and up."},"description":"A version number, 1 and up."}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"skill":{"type":"object","properties":{"id":{"type":"string","description":"The skill's id."},"tool_name":{"type":"string","description":"The tool an AI client calls to read the skill once it is published: skill_<collection slug>_<skill slug>."},"slug":{"type":"string","description":"The skill's slug, the last part of its tool name. Renaming the skill does not change it."},"name":{"type":"string","description":"The display name."},"description":{"type":"string","description":"When to use the skill. AI clients see it as the tool's description."},"icon":{"type":"string","nullable":true,"description":"The emoji mark shown in the dashboard. Null for the default mark."},"status":{"type":"string","enum":["draft","active","archived"],"description":"draft = not visible to any AI client; active = published; archived = kept, but served to no one."},"origin":{"type":"string","enum":["dashboard","mcp","library"],"description":"How the skill first arrived: dashboard (written or imported by a person), mcp (written by an AI client or with an API key) or library (installed from the library). A copy keeps its source's value."},"collection":{"type":"object","properties":{"id":{"type":"string","description":"The collection's id."},"slug":{"type":"string","description":"The collection's slug, the middle part of the tool name of every skill in it."},"name":{"type":"string","description":"The collection's display name."}},"required":["id","slug","name"],"additionalProperties":false,"description":"The collection the skill belongs to."},"library":{"type":"object","properties":{"library_id":{"type":"string","description":"The library entry's id."},"slug":{"type":"string","description":"The library entry's slug."},"name":{"type":"string","description":"The library entry's name."},"mode":{"type":"string","enum":["managed","copy"],"description":"managed = rewritten on every library publish and read-only here; copy = your own skill, which the library no longer changes."},"read_only":{"type":"boolean","description":"True for a managed install: its content cannot be edited here until it is made editable."},"installed_version":{"type":"integer","description":"The library version this skill carries. 0 when it was installed from an entry that was not published yet."},"current_version":{"type":"integer","description":"The latest version the library has published."},"library_status":{"type":"string","enum":["draft","published","retired"],"description":"The entry's state in the library. retired = FloConnector no longer maintains it."},"installed_at":{"type":"string","nullable":true,"description":"When the skill was installed from the library, ISO 8601."},"detached_at":{"type":"string","nullable":true,"description":"When a managed install was made editable, ISO 8601. Null if that never happened."},"update_available":{"type":"boolean","description":"True for a copy that sits behind the library's latest published version. Always false for a managed install."}},"required":["library_id","slug","name","mode","read_only","installed_version","current_version","library_status","installed_at","detached_at","update_available"],"additionalProperties":false,"nullable":true,"description":"The skill's link to the library entry it was installed from. Null for a skill that was not installed from the library."},"version":{"type":"integer","description":"The skill's current version number, or the version being shown when a past one was asked for."},"files":{"type":"array","items":{"type":"object","properties":{"folder":{"type":"string","enum":["references","scripts","assets"],"description":"The folder the file sits in: references, scripts or assets."},"name":{"type":"string","description":"The file name, extension included."},"path":{"type":"string","description":"<folder>/<name>: the path the body links to, and the one to send when changing the file."}},"required":["folder","name","path"],"additionalProperties":false},"description":"The skill's files, as paths."},"created_at":{"type":"string","description":"When the skill was created, ISO 8601."},"updated_at":{"type":"string","description":"When the skill last changed, ISO 8601."}},"required":["id","tool_name","slug","name","description","icon","status","origin","collection","library","version","files","created_at","updated_at"],"additionalProperties":false,"description":"The skill after the restore, at its new version."}},"required":["skill"],"additionalProperties":false}}}},"400":{"description":"validation: a field failed validation; `field` names it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"unauthorized: no key, or an unknown, revoked or expired key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"insufficient_scope: the key lacks the route's scope, named in `required`. Or forbidden, or plan_limit when the plan does not include the API.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"not_found: the thing is not in this workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"rate_limited: the key's per-minute budget is spent. Retry after `Retry-After` seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/skills/{id}/detach-library":{"post":{"operationId":"skills.detach_library","summary":"Make a managed library install editable","description":"Cuts the skill's link to the library: its content and history stay, it becomes an editable copy, and later library versions no longer change it. The link cannot be put back on this skill. A skill that is not a managed install answers 409 `conflict`.","tags":["skills"],"x-scope":"skills.write","x-limit":"write","security":[{"bearerAuth":["skills.write"]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1,"description":"The skill: its id, its tool name (skill_<collection>_<skill>), collection/skill slugs, or a bare slug when only one skill carries it."},"description":"The skill: its id, its tool name (skill_<collection>_<skill>), collection/skill slugs, or a bare slug when only one skill carries it."}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"skill":{"type":"object","properties":{"id":{"type":"string","description":"The skill's id."},"tool_name":{"type":"string","description":"The tool an AI client calls to read the skill once it is published: skill_<collection slug>_<skill slug>."},"slug":{"type":"string","description":"The skill's slug, the last part of its tool name. Renaming the skill does not change it."},"name":{"type":"string","description":"The display name."},"description":{"type":"string","description":"When to use the skill. AI clients see it as the tool's description."},"icon":{"type":"string","nullable":true,"description":"The emoji mark shown in the dashboard. Null for the default mark."},"status":{"type":"string","enum":["draft","active","archived"],"description":"draft = not visible to any AI client; active = published; archived = kept, but served to no one."},"origin":{"type":"string","enum":["dashboard","mcp","library"],"description":"How the skill first arrived: dashboard (written or imported by a person), mcp (written by an AI client or with an API key) or library (installed from the library). A copy keeps its source's value."},"collection":{"type":"object","properties":{"id":{"type":"string","description":"The collection's id."},"slug":{"type":"string","description":"The collection's slug, the middle part of the tool name of every skill in it."},"name":{"type":"string","description":"The collection's display name."}},"required":["id","slug","name"],"additionalProperties":false,"description":"The collection the skill belongs to."},"library":{"type":"object","properties":{"library_id":{"type":"string","description":"The library entry's id."},"slug":{"type":"string","description":"The library entry's slug."},"name":{"type":"string","description":"The library entry's name."},"mode":{"type":"string","enum":["managed","copy"],"description":"managed = rewritten on every library publish and read-only here; copy = your own skill, which the library no longer changes."},"read_only":{"type":"boolean","description":"True for a managed install: its content cannot be edited here until it is made editable."},"installed_version":{"type":"integer","description":"The library version this skill carries. 0 when it was installed from an entry that was not published yet."},"current_version":{"type":"integer","description":"The latest version the library has published."},"library_status":{"type":"string","enum":["draft","published","retired"],"description":"The entry's state in the library. retired = FloConnector no longer maintains it."},"installed_at":{"type":"string","nullable":true,"description":"When the skill was installed from the library, ISO 8601."},"detached_at":{"type":"string","nullable":true,"description":"When a managed install was made editable, ISO 8601. Null if that never happened."},"update_available":{"type":"boolean","description":"True for a copy that sits behind the library's latest published version. Always false for a managed install."}},"required":["library_id","slug","name","mode","read_only","installed_version","current_version","library_status","installed_at","detached_at","update_available"],"additionalProperties":false,"nullable":true,"description":"The skill's link to the library entry it was installed from. Null for a skill that was not installed from the library."},"version":{"type":"integer","description":"The skill's current version number, or the version being shown when a past one was asked for."},"files":{"type":"array","items":{"type":"object","properties":{"folder":{"type":"string","enum":["references","scripts","assets"],"description":"The folder the file sits in: references, scripts or assets."},"name":{"type":"string","description":"The file name, extension included."},"path":{"type":"string","description":"<folder>/<name>: the path the body links to, and the one to send when changing the file."}},"required":["folder","name","path"],"additionalProperties":false},"description":"The skill's files, as paths."},"created_at":{"type":"string","description":"When the skill was created, ISO 8601."},"updated_at":{"type":"string","description":"When the skill last changed, ISO 8601."}},"required":["id","tool_name","slug","name","description","icon","status","origin","collection","library","version","files","created_at","updated_at"],"additionalProperties":false,"description":"The skill after the change, now an editable copy."}},"required":["skill"],"additionalProperties":false}}}},"400":{"description":"validation: a field failed validation; `field` names it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"unauthorized: no key, or an unknown, revoked or expired key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"insufficient_scope: the key lacks the route's scope, named in `required`. Or forbidden, or plan_limit when the plan does not include the API.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"not_found: the thing is not in this workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"rate_limited: the key's per-minute budget is spent. Retry after `Retry-After` seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/skills/{id}/export":{"get":{"operationId":"skills.export","summary":"Export a skill as an Agent Skills bundle","description":"Returns the bundle as JSON, not as a zip: a `directory` name and every file with its path and text, `SKILL.md` first with its frontmatter filled in. Write the files out under that directory and zip it for a client that installs bundles. The export is the current version, whatever the skill's status.","tags":["skills"],"x-scope":"skills.read","x-limit":"read","security":[{"bearerAuth":["skills.read"]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1,"description":"The skill: its id, its tool name (skill_<collection>_<skill>), collection/skill slugs, or a bare slug when only one skill carries it."},"description":"The skill: its id, its tool name (skill_<collection>_<skill>), collection/skill slugs, or a bare slug when only one skill carries it."}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"directory":{"type":"string","description":"The bundle's directory name: the skill's slug with hyphens in place of underscores, as the Agent Skills format expects."},"files":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string","description":"The file's path inside the bundle, starting with the directory name."},"content":{"type":"string","description":"The file's text. SKILL.md opens with the frontmatter, then the body."}},"required":["path","content"],"additionalProperties":false},"description":"Every file in the bundle, SKILL.md first."}},"required":["directory","files"],"additionalProperties":false}}}},"400":{"description":"validation: a field failed validation; `field` names it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"unauthorized: no key, or an unknown, revoked or expired key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"insufficient_scope: the key lacks the route's scope, named in `required`. Or forbidden, or plan_limit when the plan does not include the API.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"not_found: the thing is not in this workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"rate_limited: the key's per-minute budget is spent. Retry after `Retry-After` seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/media":{"get":{"operationId":"media.list","summary":"List files","description":"Newest first, in one page of up to 200 files. There is no cursor: `total` counts every match, so narrow with the filters when it is larger than the page. A key sees every file in the workspace. `usage` reports the storage pool against the plan and what happens when it is full.","tags":["media"],"x-scope":"media.read","x-limit":"read","security":[{"bearerAuth":["media.read"]}],"parameters":[{"name":"q","in":"query","required":false,"schema":{"type":"string","maxLength":200,"description":"Search text, matched against file names and source labels, ignoring case."},"description":"Search text, matched against file names and source labels, ignoring case."},{"name":"kind","in":"query","required":false,"schema":{"type":"string","enum":["image","video","pdf","document","other"],"description":"Only files of this broad type. document covers Office files and text."},"description":"Only files of this broad type. document covers Office files and text."},{"name":"source","in":"query","required":false,"schema":{"type":"string","enum":["upload","tool","dashboard"],"description":"Where the files came from: an upload, a tool call (a vendor download), or the dashboard."},"description":"Where the files came from: an upload, a tool call (a vendor download), or the dashboard."},{"name":"folder","in":"query","required":false,"schema":{"anyOf":[{"type":"string","enum":["root"]},{"type":"string","format":"uuid"}],"description":"A folder id for files in that folder, or root for files in no folder. Omit for everywhere."},"description":"A folder id for files in that folder, or root for files in no folder. Omit for everywhere."},{"name":"pinned","in":"query","required":false,"schema":{"type":"string","enum":["1","true","0","false"],"description":"1 for pinned files only, 0 for unpinned only."},"description":"1 for pinned files only, 0 for unpinned only."},{"name":"shared","in":"query","required":false,"schema":{"type":"string","enum":["1","true","0","false"],"description":"1 for files visible to everyone in the workspace."},"description":"1 for files visible to everyone in the workspace."},{"name":"since","in":"query","required":false,"schema":{"type":"string","format":"date-time","description":"Only files that arrived after this ISO 8601 time."},"description":"Only files that arrived after this ISO 8601 time."},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":200,"description":"How many, newest first. Default 50, at most 200."},"description":"How many, newest first. Default 50, at most 200."}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"files":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"The file's id. A path takes this or the media number."},"media":{"type":"integer","description":"The file's media number in this workspace: what chats and tools call it."},"name":{"type":"string","description":"The file name, extension included."},"type":{"type":"string","description":"The content type (MIME), e.g. image/jpeg. Read from the file's bytes where they can settle it."},"kind":{"type":"string","enum":["image","video","pdf","document","other"],"description":"The file's broad type, read from its content type. document covers Office files and text."},"size":{"type":"integer","description":"Size in bytes."},"pinned":{"type":"boolean","description":"Whether the file is pinned. A pinned file is never removed to make room."},"pinned_at":{"type":"string","nullable":true,"description":"When the file was pinned, ISO 8601. Null when it is not pinned."},"shared":{"type":"boolean","description":"Whether every member of the workspace can see and use the file. Not a public link."},"shared_at":{"type":"string","nullable":true,"description":"When the file was opened to the workspace, ISO 8601. Null when it is not shared."},"source":{"type":"string","description":"Where the file came from, written for people, e.g. \"Uploaded with link: site photos\"."},"source_kind":{"type":"string","enum":["upload","tool","dashboard"],"description":"How the file arrived: upload (the uploader), tool (a tool call, such as a vendor download) or dashboard (the Media page)."},"owner":{"type":"object","properties":{"id":{"type":"string","description":"The member's user id."},"name":{"type":"string","nullable":true,"description":"Their display name. Null when they have not set one."},"email":{"type":"string","description":"Their email address."}},"required":["id","name","email"],"additionalProperties":false,"nullable":true,"description":"The member who owns the file. Null when it has no owner, as with a file uploaded under an API key."},"folder":{"type":"object","properties":{"id":{"type":"string","description":"The folder's id."},"name":{"type":"string","description":"The folder's name."}},"required":["id","name"],"additionalProperties":false,"nullable":true,"description":"The folder the file is in. Null at the root of Media."},"mine":{"type":"boolean","description":"Whether the caller owns the file. Always false for an API key: a key owns nothing and acts for the workspace."},"can_manage":{"type":"boolean","description":"Whether the caller may rename, move or delete the file. Pinning and sharing also need their own permission."},"arrived_at":{"type":"string","description":"When the file arrived in Media, ISO 8601."},"links":{"type":"integer","description":"How many live links the file has: made, not revoked and not expired."},"thumb_url":{"type":"string","nullable":true,"description":"A short-lived URL of a preview image: the file's preview frame when it has one, or the file itself when it is an image. Null when there is neither. It lasts minutes, so do not store it."}},"required":["id","media","name","type","kind","size","pinned","pinned_at","shared","shared_at","source","source_kind","owner","folder","mine","can_manage","arrived_at","links","thumb_url"],"additionalProperties":false,"description":"A file in Media."},"description":"One page of files."},"total":{"type":"integer","description":"How many files match the filters, which can be more than the page holds."},"usage":{"type":"object","properties":{"plan":{"type":"string","description":"The plan's name."},"pool_bytes":{"type":"integer","description":"Bytes in the pool: the combined size of every file the workspace holds."},"max_pool_bytes":{"type":"integer","nullable":true,"description":"The pool's size on this plan, in bytes. Null means unlimited."},"max_file_bytes":{"type":"integer","description":"The largest single file the plan accepts, in bytes."},"max_daily_bytes":{"type":"integer","nullable":true,"description":"Bytes the plan lets the workspace bring in per day, counted from midnight UTC. Null means no daily limit."},"today_bytes":{"type":"integer","description":"Bytes brought in since midnight UTC."},"files":{"type":"integer","description":"How many files the workspace holds."},"pinned_files":{"type":"integer","description":"How many of them are pinned."},"pinned_bytes":{"type":"integer","description":"Bytes held by pinned files."},"when_full":{"type":"string","enum":["make_room","stop"],"description":"What happens when the pool is full: make_room deletes the oldest unpinned files until the new one fits, stop refuses new files."},"paid":{"type":"boolean","description":"Whether the plan is a paid one. Links that last 7 days or never expire need it."},"next":{"type":"object","properties":{"name":{"type":"string","description":"The plan's name."},"max_pool_bytes":{"type":"integer","nullable":true,"description":"Its pool size in bytes. Null means unlimited."},"max_file_bytes":{"type":"integer","description":"The largest single file it accepts, in bytes."},"max_daily_bytes":{"type":"integer","nullable":true,"description":"Its daily limit in bytes. Null means none."}},"required":["name","max_pool_bytes","max_file_bytes","max_daily_bytes"],"additionalProperties":false,"nullable":true,"description":"The next plan up and its Media limits. Null on the top plan."}},"required":["plan","pool_bytes","max_pool_bytes","max_file_bytes","max_daily_bytes","today_bytes","files","pinned_files","pinned_bytes","when_full","paid","next"],"additionalProperties":false,"description":"The workspace's storage pool against its plan, and what happens when the pool is full."}},"required":["files","total","usage"],"additionalProperties":false}}}},"400":{"description":"validation: a field failed validation; `field` names it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"unauthorized: no key, or an unknown, revoked or expired key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"insufficient_scope: the key lacks the route's scope, named in `required`. Or forbidden, or plan_limit when the plan does not include the API.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"not_found: the thing is not in this workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"rate_limited: the key's per-minute budget is spent. Retry after `Retry-After` seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/media/uploads":{"post":{"operationId":"media.uploads.open","summary":"Open an uploader session","description":"The session takes up to 50 files for 30 minutes. `link` is an upload page for a person on any device. From code, each file is three calls on `api` with no auth header, because the token is the credential: `POST {api}/slots` with `name`, `type` and `size`, `PUT` the bytes to the `url` it returns, then `POST {api}/slots/{slot}/complete`, which answers with the media number. Files uploaded under a key have no owner and belong to the workspace.","tags":["media"],"x-scope":"media.write","x-limit":"write","security":[{"bearerAuth":["media.write"]}],"parameters":[],"responses":{"201":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"token":{"type":"string","description":"The session's token, returned this once. It is the credential for the upload page and the upload calls, so keep it private."},"link":{"type":"string","description":"The upload page, for a person on any device."},"api":{"type":"string","description":"The base URL of the upload calls made from code: request a slot, PUT the bytes, complete. No auth header: the token in it is the credential."},"expires_at":{"type":"string","description":"When the session closes, ISO 8601: 30 minutes after it opens."},"max_files":{"type":"integer","description":"How many files the session takes."},"max_file_bytes":{"type":"integer","description":"The largest single file the plan accepts, in bytes."},"accept":{"type":"array","items":{"type":"string"},"description":"The content types the uploader takes, e.g. image/jpeg."}},"required":["token","link","api","expires_at","max_files","max_file_bytes","accept"],"additionalProperties":false}}}},"400":{"description":"validation: a field failed validation; `field` names it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"unauthorized: no key, or an unknown, revoked or expired key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"insufficient_scope: the key lacks the route's scope, named in `required`. Or forbidden, or plan_limit when the plan does not include the API.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"not_found: the thing is not in this workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"rate_limited: the key's per-minute budget is spent. Retry after `Retry-After` seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"note":{"type":"string","maxLength":120,"description":"What the files are for, shown on the uploader and kept as each file's source label, e.g. \"job 4521 photos\"."}},"additionalProperties":false},"example":{"note":"job 4521 photos"}}}}}},"/v1/media/folders":{"get":{"operationId":"media.folders.list","summary":"List folders","description":"Every folder in the workspace in one flat list, sorted by name and not paged. Build the tree from `parent_id`, which is null at the root. `files` counts the files directly inside a folder, not those in its subfolders.","tags":["media"],"x-scope":"media.read","x-limit":"read","security":[{"bearerAuth":["media.read"]}],"parameters":[],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"folders":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"The folder's id."},"name":{"type":"string","description":"The folder's name."},"parent_id":{"type":"string","nullable":true,"description":"The id of the folder it sits in. Null at the root of Media."},"files":{"type":"integer","description":"How many files are directly inside, not counting those in subfolders."},"created_at":{"type":"string","description":"When the folder was made, ISO 8601."}},"required":["id","name","parent_id","files","created_at"],"additionalProperties":false,"description":"A folder in Media."},"description":"Every folder in the workspace, sorted by name."}},"required":["folders"],"additionalProperties":false}}}},"400":{"description":"validation: a field failed validation; `field` names it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"unauthorized: no key, or an unknown, revoked or expired key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"insufficient_scope: the key lacks the route's scope, named in `required`. Or forbidden, or plan_limit when the plan does not include the API.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"not_found: the thing is not in this workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"rate_limited: the key's per-minute budget is spent. Retry after `Retry-After` seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"post":{"operationId":"media.folders.create","summary":"Create a folder","description":"The folder is made at the root of Media, or inside `parent` when one is given. Folders only arrange files: they change nothing about who can see or use a file. Put a file in one with `PATCH /v1/media/{id}` and `folder`.","tags":["media"],"x-scope":"media.write","x-limit":"write","security":[{"bearerAuth":["media.write"]}],"parameters":[],"responses":{"201":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"folder":{"type":"object","properties":{"id":{"type":"string","description":"The folder's id."},"name":{"type":"string","description":"The folder's name."},"parent_id":{"type":"string","nullable":true,"description":"The id of the folder it sits in. Null at the root of Media."},"files":{"type":"integer","description":"How many files are directly inside, not counting those in subfolders."},"created_at":{"type":"string","description":"When the folder was made, ISO 8601."}},"required":["id","name","parent_id","files","created_at"],"additionalProperties":false,"description":"A folder in Media."}},"required":["folder"],"additionalProperties":false}}}},"400":{"description":"validation: a field failed validation; `field` names it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"unauthorized: no key, or an unknown, revoked or expired key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"insufficient_scope: the key lacks the route's scope, named in `required`. Or forbidden, or plan_limit when the plan does not include the API.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"not_found: the thing is not in this workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"rate_limited: the key's per-minute budget is spent. Retry after `Retry-After` seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":120,"description":"The folder's name."},"parent":{"type":"string","format":"uuid","nullable":true,"description":"The folder to make it inside; omit or null for the root of Media."}},"required":["name"],"additionalProperties":false},"example":{"name":"Site photos"}}}}}},"/v1/media/folders/{id}":{"patch":{"operationId":"media.folders.update","summary":"Rename or move a folder","description":"Send `name` to rename, `parent` to move, or both; `parent: null` moves the folder to the root of Media. Moving a folder into itself or one of its own subfolders is refused with `validation`.","tags":["media"],"x-scope":"media.manage","x-limit":"write","security":[{"bearerAuth":["media.manage"]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","description":"The folder's id, from GET /v1/media/folders."},"description":"The folder's id, from GET /v1/media/folders."}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"folder":{"type":"object","properties":{"id":{"type":"string","description":"The folder's id."},"name":{"type":"string","description":"The folder's name."},"parent_id":{"type":"string","nullable":true,"description":"The id of the folder it sits in. Null at the root of Media."},"files":{"type":"integer","description":"How many files are directly inside, not counting those in subfolders."},"created_at":{"type":"string","description":"When the folder was made, ISO 8601."}},"required":["id","name","parent_id","files","created_at"],"additionalProperties":false,"description":"A folder in Media."}},"required":["folder"],"additionalProperties":false}}}},"400":{"description":"validation: a field failed validation; `field` names it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"unauthorized: no key, or an unknown, revoked or expired key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"insufficient_scope: the key lacks the route's scope, named in `required`. Or forbidden, or plan_limit when the plan does not include the API.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"not_found: the thing is not in this workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"rate_limited: the key's per-minute budget is spent. Retry after `Retry-After` seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":120,"description":"A new name for the folder."},"parent":{"type":"string","format":"uuid","nullable":true,"description":"Move it under this folder; null moves it to the root. Never into itself or its own subtree."}},"additionalProperties":false},"example":{"name":"Site photos 2026"}}}}},"delete":{"operationId":"media.folders.delete","summary":"Delete a folder (its files move to the root)","description":"Its subfolders are deleted with it. No file is deleted: the files in the folder and in its subfolders move to the root of Media.","tags":["media"],"x-scope":"media.manage","x-limit":"write","security":[{"bearerAuth":["media.manage"]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","description":"The folder's id, from GET /v1/media/folders."},"description":"The folder's id, from GET /v1/media/folders."}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"deleted":{"type":"object","properties":{"id":{"type":"string","description":"The id it had."},"name":{"type":"string","description":"The name it had."}},"required":["id","name"],"additionalProperties":false,"description":"The folder that was deleted."}},"required":["deleted"],"additionalProperties":false}}}},"400":{"description":"validation: a field failed validation; `field` names it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"unauthorized: no key, or an unknown, revoked or expired key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"insufficient_scope: the key lacks the route's scope, named in `required`. Or forbidden, or plan_limit when the plan does not include the API.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"not_found: the thing is not in this workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"rate_limited: the key's per-minute budget is spent. Retry after `Retry-After` seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/media/links/{id}":{"delete":{"operationId":"media.links.revoke","summary":"Revoke a public link","description":"The address stops answering at once and the file is untouched. Revoking twice is safe: a link that is already revoked comes back as it is. `{id}` is the link's `id`, from `POST /v1/media/{id}/links` or the `links` of `GET /v1/media/{id}`.","tags":["media"],"x-scope":"media.write","x-limit":"write","security":[{"bearerAuth":["media.write"]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","description":"The link's id, as returned when the link was made or in the links of GET /v1/media/{id}."},"description":"The link's id, as returned when the link was made or in the links of GET /v1/media/{id}."}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"link":{"type":"object","properties":{"id":{"type":"string","description":"The link's id. Revoke the link with it."},"url":{"type":"string","description":"The public address. Anyone who has it can open the file while the link is live."},"lifetime":{"type":"string","enum":["10m","1h","24h","7d","never"],"description":"How long a link lasts: 10 minutes, 1 hour, 24 hours, 7 days, or never expires."},"expires_at":{"type":"string","nullable":true,"description":"When the link expires, ISO 8601. Null for a link that never expires."},"revoked_at":{"type":"string","nullable":true,"description":"When the link was revoked, ISO 8601. Null when it has not been."},"live":{"type":"boolean","description":"Whether the link still works: not revoked and not expired."},"views":{"type":"integer","description":"How many times the link has been opened."},"created_at":{"type":"string","description":"When the link was made, ISO 8601."},"created_by":{"type":"string","nullable":true,"description":"The user id of the member who made the link. Null for a link made with an API key."}},"required":["id","url","lifetime","expires_at","revoked_at","live","views","created_at","created_by"],"additionalProperties":false,"description":"A public link to one file."}},"required":["link"],"additionalProperties":false}}}},"400":{"description":"validation: a field failed validation; `field` names it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"unauthorized: no key, or an unknown, revoked or expired key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"insufficient_scope: the key lacks the route's scope, named in `required`. Or forbidden, or plan_limit when the plan does not include the API.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"not_found: the thing is not in this workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"rate_limited: the key's per-minute budget is spent. Retry after `Retry-After` seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/media/bundles":{"post":{"operationId":"media.bundles.create","summary":"Bundle files behind one download address","description":"`url` opens a page listing the files, each downloadable on its own, and `zip_url` is one zip of them all. Anyone with the address can open it for 24 hours: there is no lifetime to choose and nothing to revoke. Up to 50 files and 1 GB a bundle, refused whole when over.","tags":["media"],"x-scope":"media.write","x-limit":"write","security":[{"bearerAuth":["media.write"]}],"parameters":[],"responses":{"201":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"bundle":{"type":"object","properties":{"url":{"type":"string","description":"The bundle's page: it lists the files and downloads each one or the zip. Anyone with the address can open it."},"zip_url":{"type":"string","description":"One zip of every file in the bundle."},"name":{"type":"string","description":"The page title and the zip file's name."},"files":{"type":"array","items":{"type":"object","properties":{"media":{"type":"integer","description":"The file's media number."},"name":{"type":"string","description":"The file name."},"type":{"type":"string","description":"The content type (MIME)."},"size":{"type":"integer","description":"Size in bytes."}},"required":["media","name","type","size"],"additionalProperties":false},"description":"The files in the bundle, in the order they were given."},"total_bytes":{"type":"integer","description":"The combined size of the files, in bytes."},"expires_at":{"type":"string","description":"When the address stops working, ISO 8601: 24 hours after the bundle was made."},"downloads":{"type":"integer","description":"How many times the zip has been downloaded."},"created_at":{"type":"string","description":"When the bundle was made, ISO 8601."}},"required":["url","zip_url","name","files","total_bytes","expires_at","downloads","created_at"],"additionalProperties":false,"description":"A bundle: several files behind one address for 24 hours."}},"required":["bundle"],"additionalProperties":false}}}},"400":{"description":"validation: a field failed validation; `field` names it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"unauthorized: no key, or an unknown, revoked or expired key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"insufficient_scope: the key lacks the route's scope, named in `required`. Or forbidden, or plan_limit when the plan does not include the API.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"not_found: the thing is not in this workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"rate_limited: the key's per-minute budget is spent. Retry after `Retry-After` seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"media":{"type":"array","items":{"type":"integer","minimum":1,"maximum":2147483647,"description":"The file's media number, as shown by flc_media_list or returned by the tool that produced it."},"minItems":1,"maxItems":50,"description":"The media numbers to bundle, in the order they should list. 1 to 50."},"name":{"type":"string","maxLength":80,"description":"The page title and the zip file's name, e.g. \"Job 4521 photos\". Default \"FloConnector files\"."}},"required":["media"],"additionalProperties":false},"example":{"media":[1],"name":"Site photos"}}}}}},"/v1/media/{id}":{"get":{"operationId":"media.get","summary":"Get a file","description":"`{id}` takes the media number or the file's id. The reply lists every link made on the file, live, expired and revoked, and with `link=1` adds a 10-minute link to the file itself for a destination that fetches by URL. A file the caller cannot use answers `not_found`, never `forbidden`.","tags":["media"],"x-scope":"media.read","x-limit":"read","security":[{"bearerAuth":["media.read"]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"anyOf":[{"type":"integer","minimum":1,"maximum":2147483647},{"type":"string","format":"uuid"}],"description":"The file: its media number, or its id."},"description":"The file: its media number, or its id."},{"name":"link","in":"query","required":false,"schema":{"type":"string","enum":["1","true","0","false"],"description":"1 also returns a 10-minute download link to the file."},"description":"1 also returns a 10-minute download link to the file."}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"file":{"type":"object","properties":{"id":{"type":"string","description":"The file's id. A path takes this or the media number."},"media":{"type":"integer","description":"The file's media number in this workspace: what chats and tools call it."},"name":{"type":"string","description":"The file name, extension included."},"type":{"type":"string","description":"The content type (MIME), e.g. image/jpeg. Read from the file's bytes where they can settle it."},"kind":{"type":"string","enum":["image","video","pdf","document","other"],"description":"The file's broad type, read from its content type. document covers Office files and text."},"size":{"type":"integer","description":"Size in bytes."},"pinned":{"type":"boolean","description":"Whether the file is pinned. A pinned file is never removed to make room."},"pinned_at":{"type":"string","nullable":true,"description":"When the file was pinned, ISO 8601. Null when it is not pinned."},"shared":{"type":"boolean","description":"Whether every member of the workspace can see and use the file. Not a public link."},"shared_at":{"type":"string","nullable":true,"description":"When the file was opened to the workspace, ISO 8601. Null when it is not shared."},"source":{"type":"string","description":"Where the file came from, written for people, e.g. \"Uploaded with link: site photos\"."},"source_kind":{"type":"string","enum":["upload","tool","dashboard"],"description":"How the file arrived: upload (the uploader), tool (a tool call, such as a vendor download) or dashboard (the Media page)."},"owner":{"type":"object","properties":{"id":{"type":"string","description":"The member's user id."},"name":{"type":"string","nullable":true,"description":"Their display name. Null when they have not set one."},"email":{"type":"string","description":"Their email address."}},"required":["id","name","email"],"additionalProperties":false,"nullable":true,"description":"The member who owns the file. Null when it has no owner, as with a file uploaded under an API key."},"folder":{"type":"object","properties":{"id":{"type":"string","description":"The folder's id."},"name":{"type":"string","description":"The folder's name."}},"required":["id","name"],"additionalProperties":false,"nullable":true,"description":"The folder the file is in. Null at the root of Media."},"mine":{"type":"boolean","description":"Whether the caller owns the file. Always false for an API key: a key owns nothing and acts for the workspace."},"can_manage":{"type":"boolean","description":"Whether the caller may rename, move or delete the file. Pinning and sharing also need their own permission."},"arrived_at":{"type":"string","description":"When the file arrived in Media, ISO 8601."},"links":{"type":"integer","description":"How many live links the file has: made, not revoked and not expired."},"thumb_url":{"type":"string","nullable":true,"description":"A short-lived URL of a preview image: the file's preview frame when it has one, or the file itself when it is an image. Null when there is neither. It lasts minutes, so do not store it."}},"required":["id","media","name","type","kind","size","pinned","pinned_at","shared","shared_at","source","source_kind","owner","folder","mine","can_manage","arrived_at","links","thumb_url"],"additionalProperties":false,"description":"A file in Media."},"links":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"The link's id. Revoke the link with it."},"url":{"type":"string","description":"The public address. Anyone who has it can open the file while the link is live."},"lifetime":{"type":"string","enum":["10m","1h","24h","7d","never"],"description":"How long a link lasts: 10 minutes, 1 hour, 24 hours, 7 days, or never expires."},"expires_at":{"type":"string","nullable":true,"description":"When the link expires, ISO 8601. Null for a link that never expires."},"revoked_at":{"type":"string","nullable":true,"description":"When the link was revoked, ISO 8601. Null when it has not been."},"live":{"type":"boolean","description":"Whether the link still works: not revoked and not expired."},"views":{"type":"integer","description":"How many times the link has been opened."},"created_at":{"type":"string","description":"When the link was made, ISO 8601."},"created_by":{"type":"string","nullable":true,"description":"The user id of the member who made the link. Null for a link made with an API key."}},"required":["id","url","lifetime","expires_at","revoked_at","live","views","created_at","created_by"],"additionalProperties":false,"description":"A public link to one file."},"description":"Every link made on the file, newest first: live, expired and revoked."},"link":{"type":"object","properties":{"url":{"type":"string","description":"A URL that serves the file until it expires. Not a public link: it is not listed in links and cannot be revoked."},"expires_at":{"type":"string","description":"When it stops working, ISO 8601."}},"required":["url","expires_at"],"additionalProperties":false,"description":"A 10-minute link to the file itself. Present only when link=1 was sent."}},"required":["file","links"],"additionalProperties":false}}}},"400":{"description":"validation: a field failed validation; `field` names it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"unauthorized: no key, or an unknown, revoked or expired key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"insufficient_scope: the key lacks the route's scope, named in `required`. Or forbidden, or plan_limit when the plan does not include the API.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"not_found: the thing is not in this workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"rate_limited: the key's per-minute budget is spent. Retry after `Retry-After` seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"patch":{"operationId":"media.update","summary":"Rename, pin, share or move a file","description":"Send only the fields to change. `pinned` keeps a file from being removed to make room when the pool is full; `shared` opens it to every member of the workspace and is not a public link. A new `name` without an extension keeps the old one. Fields are applied in turn (`pinned`, `shared`, `name`, `folder`), so a refusal on one leaves the earlier ones changed.","tags":["media"],"x-scope":"media.write","x-limit":"write","security":[{"bearerAuth":["media.write"]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"anyOf":[{"type":"integer","minimum":1,"maximum":2147483647},{"type":"string","format":"uuid"}],"description":"The file: its media number, or its id."},"description":"The file: its media number, or its id."}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"file":{"type":"object","properties":{"id":{"type":"string","description":"The file's id. A path takes this or the media number."},"media":{"type":"integer","description":"The file's media number in this workspace: what chats and tools call it."},"name":{"type":"string","description":"The file name, extension included."},"type":{"type":"string","description":"The content type (MIME), e.g. image/jpeg. Read from the file's bytes where they can settle it."},"kind":{"type":"string","enum":["image","video","pdf","document","other"],"description":"The file's broad type, read from its content type. document covers Office files and text."},"size":{"type":"integer","description":"Size in bytes."},"pinned":{"type":"boolean","description":"Whether the file is pinned. A pinned file is never removed to make room."},"pinned_at":{"type":"string","nullable":true,"description":"When the file was pinned, ISO 8601. Null when it is not pinned."},"shared":{"type":"boolean","description":"Whether every member of the workspace can see and use the file. Not a public link."},"shared_at":{"type":"string","nullable":true,"description":"When the file was opened to the workspace, ISO 8601. Null when it is not shared."},"source":{"type":"string","description":"Where the file came from, written for people, e.g. \"Uploaded with link: site photos\"."},"source_kind":{"type":"string","enum":["upload","tool","dashboard"],"description":"How the file arrived: upload (the uploader), tool (a tool call, such as a vendor download) or dashboard (the Media page)."},"owner":{"type":"object","properties":{"id":{"type":"string","description":"The member's user id."},"name":{"type":"string","nullable":true,"description":"Their display name. Null when they have not set one."},"email":{"type":"string","description":"Their email address."}},"required":["id","name","email"],"additionalProperties":false,"nullable":true,"description":"The member who owns the file. Null when it has no owner, as with a file uploaded under an API key."},"folder":{"type":"object","properties":{"id":{"type":"string","description":"The folder's id."},"name":{"type":"string","description":"The folder's name."}},"required":["id","name"],"additionalProperties":false,"nullable":true,"description":"The folder the file is in. Null at the root of Media."},"mine":{"type":"boolean","description":"Whether the caller owns the file. Always false for an API key: a key owns nothing and acts for the workspace."},"can_manage":{"type":"boolean","description":"Whether the caller may rename, move or delete the file. Pinning and sharing also need their own permission."},"arrived_at":{"type":"string","description":"When the file arrived in Media, ISO 8601."},"links":{"type":"integer","description":"How many live links the file has: made, not revoked and not expired."},"thumb_url":{"type":"string","nullable":true,"description":"A short-lived URL of a preview image: the file's preview frame when it has one, or the file itself when it is an image. Null when there is neither. It lasts minutes, so do not store it."}},"required":["id","media","name","type","kind","size","pinned","pinned_at","shared","shared_at","source","source_kind","owner","folder","mine","can_manage","arrived_at","links","thumb_url"],"additionalProperties":false,"description":"A file in Media."}},"required":["file"],"additionalProperties":false}}}},"400":{"description":"validation: a field failed validation; `field` names it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"unauthorized: no key, or an unknown, revoked or expired key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"insufficient_scope: the key lacks the route's scope, named in `required`. Or forbidden, or plan_limit when the plan does not include the API.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"not_found: the thing is not in this workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"rate_limited: the key's per-minute budget is spent. Retry after `Retry-After` seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"pinned":{"type":"boolean","description":"true to pin (never evicted), false to unpin."},"shared":{"type":"boolean","description":"true makes the file visible to everyone in the workspace (they can see and use it); false keeps it to its owner and admins. Not a link."},"name":{"type":"string","minLength":1,"maxLength":200,"description":"A new file name. The original extension is kept when the new name has none; vendors read the type from it."},"folder":{"type":"string","format":"uuid","nullable":true,"description":"Move the file into this folder; null moves it to the root of Media."}},"additionalProperties":false},"example":{"pinned":true}}}}},"delete":{"operationId":"media.delete","summary":"Delete a file","description":"Cannot be undone: the file is removed from storage and every link to it stops working. A pinned file is refused with `validation` until the body carries `confirm: \"delete\"`; an unpinned file goes at once. The media number is not reused.","tags":["media"],"x-scope":"media.write","x-limit":"write","security":[{"bearerAuth":["media.write"]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"anyOf":[{"type":"integer","minimum":1,"maximum":2147483647},{"type":"string","format":"uuid"}],"description":"The file: its media number, or its id."},"description":"The file: its media number, or its id."}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"deleted":{"type":"object","properties":{"media":{"type":"integer","description":"The media number it had. The number is not reused."},"name":{"type":"string","description":"The file name."},"type":{"type":"string","description":"The content type (MIME)."},"size":{"type":"integer","description":"Size in bytes."}},"required":["media","name","type","size"],"additionalProperties":false,"description":"The file that was deleted."}},"required":["deleted"],"additionalProperties":false}}}},"400":{"description":"validation: a field failed validation; `field` names it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"unauthorized: no key, or an unknown, revoked or expired key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"insufficient_scope: the key lacks the route's scope, named in `required`. Or forbidden, or plan_limit when the plan does not include the API.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"not_found: the thing is not in this workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"rate_limited: the key's per-minute budget is spent. Retry after `Retry-After` seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"confirm":{"type":"string","enum":["delete"],"description":"Required to delete a PINNED file. Pass the word delete once the user has confirmed."}},"additionalProperties":false},"example":{}}}}}},"/v1/media/{id}/download":{"get":{"operationId":"media.download","summary":"Download a file (redirect to storage)","description":"Answers 302 to a storage URL that serves the file as an attachment. Follow the redirect straight away: the URL lasts 5 minutes and is not for keeping. For an address to hand to someone else, make a link with `POST /v1/media/{id}/links`.","tags":["media"],"x-scope":"media.read","x-limit":"read","x-produces":"application/octet-stream","security":[{"bearerAuth":["media.read"]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"anyOf":[{"type":"integer","minimum":1,"maximum":2147483647},{"type":"string","format":"uuid"}],"description":"The file: its media number, or its id."},"description":"The file: its media number, or its id."}],"responses":{"302":{"description":"Found: a redirect to the file. Follow `Location`.","headers":{"Location":{"schema":{"type":"string","format":"uri"},"description":"A short-lived storage URL that serves the file."}}},"400":{"description":"validation: a field failed validation; `field` names it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"unauthorized: no key, or an unknown, revoked or expired key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"insufficient_scope: the key lacks the route's scope, named in `required`. Or forbidden, or plan_limit when the plan does not include the API.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"not_found: the thing is not in this workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"rate_limited: the key's per-minute budget is spent. Retry after `Retry-After` seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/media/{id}/links":{"post":{"operationId":"media.links.create","summary":"Make a public link to a file","description":"Anyone with the address can open the file, in the workspace or not, until the link expires or is revoked. `lifetime` is `10m`, `1h`, `24h`, `7d` or `never` and defaults to `24h`; `7d` and `never` need a paid plan and are refused with `plan_limit` without one. Deleting the file ends every link to it. Revoke one early with `DELETE /v1/media/links/{id}`.","tags":["media"],"x-scope":"media.write","x-limit":"write","security":[{"bearerAuth":["media.write"]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"anyOf":[{"type":"integer","minimum":1,"maximum":2147483647},{"type":"string","format":"uuid"}],"description":"The file: its media number, or its id."},"description":"The file: its media number, or its id."}],"responses":{"201":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"link":{"type":"object","properties":{"id":{"type":"string","description":"The link's id. Revoke the link with it."},"url":{"type":"string","description":"The public address. Anyone who has it can open the file while the link is live."},"lifetime":{"type":"string","enum":["10m","1h","24h","7d","never"],"description":"How long a link lasts: 10 minutes, 1 hour, 24 hours, 7 days, or never expires."},"expires_at":{"type":"string","nullable":true,"description":"When the link expires, ISO 8601. Null for a link that never expires."},"revoked_at":{"type":"string","nullable":true,"description":"When the link was revoked, ISO 8601. Null when it has not been."},"live":{"type":"boolean","description":"Whether the link still works: not revoked and not expired."},"views":{"type":"integer","description":"How many times the link has been opened."},"created_at":{"type":"string","description":"When the link was made, ISO 8601."},"created_by":{"type":"string","nullable":true,"description":"The user id of the member who made the link. Null for a link made with an API key."}},"required":["id","url","lifetime","expires_at","revoked_at","live","views","created_at","created_by"],"additionalProperties":false,"description":"A public link to one file."}},"required":["link"],"additionalProperties":false}}}},"400":{"description":"validation: a field failed validation; `field` names it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"unauthorized: no key, or an unknown, revoked or expired key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"insufficient_scope: the key lacks the route's scope, named in `required`. Or forbidden, or plan_limit when the plan does not include the API.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"not_found: the thing is not in this workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"rate_limited: the key's per-minute budget is spent. Retry after `Retry-After` seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"lifetime":{"type":"string","enum":["10m","1h","24h","7d","never"],"description":"How long the link lasts: 10m, 1h, 24h, 7d or never. Default 24h. 7d and never need a paid plan and media.links."}},"additionalProperties":false},"example":{"lifetime":"1h"}}}}}},"/v1/connectors":{"get":{"operationId":"connectors.list","summary":"The connector directory","description":"Every connector in the catalog as this workspace sees it. `connected` says whether the workspace already holds an active connection, `is_premium` marks the ones that need the Pro or Scale plan, and `max_connections` is 1 where a workspace may hold only one. Pass a connector's `vendor` slug to `POST /v1/connections` to connect it.","tags":["connectors"],"x-scope":"connectors.read","x-limit":"read","security":[{"bearerAuth":["connectors.read"]}],"parameters":[],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"connectors":{"type":"array","items":{"type":"object","properties":{"vendor":{"type":"string","description":"The connector's slug, e.g. `xero`. Use it wherever a `vendor` is asked for."},"ticker":{"type":"string","description":"A three-letter short code for the connector, e.g. `xro` for Xero."},"name":{"type":"string","description":"The connector's display name, e.g. Xero."},"category":{"type":"string","description":"The directory category it is filed under, e.g. `accounting`, `crm` or `email`."},"status":{"type":"string","enum":["available","beta","coming_soon","disabled"],"description":"Where the connector stands. `available` and `beta` can both be connected (a beta connector is newer and still proving itself). `coming_soon` is listed but cannot be connected yet. `disabled` is switched off."},"provider":{"type":"string","enum":["native","composio","first_party"],"description":"Who runs the connector's calls: `native` (FloConnector's own integration), `composio`, or `first_party` (FloConnector's own tools, with no vendor behind them)."},"logo_url":{"type":"string","nullable":true,"description":"The connector's logo: an absolute URL, or a path on the API's origin. Null when it has none."},"is_premium":{"type":"boolean","description":"True when connecting it needs the Pro or Scale plan."},"staff_only":{"type":"boolean","description":"True for a connector only FloConnector staff can use. A customer's listing never carries one."},"max_connections":{"type":"integer","nullable":true,"description":"How many connections one workspace may hold to this vendor: 1 for a single-connection connector, null for no limit."},"scopes":{"type":"string","nullable":true,"description":"The OAuth scopes FloConnector asks the vendor for at connect, space-delimited. Null when it requests none itself, as for every `composio` connector."},"configured":{"type":"boolean","description":"True when this FloConnector server is set up to connect it. False means it cannot be connected here yet."},"connect_path":{"type":"string","description":"The path the dashboard uses to start this connect. API callers use `POST /v1/connections` instead."},"connected":{"type":"boolean","description":"True when this workspace holds an active connection to it."},"tool_count":{"type":"integer","description":"How many tools the connector offers."}},"required":["vendor","ticker","name","category","status","provider","logo_url","is_premium","staff_only","max_connections","scopes","configured","connect_path","connected","tool_count"],"additionalProperties":true},"description":"Every connector in the catalog, as this workspace sees it."}},"required":["connectors"],"additionalProperties":false}}}},"400":{"description":"validation: a field failed validation; `field` names it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"unauthorized: no key, or an unknown, revoked or expired key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"insufficient_scope: the key lacks the route's scope, named in `required`. Or forbidden, or plan_limit when the plan does not include the API.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"not_found: the thing is not in this workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"rate_limited: the key's per-minute budget is spent. Retry after `Retry-After` seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/connectors/{vendor}/tools":{"get":{"operationId":"connectors.tools.list","summary":"A connector's tools","description":"Every tool the connector offers, with whether it only reads. `enabled` shows the root selection of the workspace's active connection to it, and reads as on for every tool when nothing is connected. Use the names in the `tools` list of a connect or a profile; for one connection's own selection, call `GET /v1/connections/{id}/tools`.","tags":["connectors"],"x-scope":"connectors.read","x-limit":"read","security":[{"bearerAuth":["connectors.read"]}],"parameters":[{"name":"vendor","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":60,"description":"The connector's vendor slug, e.g. xero or gmail."},"description":"The connector's vendor slug, e.g. xero or gmail."}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"tools":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","description":"The tool's name as an AI client calls it, e.g. `xero_list_invoices`. Use it in every `tools` list."},"title":{"type":"string","description":"A short title for people."},"description":{"type":"string","description":"What the tool does. This is the text an AI client reads."},"docs_md":{"type":"string","nullable":true,"description":"Longer documentation in Markdown, for people. Null when the tool has none."},"plan":{"type":"string","description":"The tool's plan tier: `free` or `pro`."},"sensitive":{"type":"boolean","description":"True for a destructive or high-impact tool."},"read_only":{"type":"boolean","description":"True when the tool only reads. A read-only profile or connection serves only these."},"has_panel":{"type":"boolean","description":"True when the tool shows an interactive panel in AI clients that support them (MCP Apps). A panel appears only while the tool is listed, so search mode pins these by default."},"enabled":{"type":"boolean","description":"Whether the tool is on in the connection's root selection, which every profile subsets. With nothing connected, the default: on."}},"required":["name","title","description","docs_md","plan","sensitive","read_only","has_panel","enabled"],"additionalProperties":false},"description":"The connector's tools, each with whether it is enabled for this workspace."}},"required":["tools"],"additionalProperties":false}}}},"400":{"description":"validation: a field failed validation; `field` names it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"unauthorized: no key, or an unknown, revoked or expired key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"insufficient_scope: the key lacks the route's scope, named in `required`. Or forbidden, or plan_limit when the plan does not include the API.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"not_found: the thing is not in this workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"rate_limited: the key's per-minute budget is spent. Retry after `Retry-After` seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/connections":{"get":{"operationId":"connections.list","summary":"List connections","description":"Every vendor account connected to the workspace, whatever its `status`. `new_tools` names tools the catalog added after the connection was made, and `upgrade` lists the scopes a reconnect would add and the tools they unlock.","tags":["connections"],"x-scope":"connections.read","x-limit":"read","security":[{"bearerAuth":["connections.read"]}],"parameters":[],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"connections":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"The connection's id."},"vendor":{"type":"string","description":"The connector's vendor slug, e.g. `xero`."},"org":{"type":"string","nullable":true,"description":"The best name for the connected account: `label`, else `resolved_name`, else `handle`. Null when none of them is set."},"label":{"type":"string","nullable":true,"description":"The name a person gave the account in FloConnector. Null when none is set."},"resolved_name":{"type":"string","nullable":true,"description":"The vendor's own name for the account, as FloConnector resolved it. Null when the vendor gave none."},"account_ref":{"type":"string","nullable":true,"description":"What tells this account apart from another of the same name: an email, a shop domain or a channel id. Null when none was found."},"handle":{"type":"string","nullable":true,"description":"A short, stable handle for this account among the workspace's connections to the same vendor. Null when it has none."},"provider":{"type":"string","enum":["native","composio","first_party"],"description":"Who runs the connection's calls: `native` (FloConnector's own integration), `composio`, or `first_party` (FloConnector's own tools, with no vendor behind them)."},"vendor_tenant_id":{"type":"string","description":"The vendor's own id for the connected organisation or account. Not a FloConnector id."},"status":{"type":"string","enum":["active","needs_reauth","revoked"],"description":"`active`: working. `needs_reauth`: the vendor no longer accepts the stored credential, and a person must reconnect to restore it. `revoked`: access was withdrawn."},"platform_billing_status":{"type":"string","enum":["not_required","active","pending","cancelled","frozen","unknown"],"description":"For a connector billed through the vendor's own marketplace, where that subscription stands: `active`, `pending` (installed, no subscription confirmed yet), `cancelled`, `frozen` (the vendor froze the account's billing) or `unknown` (the check failed). `not_required` for every other connector."},"platform_plan_handle":{"type":"string","nullable":true,"description":"The plan the account is on in the vendor's marketplace, as the vendor names it. Null when that does not apply."},"connected_at":{"type":"string","description":"When it was connected, as an ISO 8601 timestamp."},"connected_by":{"type":"string","nullable":true,"description":"The user id of the person who connected it. Null when that is not known."},"connected_by_email":{"type":"string","nullable":true,"description":"That person's email. Null when that is not known."},"new_tools":{"type":"array","items":{"type":"string"},"description":"Names of tools added to the catalog in the last 30 days, after this connection was made. They are on in the root selection automatically."},"upgrade":{"type":"object","properties":{"missing_scopes":{"type":"array","items":{"type":"string"},"description":"OAuth scopes the connector now asks for and this connection was never granted."},"locked_tools":{"type":"array","items":{"type":"string"},"description":"Tools that will not run until the connection is reconnected with those scopes."}},"required":["missing_scopes","locked_tools"],"additionalProperties":false,"nullable":true,"description":"What a reconnect would unlock. Null when it would unlock nothing."}},"required":["id","vendor","org","label","resolved_name","account_ref","handle","provider","vendor_tenant_id","status","platform_billing_status","platform_plan_handle","connected_at","connected_by","connected_by_email","new_tools","upgrade"],"additionalProperties":false},"description":"Every connection in the workspace."}},"required":["connections"],"additionalProperties":false}}}},"400":{"description":"validation: a field failed validation; `field` names it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"unauthorized: no key, or an unknown, revoked or expired key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"insufficient_scope: the key lacks the route's scope, named in `required`. Or forbidden, or plan_limit when the plan does not include the API.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"not_found: the thing is not in this workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"rate_limited: the key's per-minute budget is spent. Retry after `Retry-After` seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"post":{"operationId":"connections.create","summary":"Start connecting a vendor (a connect URL for a person)","description":"An API call cannot consent at a vendor, so this connects nothing by itself: it answers a `connect_url` for a person to open. With `email` it makes a connect link for that person, which needs the Pro or Scale plan and makes them a member of the workspace; poll `GET /v1/connections/pending/{id}` with the returned `pending_id` until `status` is `connected`. Without `email` the URL is the caller's own connect and needs a dashboard session, so an API key must send `email`.","tags":["connections"],"x-scope":"connections.write","x-limit":"write","security":[{"bearerAuth":["connections.write"]}],"parameters":[],"responses":{"201":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"mode":{"type":"string","enum":["link","self"],"description":"`link`: a connect link for the person named in `email`. `self`: the caller's own connect, with no `email` given."},"pending_id":{"type":"string","nullable":true,"description":"In `link` mode, the id to poll at `GET /v1/connections/pending/{id}`. Null in `self` mode: watch `GET /v1/connections` for the new connection instead."},"connect_url":{"type":"string","description":"The URL a person opens to connect the vendor. Nothing is connected until they do."},"vendor":{"type":"string","description":"The connector being connected."},"expires_at":{"type":"string","nullable":true,"description":"When the connect link stops working, as an ISO 8601 timestamp. Null for a link that never expires, and always null in `self` mode."},"how":{"type":"string","enum":["oauth","dashboard","vendor_install","link"],"description":"What opens at `connect_url`. `oauth`: the vendor's sign-in. `dashboard`: the dashboard's page for the connector, where a pasted credential or a site address is typed. `vendor_install`: the vendor's own install page, for a connector that installs from the vendor's side. `link`: the connect link page for the person in `email`."},"dashboard_url":{"type":"string","description":"The dashboard's page for this connector, where the same connect can be started by hand."}},"required":["mode","pending_id","connect_url","vendor","expires_at","how","dashboard_url"],"additionalProperties":false}}}},"400":{"description":"validation: a field failed validation; `field` names it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"unauthorized: no key, or an unknown, revoked or expired key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"insufficient_scope: the key lacks the route's scope, named in `required`. Or forbidden, or plan_limit when the plan does not include the API.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"not_found: the thing is not in this workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"rate_limited: the key's per-minute budget is spent. Retry after `Retry-After` seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"vendor":{"type":"string","minLength":1,"maxLength":60,"description":"The connector to connect, e.g. gmail."},"tools":{"type":"array","items":{"type":"string","minLength":1},"maxItems":2000,"description":"The tools to switch on once connected. Omit for the catalog default."},"email":{"type":"string","format":"email","description":"Who will consent at the vendor. Given: a connect link is made for that person (Pro+), and the page asks for this address. Omitted: the connect is YOURS, and connect_url opens your own sign-in at the vendor (a signed-in person only; an API key must give an email)."},"send_email":{"type":"boolean","description":"With `email`: true also emails the link to that person. Default false: you deliver the URL yourself."},"expires_in_hours":{"type":"integer","nullable":true,"description":"With `email`: 1, 24, 168, 336 or 720 hours; null = never. Default 336 (14 days)."}},"required":["vendor"],"additionalProperties":false},"example":{"vendor":"gmail","email":"ops@example.com","send_email":false}}}}}},"/v1/connections/pending/{id}":{"get":{"operationId":"connections.pending.get","summary":"Where a connect request stands","description":"Poll this after `POST /v1/connections` with an `email`. `status` moves from `pending` to `connected` once the person consents at the vendor, and `connection` is filled in then; `expired` and `revoked` mean nothing was connected. `connect_url` is returned only while the request is `pending`.","tags":["connections"],"x-scope":"connections.read","x-limit":"read","security":[{"bearerAuth":["connections.read"]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","description":"The pending id a POST /v1/connections answered with."},"description":"The pending id a POST /v1/connections answered with."}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","description":"The pending id: this vendor's request on the recipient's connect link."},"link_id":{"type":"string","description":"The connect link the request sits on. Each recipient address has one: revoke, resend or reset it through `/v1/links`."},"vendor":{"type":"string","description":"The connector being connected."},"status":{"type":"string","enum":["pending","connected","expired","revoked"],"description":"`pending`: nobody has consented at the vendor yet. `connected`: the consent landed. `expired`: the connect link ran out first. `revoked`: the connect link was revoked."},"connection":{"type":"object","properties":{"id":{"type":"string","description":"The connection's id."},"vendor":{"type":"string","description":"The connector's vendor slug, e.g. `xero`."},"org":{"type":"string","nullable":true,"description":"The best name for the connected account: `label`, else `resolved_name`, else `handle`. Null when none of them is set."},"label":{"type":"string","nullable":true,"description":"The name a person gave the account in FloConnector. Null when none is set."},"resolved_name":{"type":"string","nullable":true,"description":"The vendor's own name for the account, as FloConnector resolved it. Null when the vendor gave none."},"account_ref":{"type":"string","nullable":true,"description":"What tells this account apart from another of the same name: an email, a shop domain or a channel id. Null when none was found."},"handle":{"type":"string","nullable":true,"description":"A short, stable handle for this account among the workspace's connections to the same vendor. Null when it has none."},"provider":{"type":"string","enum":["native","composio","first_party"],"description":"Who runs the connection's calls: `native` (FloConnector's own integration), `composio`, or `first_party` (FloConnector's own tools, with no vendor behind them)."},"vendor_tenant_id":{"type":"string","description":"The vendor's own id for the connected organisation or account. Not a FloConnector id."},"status":{"type":"string","enum":["active","needs_reauth","revoked"],"description":"`active`: working. `needs_reauth`: the vendor no longer accepts the stored credential, and a person must reconnect to restore it. `revoked`: access was withdrawn."},"platform_billing_status":{"type":"string","enum":["not_required","active","pending","cancelled","frozen","unknown"],"description":"For a connector billed through the vendor's own marketplace, where that subscription stands: `active`, `pending` (installed, no subscription confirmed yet), `cancelled`, `frozen` (the vendor froze the account's billing) or `unknown` (the check failed). `not_required` for every other connector."},"platform_plan_handle":{"type":"string","nullable":true,"description":"The plan the account is on in the vendor's marketplace, as the vendor names it. Null when that does not apply."},"connected_at":{"type":"string","description":"When it was connected, as an ISO 8601 timestamp."},"connected_by":{"type":"string","nullable":true,"description":"The user id of the person who connected it. Null when that is not known."},"connected_by_email":{"type":"string","nullable":true,"description":"That person's email. Null when that is not known."},"new_tools":{"type":"array","items":{"type":"string"},"description":"Names of tools added to the catalog in the last 30 days, after this connection was made. They are on in the root selection automatically."},"upgrade":{"type":"object","properties":{"missing_scopes":{"type":"array","items":{"type":"string"},"description":"OAuth scopes the connector now asks for and this connection was never granted."},"locked_tools":{"type":"array","items":{"type":"string"},"description":"Tools that will not run until the connection is reconnected with those scopes."}},"required":["missing_scopes","locked_tools"],"additionalProperties":false,"nullable":true,"description":"What a reconnect would unlock. Null when it would unlock nothing."}},"required":["id","vendor","org","label","resolved_name","account_ref","handle","provider","vendor_tenant_id","status","platform_billing_status","platform_plan_handle","connected_at","connected_by","connected_by_email","new_tools","upgrade"],"additionalProperties":false,"nullable":true,"description":"The connection, once `status` is `connected`. Null until then."},"connect_url":{"type":"string","nullable":true,"description":"The live connect link while `status` is `pending`. Null once connected, expired or revoked."},"expires_at":{"type":"string","nullable":true,"description":"When the connect link stops working, as an ISO 8601 timestamp. Null for a link that never expires."},"created_at":{"type":"string","description":"When the recipient's connect link was first made, as an ISO 8601 timestamp."}},"required":["id","link_id","vendor","status","connection","connect_url","expires_at","created_at"],"additionalProperties":false}}}},"400":{"description":"validation: a field failed validation; `field` names it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"unauthorized: no key, or an unknown, revoked or expired key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"insufficient_scope: the key lacks the route's scope, named in `required`. Or forbidden, or plan_limit when the plan does not include the API.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"not_found: the thing is not in this workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"rate_limited: the key's per-minute budget is spent. Retry after `Retry-After` seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/connections/{id}":{"get":{"operationId":"connections.get","summary":"Get a connection","description":"Returns the same shape as an entry of `GET /v1/connections`, including `new_tools` and `upgrade`. Its tool selection is at `GET /v1/connections/{id}/tools`.","tags":["connections"],"x-scope":"connections.read","x-limit":"read","security":[{"bearerAuth":["connections.read"]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","description":"The connection's id."},"description":"The connection's id."}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"connection":{"type":"object","properties":{"id":{"type":"string","description":"The connection's id."},"vendor":{"type":"string","description":"The connector's vendor slug, e.g. `xero`."},"org":{"type":"string","nullable":true,"description":"The best name for the connected account: `label`, else `resolved_name`, else `handle`. Null when none of them is set."},"label":{"type":"string","nullable":true,"description":"The name a person gave the account in FloConnector. Null when none is set."},"resolved_name":{"type":"string","nullable":true,"description":"The vendor's own name for the account, as FloConnector resolved it. Null when the vendor gave none."},"account_ref":{"type":"string","nullable":true,"description":"What tells this account apart from another of the same name: an email, a shop domain or a channel id. Null when none was found."},"handle":{"type":"string","nullable":true,"description":"A short, stable handle for this account among the workspace's connections to the same vendor. Null when it has none."},"provider":{"type":"string","enum":["native","composio","first_party"],"description":"Who runs the connection's calls: `native` (FloConnector's own integration), `composio`, or `first_party` (FloConnector's own tools, with no vendor behind them)."},"vendor_tenant_id":{"type":"string","description":"The vendor's own id for the connected organisation or account. Not a FloConnector id."},"status":{"type":"string","enum":["active","needs_reauth","revoked"],"description":"`active`: working. `needs_reauth`: the vendor no longer accepts the stored credential, and a person must reconnect to restore it. `revoked`: access was withdrawn."},"platform_billing_status":{"type":"string","enum":["not_required","active","pending","cancelled","frozen","unknown"],"description":"For a connector billed through the vendor's own marketplace, where that subscription stands: `active`, `pending` (installed, no subscription confirmed yet), `cancelled`, `frozen` (the vendor froze the account's billing) or `unknown` (the check failed). `not_required` for every other connector."},"platform_plan_handle":{"type":"string","nullable":true,"description":"The plan the account is on in the vendor's marketplace, as the vendor names it. Null when that does not apply."},"connected_at":{"type":"string","description":"When it was connected, as an ISO 8601 timestamp."},"connected_by":{"type":"string","nullable":true,"description":"The user id of the person who connected it. Null when that is not known."},"connected_by_email":{"type":"string","nullable":true,"description":"That person's email. Null when that is not known."},"new_tools":{"type":"array","items":{"type":"string"},"description":"Names of tools added to the catalog in the last 30 days, after this connection was made. They are on in the root selection automatically."},"upgrade":{"type":"object","properties":{"missing_scopes":{"type":"array","items":{"type":"string"},"description":"OAuth scopes the connector now asks for and this connection was never granted."},"locked_tools":{"type":"array","items":{"type":"string"},"description":"Tools that will not run until the connection is reconnected with those scopes."}},"required":["missing_scopes","locked_tools"],"additionalProperties":false,"nullable":true,"description":"What a reconnect would unlock. Null when it would unlock nothing."}},"required":["id","vendor","org","label","resolved_name","account_ref","handle","provider","vendor_tenant_id","status","platform_billing_status","platform_plan_handle","connected_at","connected_by","connected_by_email","new_tools","upgrade"],"additionalProperties":false,"description":"The connection."}},"required":["connection"],"additionalProperties":false}}}},"400":{"description":"validation: a field failed validation; `field` names it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"unauthorized: no key, or an unknown, revoked or expired key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"insufficient_scope: the key lacks the route's scope, named in `required`. Or forbidden, or plan_limit when the plan does not include the API.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"not_found: the thing is not in this workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"rate_limited: the key's per-minute budget is spent. Retry after `Retry-After` seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"patch":{"operationId":"connections.update","summary":"Rename a connection","description":"Sets `label`, the name people see for the account in FloConnector. The vendor's own name stays in `resolved_name`, and `null` or an empty string clears the label so `org` falls back to it. Nothing else about the connection changes.","tags":["connections"],"x-scope":"connections.write","x-limit":"write","security":[{"bearerAuth":["connections.write"]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","description":"The connection's id."},"description":"The connection's id."}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"connection":{"type":"object","properties":{"id":{"type":"string","description":"The connection's id."},"vendor":{"type":"string","description":"The connector's vendor slug, e.g. `xero`."},"org":{"type":"string","nullable":true,"description":"The best name for the connected account: `label`, else `resolved_name`, else `handle`. Null when none of them is set."},"label":{"type":"string","nullable":true,"description":"The name a person gave the account in FloConnector. Null when none is set."},"resolved_name":{"type":"string","nullable":true,"description":"The vendor's own name for the account, as FloConnector resolved it. Null when the vendor gave none."},"account_ref":{"type":"string","nullable":true,"description":"What tells this account apart from another of the same name: an email, a shop domain or a channel id. Null when none was found."},"handle":{"type":"string","nullable":true,"description":"A short, stable handle for this account among the workspace's connections to the same vendor. Null when it has none."},"provider":{"type":"string","enum":["native","composio","first_party"],"description":"Who runs the connection's calls: `native` (FloConnector's own integration), `composio`, or `first_party` (FloConnector's own tools, with no vendor behind them)."},"vendor_tenant_id":{"type":"string","description":"The vendor's own id for the connected organisation or account. Not a FloConnector id."},"status":{"type":"string","enum":["active","needs_reauth","revoked"],"description":"`active`: working. `needs_reauth`: the vendor no longer accepts the stored credential, and a person must reconnect to restore it. `revoked`: access was withdrawn."},"platform_billing_status":{"type":"string","enum":["not_required","active","pending","cancelled","frozen","unknown"],"description":"For a connector billed through the vendor's own marketplace, where that subscription stands: `active`, `pending` (installed, no subscription confirmed yet), `cancelled`, `frozen` (the vendor froze the account's billing) or `unknown` (the check failed). `not_required` for every other connector."},"platform_plan_handle":{"type":"string","nullable":true,"description":"The plan the account is on in the vendor's marketplace, as the vendor names it. Null when that does not apply."},"connected_at":{"type":"string","description":"When it was connected, as an ISO 8601 timestamp."},"connected_by":{"type":"string","nullable":true,"description":"The user id of the person who connected it. Null when that is not known."},"connected_by_email":{"type":"string","nullable":true,"description":"That person's email. Null when that is not known."},"new_tools":{"type":"array","items":{"type":"string"},"description":"Names of tools added to the catalog in the last 30 days, after this connection was made. They are on in the root selection automatically."},"upgrade":{"type":"object","properties":{"missing_scopes":{"type":"array","items":{"type":"string"},"description":"OAuth scopes the connector now asks for and this connection was never granted."},"locked_tools":{"type":"array","items":{"type":"string"},"description":"Tools that will not run until the connection is reconnected with those scopes."}},"required":["missing_scopes","locked_tools"],"additionalProperties":false,"nullable":true,"description":"What a reconnect would unlock. Null when it would unlock nothing."}},"required":["id","vendor","org","label","resolved_name","account_ref","handle","provider","vendor_tenant_id","status","platform_billing_status","platform_plan_handle","connected_at","connected_by","connected_by_email","new_tools","upgrade"],"additionalProperties":false,"description":"The connection, after the change."}},"required":["connection"],"additionalProperties":false}}}},"400":{"description":"validation: a field failed validation; `field` names it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"unauthorized: no key, or an unknown, revoked or expired key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"insufficient_scope: the key lacks the route's scope, named in `required`. Or forbidden, or plan_limit when the plan does not include the API.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"not_found: the thing is not in this workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"rate_limited: the key's per-minute budget is spent. Retry after `Retry-After` seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"label":{"type":"string","maxLength":80,"nullable":true,"description":"A name for the connected account here. Null or empty falls back to the vendor's own name."}},"required":["label"],"additionalProperties":false},"example":{"label":"Main mailbox"}}}}},"delete":{"operationId":"connections.delete","summary":"Disconnect a vendor account","description":"The grant is revoked at the vendor where that is possible, the connection is deleted, and every profile that used it stops serving its tools at once. This cannot be undone: connecting again needs a fresh consent from a person and creates a new connection, which has to be added to those profiles again.","tags":["connections"],"x-scope":"connections.delete","x-dangerous":true,"x-limit":"write","security":[{"bearerAuth":["connections.delete"]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","description":"The connection's id."},"description":"The connection's id."}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true],"description":"Always true."}},"required":["ok"],"additionalProperties":false}}}},"400":{"description":"validation: a field failed validation; `field` names it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"unauthorized: no key, or an unknown, revoked or expired key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"insufficient_scope: the key lacks the route's scope, named in `required`. Or forbidden, or plan_limit when the plan does not include the API.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"not_found: the thing is not in this workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"rate_limited: the key's per-minute budget is spent. Retry after `Retry-After` seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/connections/{id}/tools":{"get":{"operationId":"connections.tools.list","summary":"A connection's tools and which are on","description":"Every tool the connection's connector offers, each with `enabled`: whether it is on in this connection's root selection. A profile can expose only tools that are on here. Change the selection with `PUT /v1/connections/{id}/tools`.","tags":["connections"],"x-scope":"connections.read","x-limit":"read","security":[{"bearerAuth":["connections.read"]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","description":"The connection's id."},"description":"The connection's id."}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"tools":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","description":"The tool's name as an AI client calls it, e.g. `xero_list_invoices`. Use it in every `tools` list."},"title":{"type":"string","description":"A short title for people."},"description":{"type":"string","description":"What the tool does. This is the text an AI client reads."},"docs_md":{"type":"string","nullable":true,"description":"Longer documentation in Markdown, for people. Null when the tool has none."},"plan":{"type":"string","description":"The tool's plan tier: `free` or `pro`."},"sensitive":{"type":"boolean","description":"True for a destructive or high-impact tool."},"read_only":{"type":"boolean","description":"True when the tool only reads. A read-only profile or connection serves only these."},"has_panel":{"type":"boolean","description":"True when the tool shows an interactive panel in AI clients that support them (MCP Apps). A panel appears only while the tool is listed, so search mode pins these by default."},"enabled":{"type":"boolean","description":"Whether the tool is on in the connection's root selection, which every profile subsets. With nothing connected, the default: on."}},"required":["name","title","description","docs_md","plan","sensitive","read_only","has_panel","enabled"],"additionalProperties":false},"description":"The vendor's tools, each with whether this connection makes it available."}},"required":["tools"],"additionalProperties":false}}}},"400":{"description":"validation: a field failed validation; `field` names it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"unauthorized: no key, or an unknown, revoked or expired key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"insufficient_scope: the key lacks the route's scope, named in `required`. Or forbidden, or plan_limit when the plan does not include the API.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"not_found: the thing is not in this workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"rate_limited: the key's per-minute budget is spent. Retry after `Retry-After` seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"put":{"operationId":"connections.tools.set","summary":"Set a connection's root tool selection","description":"Replaces the whole selection: exactly the named tools are on and every other tool is off, for every profile that uses the connection (a profile can only narrow it further). A name the connector does not have changes nothing and comes back in `ignored`, so a typo shows in the reply. Read `GET /v1/connections/{id}/tools` first and send the full list you want on.","tags":["connections"],"x-scope":"connections.write","x-limit":"write","security":[{"bearerAuth":["connections.write"]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","description":"The connection's id."},"description":"The connection's id."}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"tools":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","description":"The tool's name as an AI client calls it, e.g. `xero_list_invoices`. Use it in every `tools` list."},"title":{"type":"string","description":"A short title for people."},"description":{"type":"string","description":"What the tool does. This is the text an AI client reads."},"docs_md":{"type":"string","nullable":true,"description":"Longer documentation in Markdown, for people. Null when the tool has none."},"plan":{"type":"string","description":"The tool's plan tier: `free` or `pro`."},"sensitive":{"type":"boolean","description":"True for a destructive or high-impact tool."},"read_only":{"type":"boolean","description":"True when the tool only reads. A read-only profile or connection serves only these."},"has_panel":{"type":"boolean","description":"True when the tool shows an interactive panel in AI clients that support them (MCP Apps). A panel appears only while the tool is listed, so search mode pins these by default."},"enabled":{"type":"boolean","description":"Whether the tool is on in the connection's root selection, which every profile subsets. With nothing connected, the default: on."}},"required":["name","title","description","docs_md","plan","sensitive","read_only","has_panel","enabled"],"additionalProperties":false},"description":"The vendor's tools, with the selection as saved."},"ignored":{"type":"array","items":{"type":"string"},"description":"Names the vendor does not have; nothing changed for them."}},"required":["tools","ignored"],"additionalProperties":false}}}},"400":{"description":"validation: a field failed validation; `field` names it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"unauthorized: no key, or an unknown, revoked or expired key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"insufficient_scope: the key lacks the route's scope, named in `required`. Or forbidden, or plan_limit when the plan does not include the API.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"not_found: the thing is not in this workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"rate_limited: the key's per-minute budget is spent. Retry after `Retry-After` seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"tools":{"type":"array","items":{"type":"string","minLength":1},"maxItems":2000,"description":"The ROOT tool selection: what this connection makes available at all. Every profile subsets it."}},"required":["tools"],"additionalProperties":false},"example":{"tools":[]}}}}}},"/v1/profiles":{"get":{"operationId":"profiles.list","summary":"List profiles","description":"An API key sees every profile in the workspace. Each comes with its `endpoint_url`, the connections it reaches (with `read_only` and `enabled_tools` for each), its skill collections and its `members`. A dashboard session without the permission to view all profiles sees only the ones that person created, is assigned to, or authorized a connection on.","tags":["profiles"],"x-scope":"profiles.read","x-limit":"read","security":[{"bearerAuth":["profiles.read"]}],"parameters":[],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"profiles":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"The profile's id."},"name":{"type":"string","description":"The profile's name."},"description":{"type":"string","nullable":true,"description":"What the endpoint is for. Null when none was given."},"slug":{"type":"string","description":"The profile's segment of the endpoint URL, `<mcp origin>/{workspace_slug}/{slug}`. Generated at creation; renaming the profile never changes it."},"read_only":{"type":"boolean","description":"The master switch: when true, the endpoint serves no write tool from any connection."},"enabled":{"type":"boolean","description":"False means the endpoint is switched off and answers 404. Every setting is kept."},"paused_at":{"type":"string","nullable":true,"description":"When the plan paused the endpoint, as an ISO 8601 timestamp. It is set while the workspace holds more profiles than its plan allows, and the endpoint answers 402 until the plan covers it again. Null when the profile is not paused."},"tool_count":{"type":"integer","description":"Vendor tools the endpoint serves, after read-only and the tool subsets are applied. FloConnector's built-in tools are not counted."},"pin_all":{"type":"boolean","description":"Search mode. True: the endpoint lists every tool it serves. False: it lists only the pinned tools (`connections[].pinned_tools`) and the AI client finds the rest with `flc_search_tools`. Either way every tool works; pinning changes only the list."},"listed_tool_count":{"type":"integer","description":"How many of `tool_count` the endpoint lists directly. Equal to `tool_count` when `pin_all` is true; the rest are reached through search."},"builtin_tool_count":{"type":"integer","description":"FloConnector's built-in tools (such as `flc_about`) that the endpoint serves. 0 when it has no active connection and no skill collection."},"skill_count":{"type":"integer","description":"Skills the endpoint serves through its collections."},"endpoint_path":{"type":"string","nullable":true,"description":"The endpoint's path on the MCP origin, `/{workspace_slug}/{slug}`."},"endpoint_url":{"type":"string","nullable":true,"description":"The full MCP endpoint URL to paste into an AI client."},"created_by":{"type":"string","nullable":true,"description":"The user id of the person who created it. Null when an API key created it, or that person is no longer known."},"created_at":{"type":"string","description":"When it was created, as an ISO 8601 timestamp."},"updated_at":{"type":"string","description":"When it was last saved, as an ISO 8601 timestamp."},"last_used_at":{"type":"string","nullable":true,"description":"When an AI client last used the endpoint, as an ISO 8601 timestamp. Null when no client has used it yet."},"clients":{"type":"array","items":{"type":"object","properties":{"client_name":{"type":"string","nullable":true,"description":"The AI client's registered name, e.g. Claude or ChatGPT."},"owner_email":{"type":"string","nullable":true,"description":"Who connected it. Null to a caller whose only tie to the profile is a connection they authorized."}},"required":["client_name","owner_email"],"additionalProperties":false},"description":"The AI clients signed in to the endpoint now (a live grant each)."},"viewer_relationship":{"type":"string","enum":["created","assigned","connection","admin"],"description":"How the caller relates to the profile: `created` it, is `assigned` to it, authorized a `connection` on it, or sees every profile (`admin`). An API key reads as `admin`."},"members":{"type":"array","items":{"type":"object","properties":{"user_id":{"type":"string","description":"The person's user id."},"email":{"type":"string","description":"Their email."},"name":{"type":"string","nullable":true,"description":"Their name. Null when they have not set one."}},"required":["user_id","email","name"],"additionalProperties":false},"description":"The people who may connect an AI client to the profile. Returned empty to a caller whose only tie to the profile is a connection they authorized."},"connections":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"The connection's id."},"vendor":{"type":"string","description":"The connector's vendor slug, e.g. `xero`."},"org":{"type":"string","nullable":true,"description":"The connected account's name: its label, else the vendor's own name, else its handle. Null when none of them is set."},"status":{"type":"string","enum":["active","needs_reauth","revoked"],"description":"`active`: working. `needs_reauth`: the vendor no longer accepts the stored credential, and a person must reconnect to restore it. `revoked`: access was withdrawn."},"read_only":{"type":"boolean","description":"True when this connection's write tools are hidden on this profile. The profile's own `read_only` applies as well."},"enabled_tools":{"type":"array","items":{"type":"string"},"nullable":true,"description":"The tool subset this profile exposes for the connection. Null means everything in the connection's root selection."},"connected_by":{"type":"string","nullable":true,"description":"The user id of the person who connected it. Null when that is not known."},"connected_by_email":{"type":"string","nullable":true,"description":"That person's email. Null when that is not known."},"pinned_tools":{"type":"array","items":{"type":"string"},"nullable":true,"description":"Search mode: the tools of this connection the endpoint LISTS directly. Null while the profile's `pin_all` is true (every tool is listed). The others stay available and are found with `flc_search_tools`."}},"required":["id","vendor","org","status","read_only","enabled_tools","connected_by","connected_by_email","pinned_tools"],"additionalProperties":false},"description":"The connections the endpoint reaches, each with its exposure on this profile."},"collections":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"The skill collection's id."},"slug":{"type":"string","description":"The collection's slug."},"name":{"type":"string","description":"The collection's name."},"icon":{"type":"string","nullable":true,"description":"The collection's emoji mark, as shown in the dashboard. Null when it has none."},"auto_receive":{"type":"boolean","description":"True when skills published in the collection later are exposed on the profile automatically."},"enabled_skills":{"type":"array","items":{"type":"string"},"nullable":true,"description":"The ids of the skills exposed. Null means every skill in the collection."}},"required":["id","slug","name","icon","auto_receive","enabled_skills"],"additionalProperties":false},"description":"The skill collections the endpoint serves."}},"required":["id","name","description","slug","read_only","enabled","paused_at","tool_count","pin_all","listed_tool_count","builtin_tool_count","skill_count","endpoint_path","endpoint_url","created_by","created_at","updated_at","last_used_at","clients","viewer_relationship","members","connections","collections"],"additionalProperties":false},"description":"Every profile the caller may see."}},"required":["profiles"],"additionalProperties":false}}}},"400":{"description":"validation: a field failed validation; `field` names it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"unauthorized: no key, or an unknown, revoked or expired key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"insufficient_scope: the key lacks the route's scope, named in `required`. Or forbidden, or plan_limit when the plan does not include the API.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"not_found: the thing is not in this workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"rate_limited: the key's per-minute budget is spent. Retry after `Retry-After` seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"post":{"operationId":"profiles.create","summary":"Create a profile","description":"Creates a new MCP endpoint and returns it with its `endpoint_url`, ready to paste into an AI client. Connections and skill collections are optional: an empty profile is a draft whose URL exists at once and whose endpoint answers 404 until something is added. Omit a connection's `tools` to expose everything in its root selection. An API key must send `members`, the user ids who may connect a client (`[]` is allowed), because a key is not a person to default to. The plan's profile limit applies and answers 403 `plan_limit`.","tags":["profiles"],"x-scope":"profiles.write","x-limit":"write","security":[{"bearerAuth":["profiles.write"]}],"parameters":[],"responses":{"201":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"profile":{"type":"object","properties":{"id":{"type":"string","description":"The profile's id."},"name":{"type":"string","description":"The profile's name."},"description":{"type":"string","nullable":true,"description":"What the endpoint is for. Null when none was given."},"slug":{"type":"string","description":"The profile's segment of the endpoint URL, `<mcp origin>/{workspace_slug}/{slug}`. Generated at creation; renaming the profile never changes it."},"read_only":{"type":"boolean","description":"The master switch: when true, the endpoint serves no write tool from any connection."},"enabled":{"type":"boolean","description":"False means the endpoint is switched off and answers 404. Every setting is kept."},"paused_at":{"type":"string","nullable":true,"description":"When the plan paused the endpoint, as an ISO 8601 timestamp. It is set while the workspace holds more profiles than its plan allows, and the endpoint answers 402 until the plan covers it again. Null when the profile is not paused."},"tool_count":{"type":"integer","description":"Vendor tools the endpoint serves, after read-only and the tool subsets are applied. FloConnector's built-in tools are not counted."},"pin_all":{"type":"boolean","description":"Search mode. True: the endpoint lists every tool it serves. False: it lists only the pinned tools (`connections[].pinned_tools`) and the AI client finds the rest with `flc_search_tools`. Either way every tool works; pinning changes only the list."},"listed_tool_count":{"type":"integer","description":"How many of `tool_count` the endpoint lists directly. Equal to `tool_count` when `pin_all` is true; the rest are reached through search."},"builtin_tool_count":{"type":"integer","description":"FloConnector's built-in tools (such as `flc_about`) that the endpoint serves. 0 when it has no active connection and no skill collection."},"skill_count":{"type":"integer","description":"Skills the endpoint serves through its collections."},"endpoint_path":{"type":"string","nullable":true,"description":"The endpoint's path on the MCP origin, `/{workspace_slug}/{slug}`."},"endpoint_url":{"type":"string","nullable":true,"description":"The full MCP endpoint URL to paste into an AI client."},"created_by":{"type":"string","nullable":true,"description":"The user id of the person who created it. Null when an API key created it, or that person is no longer known."},"created_at":{"type":"string","description":"When it was created, as an ISO 8601 timestamp."},"updated_at":{"type":"string","description":"When it was last saved, as an ISO 8601 timestamp."},"last_used_at":{"type":"string","nullable":true,"description":"When an AI client last used the endpoint, as an ISO 8601 timestamp. Null when no client has used it yet."},"clients":{"type":"array","items":{"type":"object","properties":{"client_name":{"type":"string","nullable":true,"description":"The AI client's registered name, e.g. Claude or ChatGPT."},"owner_email":{"type":"string","nullable":true,"description":"Who connected it. Null to a caller whose only tie to the profile is a connection they authorized."}},"required":["client_name","owner_email"],"additionalProperties":false},"description":"The AI clients signed in to the endpoint now (a live grant each)."},"viewer_relationship":{"type":"string","enum":["created","assigned","connection","admin"],"description":"How the caller relates to the profile: `created` it, is `assigned` to it, authorized a `connection` on it, or sees every profile (`admin`). An API key reads as `admin`."},"members":{"type":"array","items":{"type":"object","properties":{"user_id":{"type":"string","description":"The person's user id."},"email":{"type":"string","description":"Their email."},"name":{"type":"string","nullable":true,"description":"Their name. Null when they have not set one."}},"required":["user_id","email","name"],"additionalProperties":false},"description":"The people who may connect an AI client to the profile. Returned empty to a caller whose only tie to the profile is a connection they authorized."},"connections":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"The connection's id."},"vendor":{"type":"string","description":"The connector's vendor slug, e.g. `xero`."},"org":{"type":"string","nullable":true,"description":"The connected account's name: its label, else the vendor's own name, else its handle. Null when none of them is set."},"status":{"type":"string","enum":["active","needs_reauth","revoked"],"description":"`active`: working. `needs_reauth`: the vendor no longer accepts the stored credential, and a person must reconnect to restore it. `revoked`: access was withdrawn."},"read_only":{"type":"boolean","description":"True when this connection's write tools are hidden on this profile. The profile's own `read_only` applies as well."},"enabled_tools":{"type":"array","items":{"type":"string"},"nullable":true,"description":"The tool subset this profile exposes for the connection. Null means everything in the connection's root selection."},"connected_by":{"type":"string","nullable":true,"description":"The user id of the person who connected it. Null when that is not known."},"connected_by_email":{"type":"string","nullable":true,"description":"That person's email. Null when that is not known."},"pinned_tools":{"type":"array","items":{"type":"string"},"nullable":true,"description":"Search mode: the tools of this connection the endpoint LISTS directly. Null while the profile's `pin_all` is true (every tool is listed). The others stay available and are found with `flc_search_tools`."}},"required":["id","vendor","org","status","read_only","enabled_tools","connected_by","connected_by_email","pinned_tools"],"additionalProperties":false},"description":"The connections the endpoint reaches, each with its exposure on this profile."},"collections":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"The skill collection's id."},"slug":{"type":"string","description":"The collection's slug."},"name":{"type":"string","description":"The collection's name."},"icon":{"type":"string","nullable":true,"description":"The collection's emoji mark, as shown in the dashboard. Null when it has none."},"auto_receive":{"type":"boolean","description":"True when skills published in the collection later are exposed on the profile automatically."},"enabled_skills":{"type":"array","items":{"type":"string"},"nullable":true,"description":"The ids of the skills exposed. Null means every skill in the collection."}},"required":["id","slug","name","icon","auto_receive","enabled_skills"],"additionalProperties":false},"description":"The skill collections the endpoint serves."}},"required":["id","name","description","slug","read_only","enabled","paused_at","tool_count","pin_all","listed_tool_count","builtin_tool_count","skill_count","endpoint_path","endpoint_url","created_by","created_at","updated_at","last_used_at","clients","viewer_relationship","members","connections","collections"],"additionalProperties":false,"description":"The new profile."}},"required":["profile"],"additionalProperties":false}}}},"400":{"description":"validation: a field failed validation; `field` names it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"unauthorized: no key, or an unknown, revoked or expired key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"insufficient_scope: the key lacks the route's scope, named in `required`. Or forbidden, or plan_limit when the plan does not include the API.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"not_found: the thing is not in this workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"rate_limited: the key's per-minute budget is spent. Retry after `Retry-After` seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":120,"description":"What people call the profile, e.g. Front desk. The endpoint URL does not depend on it."},"description":{"type":"string","maxLength":500,"nullable":true,"description":"What this endpoint is for; the AI client reads it through flc_about."},"read_only":{"type":"boolean","description":"The master switch: serve no write tool from any connection. Default false."},"pin_all":{"type":"boolean","description":"Search mode: list every tool (true) or only the pinned ones (false). Default at creation: true when the profile serves 50 tools or fewer, otherwise false with each connection's interactive (panel) tools pinned."},"connections":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"A connection in this workspace."},"read_only":{"type":"boolean","description":"Hide this connection's write tools on this profile. Default false."},"tools":{"type":"array","items":{"type":"string","minLength":1},"maxItems":2000,"nullable":true,"description":"The tool subset to expose. Omit to leave the stored subset alone; null for everything in the connection's root selection; [] for nothing."},"pinned_tools":{"type":"array","items":{"type":"string","minLength":1},"maxItems":2000,"description":"Search mode: the tools of this connection to list directly when the profile's `pin_all` is false, replacing its current pins. Omit to leave them alone. A newly added connection starts with its interactive (panel) tools pinned."}},"required":["id"],"additionalProperties":false},"maxItems":200,"description":"The connections the endpoint may reach. Optional: a profile with none is a draft whose endpoint answers 404 until something is added."},"collections":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"A skill collection in this workspace."},"auto_receive":{"type":"boolean","description":"Expose newly published skills without re-ticking. Default true."},"skills":{"type":"array","items":{"type":"string","format":"uuid"},"maxItems":2000,"description":"The skill ids to expose. Omit for every skill in the collection."}},"required":["id"],"additionalProperties":false},"maxItems":200,"description":"The skill collections it serves."},"members":{"type":"array","items":{"type":"string","format":"uuid"},"maxItems":500,"description":"The user ids who may connect a client to it (workspace members). A session defaults to the caller; a key MUST send it, [] allowed. Changing it needs profiles.access.shape."}},"required":["name"],"additionalProperties":false},"example":{"name":"Ops endpoint","read_only":false,"connections":[{"id":"00000000-0000-4000-8000-000000000000","tools":null}],"members":[]}}}}}},"/v1/profiles/{id}":{"get":{"operationId":"profiles.get","summary":"Get a profile","description":"Returns the same shape as an entry of `GET /v1/profiles`. A profile the caller may not see answers 404, the same as one that does not exist.","tags":["profiles"],"x-scope":"profiles.read","x-limit":"read","security":[{"bearerAuth":["profiles.read"]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","description":"The profile's id."},"description":"The profile's id."}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"profile":{"type":"object","properties":{"id":{"type":"string","description":"The profile's id."},"name":{"type":"string","description":"The profile's name."},"description":{"type":"string","nullable":true,"description":"What the endpoint is for. Null when none was given."},"slug":{"type":"string","description":"The profile's segment of the endpoint URL, `<mcp origin>/{workspace_slug}/{slug}`. Generated at creation; renaming the profile never changes it."},"read_only":{"type":"boolean","description":"The master switch: when true, the endpoint serves no write tool from any connection."},"enabled":{"type":"boolean","description":"False means the endpoint is switched off and answers 404. Every setting is kept."},"paused_at":{"type":"string","nullable":true,"description":"When the plan paused the endpoint, as an ISO 8601 timestamp. It is set while the workspace holds more profiles than its plan allows, and the endpoint answers 402 until the plan covers it again. Null when the profile is not paused."},"tool_count":{"type":"integer","description":"Vendor tools the endpoint serves, after read-only and the tool subsets are applied. FloConnector's built-in tools are not counted."},"pin_all":{"type":"boolean","description":"Search mode. True: the endpoint lists every tool it serves. False: it lists only the pinned tools (`connections[].pinned_tools`) and the AI client finds the rest with `flc_search_tools`. Either way every tool works; pinning changes only the list."},"listed_tool_count":{"type":"integer","description":"How many of `tool_count` the endpoint lists directly. Equal to `tool_count` when `pin_all` is true; the rest are reached through search."},"builtin_tool_count":{"type":"integer","description":"FloConnector's built-in tools (such as `flc_about`) that the endpoint serves. 0 when it has no active connection and no skill collection."},"skill_count":{"type":"integer","description":"Skills the endpoint serves through its collections."},"endpoint_path":{"type":"string","nullable":true,"description":"The endpoint's path on the MCP origin, `/{workspace_slug}/{slug}`."},"endpoint_url":{"type":"string","nullable":true,"description":"The full MCP endpoint URL to paste into an AI client."},"created_by":{"type":"string","nullable":true,"description":"The user id of the person who created it. Null when an API key created it, or that person is no longer known."},"created_at":{"type":"string","description":"When it was created, as an ISO 8601 timestamp."},"updated_at":{"type":"string","description":"When it was last saved, as an ISO 8601 timestamp."},"last_used_at":{"type":"string","nullable":true,"description":"When an AI client last used the endpoint, as an ISO 8601 timestamp. Null when no client has used it yet."},"clients":{"type":"array","items":{"type":"object","properties":{"client_name":{"type":"string","nullable":true,"description":"The AI client's registered name, e.g. Claude or ChatGPT."},"owner_email":{"type":"string","nullable":true,"description":"Who connected it. Null to a caller whose only tie to the profile is a connection they authorized."}},"required":["client_name","owner_email"],"additionalProperties":false},"description":"The AI clients signed in to the endpoint now (a live grant each)."},"viewer_relationship":{"type":"string","enum":["created","assigned","connection","admin"],"description":"How the caller relates to the profile: `created` it, is `assigned` to it, authorized a `connection` on it, or sees every profile (`admin`). An API key reads as `admin`."},"members":{"type":"array","items":{"type":"object","properties":{"user_id":{"type":"string","description":"The person's user id."},"email":{"type":"string","description":"Their email."},"name":{"type":"string","nullable":true,"description":"Their name. Null when they have not set one."}},"required":["user_id","email","name"],"additionalProperties":false},"description":"The people who may connect an AI client to the profile. Returned empty to a caller whose only tie to the profile is a connection they authorized."},"connections":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"The connection's id."},"vendor":{"type":"string","description":"The connector's vendor slug, e.g. `xero`."},"org":{"type":"string","nullable":true,"description":"The connected account's name: its label, else the vendor's own name, else its handle. Null when none of them is set."},"status":{"type":"string","enum":["active","needs_reauth","revoked"],"description":"`active`: working. `needs_reauth`: the vendor no longer accepts the stored credential, and a person must reconnect to restore it. `revoked`: access was withdrawn."},"read_only":{"type":"boolean","description":"True when this connection's write tools are hidden on this profile. The profile's own `read_only` applies as well."},"enabled_tools":{"type":"array","items":{"type":"string"},"nullable":true,"description":"The tool subset this profile exposes for the connection. Null means everything in the connection's root selection."},"connected_by":{"type":"string","nullable":true,"description":"The user id of the person who connected it. Null when that is not known."},"connected_by_email":{"type":"string","nullable":true,"description":"That person's email. Null when that is not known."},"pinned_tools":{"type":"array","items":{"type":"string"},"nullable":true,"description":"Search mode: the tools of this connection the endpoint LISTS directly. Null while the profile's `pin_all` is true (every tool is listed). The others stay available and are found with `flc_search_tools`."}},"required":["id","vendor","org","status","read_only","enabled_tools","connected_by","connected_by_email","pinned_tools"],"additionalProperties":false},"description":"The connections the endpoint reaches, each with its exposure on this profile."},"collections":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"The skill collection's id."},"slug":{"type":"string","description":"The collection's slug."},"name":{"type":"string","description":"The collection's name."},"icon":{"type":"string","nullable":true,"description":"The collection's emoji mark, as shown in the dashboard. Null when it has none."},"auto_receive":{"type":"boolean","description":"True when skills published in the collection later are exposed on the profile automatically."},"enabled_skills":{"type":"array","items":{"type":"string"},"nullable":true,"description":"The ids of the skills exposed. Null means every skill in the collection."}},"required":["id","slug","name","icon","auto_receive","enabled_skills"],"additionalProperties":false},"description":"The skill collections the endpoint serves."}},"required":["id","name","description","slug","read_only","enabled","paused_at","tool_count","pin_all","listed_tool_count","builtin_tool_count","skill_count","endpoint_path","endpoint_url","created_by","created_at","updated_at","last_used_at","clients","viewer_relationship","members","connections","collections"],"additionalProperties":false,"description":"The profile."}},"required":["profile"],"additionalProperties":false}}}},"400":{"description":"validation: a field failed validation; `field` names it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"unauthorized: no key, or an unknown, revoked or expired key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"insufficient_scope: the key lacks the route's scope, named in `required`. Or forbidden, or plan_limit when the plan does not include the API.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"not_found: the thing is not in this workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"rate_limited: the key's per-minute budget is spent. Retry after `Retry-After` seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"patch":{"operationId":"profiles.update","summary":"Change a profile","description":"Send only the fields to change. `connections`, `collections` and `members` each replace the whole set when sent, so anything left out is detached; omit a set to leave it alone. `enabled: false` switches the endpoint off (it answers 404) and keeps every setting, and renaming never changes the endpoint URL.","tags":["profiles"],"x-scope":"profiles.write","x-limit":"write","security":[{"bearerAuth":["profiles.write"]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","description":"The profile's id."},"description":"The profile's id."}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"profile":{"type":"object","properties":{"id":{"type":"string","description":"The profile's id."},"name":{"type":"string","description":"The profile's name."},"description":{"type":"string","nullable":true,"description":"What the endpoint is for. Null when none was given."},"slug":{"type":"string","description":"The profile's segment of the endpoint URL, `<mcp origin>/{workspace_slug}/{slug}`. Generated at creation; renaming the profile never changes it."},"read_only":{"type":"boolean","description":"The master switch: when true, the endpoint serves no write tool from any connection."},"enabled":{"type":"boolean","description":"False means the endpoint is switched off and answers 404. Every setting is kept."},"paused_at":{"type":"string","nullable":true,"description":"When the plan paused the endpoint, as an ISO 8601 timestamp. It is set while the workspace holds more profiles than its plan allows, and the endpoint answers 402 until the plan covers it again. Null when the profile is not paused."},"tool_count":{"type":"integer","description":"Vendor tools the endpoint serves, after read-only and the tool subsets are applied. FloConnector's built-in tools are not counted."},"pin_all":{"type":"boolean","description":"Search mode. True: the endpoint lists every tool it serves. False: it lists only the pinned tools (`connections[].pinned_tools`) and the AI client finds the rest with `flc_search_tools`. Either way every tool works; pinning changes only the list."},"listed_tool_count":{"type":"integer","description":"How many of `tool_count` the endpoint lists directly. Equal to `tool_count` when `pin_all` is true; the rest are reached through search."},"builtin_tool_count":{"type":"integer","description":"FloConnector's built-in tools (such as `flc_about`) that the endpoint serves. 0 when it has no active connection and no skill collection."},"skill_count":{"type":"integer","description":"Skills the endpoint serves through its collections."},"endpoint_path":{"type":"string","nullable":true,"description":"The endpoint's path on the MCP origin, `/{workspace_slug}/{slug}`."},"endpoint_url":{"type":"string","nullable":true,"description":"The full MCP endpoint URL to paste into an AI client."},"created_by":{"type":"string","nullable":true,"description":"The user id of the person who created it. Null when an API key created it, or that person is no longer known."},"created_at":{"type":"string","description":"When it was created, as an ISO 8601 timestamp."},"updated_at":{"type":"string","description":"When it was last saved, as an ISO 8601 timestamp."},"last_used_at":{"type":"string","nullable":true,"description":"When an AI client last used the endpoint, as an ISO 8601 timestamp. Null when no client has used it yet."},"clients":{"type":"array","items":{"type":"object","properties":{"client_name":{"type":"string","nullable":true,"description":"The AI client's registered name, e.g. Claude or ChatGPT."},"owner_email":{"type":"string","nullable":true,"description":"Who connected it. Null to a caller whose only tie to the profile is a connection they authorized."}},"required":["client_name","owner_email"],"additionalProperties":false},"description":"The AI clients signed in to the endpoint now (a live grant each)."},"viewer_relationship":{"type":"string","enum":["created","assigned","connection","admin"],"description":"How the caller relates to the profile: `created` it, is `assigned` to it, authorized a `connection` on it, or sees every profile (`admin`). An API key reads as `admin`."},"members":{"type":"array","items":{"type":"object","properties":{"user_id":{"type":"string","description":"The person's user id."},"email":{"type":"string","description":"Their email."},"name":{"type":"string","nullable":true,"description":"Their name. Null when they have not set one."}},"required":["user_id","email","name"],"additionalProperties":false},"description":"The people who may connect an AI client to the profile. Returned empty to a caller whose only tie to the profile is a connection they authorized."},"connections":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"The connection's id."},"vendor":{"type":"string","description":"The connector's vendor slug, e.g. `xero`."},"org":{"type":"string","nullable":true,"description":"The connected account's name: its label, else the vendor's own name, else its handle. Null when none of them is set."},"status":{"type":"string","enum":["active","needs_reauth","revoked"],"description":"`active`: working. `needs_reauth`: the vendor no longer accepts the stored credential, and a person must reconnect to restore it. `revoked`: access was withdrawn."},"read_only":{"type":"boolean","description":"True when this connection's write tools are hidden on this profile. The profile's own `read_only` applies as well."},"enabled_tools":{"type":"array","items":{"type":"string"},"nullable":true,"description":"The tool subset this profile exposes for the connection. Null means everything in the connection's root selection."},"connected_by":{"type":"string","nullable":true,"description":"The user id of the person who connected it. Null when that is not known."},"connected_by_email":{"type":"string","nullable":true,"description":"That person's email. Null when that is not known."},"pinned_tools":{"type":"array","items":{"type":"string"},"nullable":true,"description":"Search mode: the tools of this connection the endpoint LISTS directly. Null while the profile's `pin_all` is true (every tool is listed). The others stay available and are found with `flc_search_tools`."}},"required":["id","vendor","org","status","read_only","enabled_tools","connected_by","connected_by_email","pinned_tools"],"additionalProperties":false},"description":"The connections the endpoint reaches, each with its exposure on this profile."},"collections":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"The skill collection's id."},"slug":{"type":"string","description":"The collection's slug."},"name":{"type":"string","description":"The collection's name."},"icon":{"type":"string","nullable":true,"description":"The collection's emoji mark, as shown in the dashboard. Null when it has none."},"auto_receive":{"type":"boolean","description":"True when skills published in the collection later are exposed on the profile automatically."},"enabled_skills":{"type":"array","items":{"type":"string"},"nullable":true,"description":"The ids of the skills exposed. Null means every skill in the collection."}},"required":["id","slug","name","icon","auto_receive","enabled_skills"],"additionalProperties":false},"description":"The skill collections the endpoint serves."}},"required":["id","name","description","slug","read_only","enabled","paused_at","tool_count","pin_all","listed_tool_count","builtin_tool_count","skill_count","endpoint_path","endpoint_url","created_by","created_at","updated_at","last_used_at","clients","viewer_relationship","members","connections","collections"],"additionalProperties":false,"description":"The profile, after the change."}},"required":["profile"],"additionalProperties":false}}}},"400":{"description":"validation: a field failed validation; `field` names it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"unauthorized: no key, or an unknown, revoked or expired key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"insufficient_scope: the key lacks the route's scope, named in `required`. Or forbidden, or plan_limit when the plan does not include the API.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"not_found: the thing is not in this workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"rate_limited: the key's per-minute budget is spent. Retry after `Retry-After` seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":120,"description":"What people call the profile, e.g. Front desk. The endpoint URL does not depend on it."},"description":{"type":"string","maxLength":500,"nullable":true,"description":"What this endpoint is for; the AI client reads it through flc_about."},"read_only":{"type":"boolean","description":"The master switch: serve no write tool from any connection. Default false."},"pin_all":{"type":"boolean","description":"Search mode: list every tool (true) or only the pinned ones (false). Default at creation: true when the profile serves 50 tools or fewer, otherwise false with each connection's interactive (panel) tools pinned."},"connections":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"A connection in this workspace."},"read_only":{"type":"boolean","description":"Hide this connection's write tools on this profile. Default false."},"tools":{"type":"array","items":{"type":"string","minLength":1},"maxItems":2000,"nullable":true,"description":"The tool subset to expose. Omit to leave the stored subset alone; null for everything in the connection's root selection; [] for nothing."},"pinned_tools":{"type":"array","items":{"type":"string","minLength":1},"maxItems":2000,"description":"Search mode: the tools of this connection to list directly when the profile's `pin_all` is false, replacing its current pins. Omit to leave them alone. A newly added connection starts with its interactive (panel) tools pinned."}},"required":["id"],"additionalProperties":false},"maxItems":200,"description":"The WHOLE set: connections not listed are detached. Omit to leave them alone."},"collections":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"A skill collection in this workspace."},"auto_receive":{"type":"boolean","description":"Expose newly published skills without re-ticking. Default true."},"skills":{"type":"array","items":{"type":"string","format":"uuid"},"maxItems":2000,"description":"The skill ids to expose. Omit for every skill in the collection."}},"required":["id"],"additionalProperties":false},"maxItems":200,"description":"The WHOLE set: collections not listed are detached. Omit to leave them alone."},"members":{"type":"array","items":{"type":"string","format":"uuid"},"maxItems":500,"description":"The WHOLE access list. Omit to leave it alone. Needs profiles.access.shape."},"enabled":{"type":"boolean","description":"false turns the endpoint off (404) without losing anything."}},"additionalProperties":false},"example":{"name":"Ops endpoint","enabled":true}}}}},"delete":{"operationId":"profiles.delete","summary":"Delete a profile","description":"The profile and its endpoint are deleted, and every AI client connected to it loses access at once. This cannot be undone. The connections it used stay in the workspace; to switch an endpoint off and keep its settings, send `enabled: false` to `PATCH /v1/profiles/{id}` instead.","tags":["profiles"],"x-scope":"profiles.delete","x-dangerous":true,"x-limit":"write","security":[{"bearerAuth":["profiles.delete"]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","description":"The profile's id."},"description":"The profile's id."}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true],"description":"Always true."}},"required":["ok"],"additionalProperties":false}}}},"400":{"description":"validation: a field failed validation; `field` names it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"unauthorized: no key, or an unknown, revoked or expired key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"insufficient_scope: the key lacks the route's scope, named in `required`. Or forbidden, or plan_limit when the plan does not include the API.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"not_found: the thing is not in this workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"rate_limited: the key's per-minute budget is spent. Retry after `Retry-After` seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/profiles/{id}/endpoint":{"get":{"operationId":"profiles.endpoint","summary":"The profile's MCP endpoint URL","description":"`url` is what a person pastes into their AI client; `enabled` and `paused_at` say whether it is serving. Nothing else needs handing over: the client discovers OAuth 2.1 sign-in from the URL, and the person who signs in must be one of the profile's `members`.","tags":["profiles"],"x-scope":"profiles.read","x-limit":"read","security":[{"bearerAuth":["profiles.read"]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","description":"The profile's id."},"description":"The profile's id."}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string","description":"The MCP endpoint URL to paste into the AI client."},"path":{"type":"string","description":"The URL's path, `/{workspace_slug}/{profile_slug}`."},"workspace_slug":{"type":"string","description":"The workspace's slug, the first segment of the path."},"profile_slug":{"type":"string","description":"The profile's slug, the second segment of the path."},"enabled":{"type":"boolean","description":"False means the endpoint is switched off and answers 404."},"paused_at":{"type":"string","nullable":true,"description":"When the plan paused the endpoint, as an ISO 8601 timestamp; it answers 402 while paused. Null when it is not paused."},"auth":{"type":"string","enum":["oauth2"],"description":"Always `oauth2`: an AI client signs in with OAuth 2.1 (dynamic client registration and PKCE), which it discovers from `url`."}},"required":["url","path","workspace_slug","profile_slug","enabled","paused_at","auth"],"additionalProperties":false}}}},"400":{"description":"validation: a field failed validation; `field` names it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"unauthorized: no key, or an unknown, revoked or expired key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"insufficient_scope: the key lacks the route's scope, named in `required`. Or forbidden, or plan_limit when the plan does not include the API.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"not_found: the thing is not in this workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"rate_limited: the key's per-minute budget is spent. Retry after `Retry-After` seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/profiles/{id}/connections/{connection_id}":{"patch":{"operationId":"profiles.connections.update","summary":"Change one connection's exposure on a profile","description":"`read_only` hides the connection's write tools on this profile, and `tools` replaces the subset the profile exposes for it. Send one or both; the profile's other connections are untouched, and the connection's root selection still caps what the profile can serve. To go back to everything in the root selection, send `tools: null` for the connection through `PATCH /v1/profiles/{id}`.","tags":["profiles"],"x-scope":"profiles.write","x-limit":"write","security":[{"bearerAuth":["profiles.write"]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","description":"The profile's id."},"description":"The profile's id."},{"name":"connection_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","description":"The connection's id (one of the profile's `connections`)."},"description":"The connection's id (one of the profile's `connections`)."}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"profile":{"type":"object","properties":{"id":{"type":"string","description":"The profile's id."},"name":{"type":"string","description":"The profile's name."},"description":{"type":"string","nullable":true,"description":"What the endpoint is for. Null when none was given."},"slug":{"type":"string","description":"The profile's segment of the endpoint URL, `<mcp origin>/{workspace_slug}/{slug}`. Generated at creation; renaming the profile never changes it."},"read_only":{"type":"boolean","description":"The master switch: when true, the endpoint serves no write tool from any connection."},"enabled":{"type":"boolean","description":"False means the endpoint is switched off and answers 404. Every setting is kept."},"paused_at":{"type":"string","nullable":true,"description":"When the plan paused the endpoint, as an ISO 8601 timestamp. It is set while the workspace holds more profiles than its plan allows, and the endpoint answers 402 until the plan covers it again. Null when the profile is not paused."},"tool_count":{"type":"integer","description":"Vendor tools the endpoint serves, after read-only and the tool subsets are applied. FloConnector's built-in tools are not counted."},"pin_all":{"type":"boolean","description":"Search mode. True: the endpoint lists every tool it serves. False: it lists only the pinned tools (`connections[].pinned_tools`) and the AI client finds the rest with `flc_search_tools`. Either way every tool works; pinning changes only the list."},"listed_tool_count":{"type":"integer","description":"How many of `tool_count` the endpoint lists directly. Equal to `tool_count` when `pin_all` is true; the rest are reached through search."},"builtin_tool_count":{"type":"integer","description":"FloConnector's built-in tools (such as `flc_about`) that the endpoint serves. 0 when it has no active connection and no skill collection."},"skill_count":{"type":"integer","description":"Skills the endpoint serves through its collections."},"endpoint_path":{"type":"string","nullable":true,"description":"The endpoint's path on the MCP origin, `/{workspace_slug}/{slug}`."},"endpoint_url":{"type":"string","nullable":true,"description":"The full MCP endpoint URL to paste into an AI client."},"created_by":{"type":"string","nullable":true,"description":"The user id of the person who created it. Null when an API key created it, or that person is no longer known."},"created_at":{"type":"string","description":"When it was created, as an ISO 8601 timestamp."},"updated_at":{"type":"string","description":"When it was last saved, as an ISO 8601 timestamp."},"last_used_at":{"type":"string","nullable":true,"description":"When an AI client last used the endpoint, as an ISO 8601 timestamp. Null when no client has used it yet."},"clients":{"type":"array","items":{"type":"object","properties":{"client_name":{"type":"string","nullable":true,"description":"The AI client's registered name, e.g. Claude or ChatGPT."},"owner_email":{"type":"string","nullable":true,"description":"Who connected it. Null to a caller whose only tie to the profile is a connection they authorized."}},"required":["client_name","owner_email"],"additionalProperties":false},"description":"The AI clients signed in to the endpoint now (a live grant each)."},"viewer_relationship":{"type":"string","enum":["created","assigned","connection","admin"],"description":"How the caller relates to the profile: `created` it, is `assigned` to it, authorized a `connection` on it, or sees every profile (`admin`). An API key reads as `admin`."},"members":{"type":"array","items":{"type":"object","properties":{"user_id":{"type":"string","description":"The person's user id."},"email":{"type":"string","description":"Their email."},"name":{"type":"string","nullable":true,"description":"Their name. Null when they have not set one."}},"required":["user_id","email","name"],"additionalProperties":false},"description":"The people who may connect an AI client to the profile. Returned empty to a caller whose only tie to the profile is a connection they authorized."},"connections":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"The connection's id."},"vendor":{"type":"string","description":"The connector's vendor slug, e.g. `xero`."},"org":{"type":"string","nullable":true,"description":"The connected account's name: its label, else the vendor's own name, else its handle. Null when none of them is set."},"status":{"type":"string","enum":["active","needs_reauth","revoked"],"description":"`active`: working. `needs_reauth`: the vendor no longer accepts the stored credential, and a person must reconnect to restore it. `revoked`: access was withdrawn."},"read_only":{"type":"boolean","description":"True when this connection's write tools are hidden on this profile. The profile's own `read_only` applies as well."},"enabled_tools":{"type":"array","items":{"type":"string"},"nullable":true,"description":"The tool subset this profile exposes for the connection. Null means everything in the connection's root selection."},"connected_by":{"type":"string","nullable":true,"description":"The user id of the person who connected it. Null when that is not known."},"connected_by_email":{"type":"string","nullable":true,"description":"That person's email. Null when that is not known."},"pinned_tools":{"type":"array","items":{"type":"string"},"nullable":true,"description":"Search mode: the tools of this connection the endpoint LISTS directly. Null while the profile's `pin_all` is true (every tool is listed). The others stay available and are found with `flc_search_tools`."}},"required":["id","vendor","org","status","read_only","enabled_tools","connected_by","connected_by_email","pinned_tools"],"additionalProperties":false},"description":"The connections the endpoint reaches, each with its exposure on this profile."},"collections":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"The skill collection's id."},"slug":{"type":"string","description":"The collection's slug."},"name":{"type":"string","description":"The collection's name."},"icon":{"type":"string","nullable":true,"description":"The collection's emoji mark, as shown in the dashboard. Null when it has none."},"auto_receive":{"type":"boolean","description":"True when skills published in the collection later are exposed on the profile automatically."},"enabled_skills":{"type":"array","items":{"type":"string"},"nullable":true,"description":"The ids of the skills exposed. Null means every skill in the collection."}},"required":["id","slug","name","icon","auto_receive","enabled_skills"],"additionalProperties":false},"description":"The skill collections the endpoint serves."}},"required":["id","name","description","slug","read_only","enabled","paused_at","tool_count","pin_all","listed_tool_count","builtin_tool_count","skill_count","endpoint_path","endpoint_url","created_by","created_at","updated_at","last_used_at","clients","viewer_relationship","members","connections","collections"],"additionalProperties":false,"description":"The profile, after the change."}},"required":["profile"],"additionalProperties":false}}}},"400":{"description":"validation: a field failed validation; `field` names it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"unauthorized: no key, or an unknown, revoked or expired key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"insufficient_scope: the key lacks the route's scope, named in `required`. Or forbidden, or plan_limit when the plan does not include the API.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"not_found: the thing is not in this workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"rate_limited: the key's per-minute budget is spent. Retry after `Retry-After` seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"read_only":{"type":"boolean","description":"Hide (true) or show (false) this connection's write tools on the profile."},"tools":{"type":"array","items":{"type":"string","minLength":1},"maxItems":2000,"description":"The tool subset to expose. The authorizer may only narrow it; a manager may widen."},"pinned_tools":{"type":"array","items":{"type":"string","minLength":1},"maxItems":2000,"description":"Search mode: the tools of this connection to list directly when the profile's `pin_all` is false, replacing its current pins. Only the profile's editors may change pins."}},"additionalProperties":false},"example":{"read_only":true}}}}},"delete":{"operationId":"profiles.connections.detach","summary":"Take a connection off a profile","description":"Only this profile loses the connection's tools: the connection stays in the workspace and on every other profile. A profile's only connection cannot be removed unless the profile also serves a skill collection; switch the profile off with `enabled: false` instead. The person who authorized the connection and the people assigned to the profile are notified.","tags":["profiles"],"x-scope":"profiles.write","x-limit":"write","security":[{"bearerAuth":["profiles.write"]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","description":"The profile's id."},"description":"The profile's id."},{"name":"connection_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","description":"The connection's id (one of the profile's `connections`)."},"description":"The connection's id (one of the profile's `connections`)."}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true],"description":"Always true."}},"required":["ok"],"additionalProperties":false}}}},"400":{"description":"validation: a field failed validation; `field` names it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"unauthorized: no key, or an unknown, revoked or expired key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"insufficient_scope: the key lacks the route's scope, named in `required`. Or forbidden, or plan_limit when the plan does not include the API.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"not_found: the thing is not in this workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"rate_limited: the key's per-minute budget is spent. Retry after `Retry-After` seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/activity":{"get":{"operationId":"activity.list","summary":"List calls (newest first, cursor-paged)","description":"Every tool call AI clients made through the workspace and every analytics query, as metadata only: never a request or response payload. `window` bounds the list to the trailing 7, 30 or 90 days and `kind` filters by what a call costs. Pass `next_cursor` back as `cursor` to continue; a page stays stable while new calls land.","tags":["activity"],"x-scope":"activity.read","x-limit":"read","security":[{"bearerAuth":["activity.read"]}],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":200,"default":50,"description":"How many calls a page holds, 1 to 200. Default 50."},"description":"How many calls a page holds, 1 to 200. Default 50."},{"name":"cursor","in":"query","required":false,"schema":{"type":"string","minLength":1,"maxLength":400,"description":"The `next_cursor` the previous page answered with."},"description":"The `next_cursor` the previous page answered with."},{"name":"kind","in":"query","required":false,"schema":{"type":"string","enum":["all","billed","included"],"default":"all","description":"Filter by what a call costs. `all`: every call. `billed`: metered vendor calls. `included`: free calls, which are analytics queries and calls on connectors that are not metered. Default `all`."},"description":"Filter by what a call costs. `all`: every call. `billed`: metered vendor calls. `included`: free calls, which are analytics queries and calls on connectors that are not metered. Default `all`."},{"name":"window","in":"query","required":false,"schema":{"type":"integer","default":30,"description":"The trailing window in days: 7, 30, 90. Default 30."},"description":"The trailing window in days: 7, 30, 90. Default 30."}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"The call's id."},"kind":{"type":"string","enum":["external","internal"],"description":"`external`: a call to a vendor's tool. `internal`: an analytics query. It says what ran the call, not what it cost: read `credits` for that."},"tool":{"type":"string","description":"The tool's name as the AI client called it. An analytics query shows as `query`."},"vendor":{"type":"string","nullable":true,"description":"The connector the tool belongs to, by vendor slug. Null for an analytics query."},"org":{"type":"string","nullable":true,"description":"The display name of the connected account the call ran against. Null for an analytics query, or when that connection is gone."},"profile":{"type":"string","nullable":true,"description":"The name of the profile the call arrived through. Null if it has since been deleted."},"ok":{"type":"boolean","description":"True when the call succeeded."},"credits":{"type":"number","description":"What the call cost in credits: 1 for a metered vendor call, 0 for an analytics query or a call on a connector that is not metered."},"duration_ms":{"type":"integer","description":"How long the call took, in milliseconds."},"underlying_calls":{"type":"integer","nullable":true,"description":"How many requests to the vendor this one call made. Null when not counted, and for an analytics query."},"rows_returned":{"type":"integer","nullable":true,"description":"How many rows the call produced: a count, never the rows. Null when it returned nothing structured, or failed."},"response_bytes":{"type":"number","nullable":true,"description":"The size of the response in bytes: a measurement, never the response. Null when the call failed or produced nothing to measure."},"caller":{"type":"string","nullable":true,"description":"Who called: the person signed in to the AI client, by display name or else email. Null once that client has been disconnected."},"caller_client":{"type":"string","nullable":true,"description":"The AI client that made the call, e.g. Claude. Null in the same cases as `caller`."},"session_id":{"type":"string","nullable":true,"description":"The MCP session the call belonged to. Opaque: calls that share a value were made in one sitting."},"composio_slug":{"type":"string","nullable":true,"description":"For a connector delivered through Composio, the id of the underlying tool there, e.g. GMAIL_SEND_EMAIL. Null for native connectors and analytics queries."},"composio_version":{"type":"string","nullable":true,"description":"The version of that underlying tool the call ran. Null when `composio_slug` is."},"error_code":{"type":"string","nullable":true,"description":"The classified reason a vendor call failed. Null when the call succeeded, and for an analytics query."},"vendor_request_id":{"type":"string","nullable":true,"description":"The vendor's own request id for a failed call: what their support asks for. Null when the call succeeded or the vendor sent none."},"sql":{"type":"string","nullable":true,"description":"The read-only statement an analytics query ran. Null for a vendor call."},"at":{"type":"string","description":"When the call was made, ISO 8601 timestamp."}},"required":["id","kind","tool","vendor","org","profile","ok","credits","duration_ms","underlying_calls","rows_returned","response_bytes","caller","caller_client","session_id","composio_slug","composio_version","error_code","vendor_request_id","sql","at"],"additionalProperties":false},"description":"The calls on this page, newest first."},"next_cursor":{"type":"string","nullable":true,"description":"Pass as `cursor` for the next page. Null on the last page."},"scoped_to_you":{"type":"boolean","description":"True when the list is narrowed to the caller's own calls and the calls made through connections they authorized. Always false for an API key, which sees the whole workspace."}},"required":["items","next_cursor","scoped_to_you"],"additionalProperties":false}}}},"400":{"description":"validation: a field failed validation; `field` names it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"unauthorized: no key, or an unknown, revoked or expired key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"insufficient_scope: the key lacks the route's scope, named in `required`. Or forbidden, or plan_limit when the plan does not include the API.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"not_found: the thing is not in this workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"rate_limited: the key's per-minute budget is spent. Retry after `Retry-After` seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/activity/summary":{"get":{"operationId":"activity.summary","summary":"This month's usage and the day or month buckets","description":"`month` is this UTC calendar month: metered calls, free calls and failed calls. `buckets` is the trailing series for a chart, one per UTC day (`days`, up to 90) or month (`months`, up to 24), zero-filled and oldest first. `month.plan` is null unless the key also holds `billing.read`.","tags":["activity"],"x-scope":"activity.read","x-limit":"read","security":[{"bearerAuth":["activity.read"]}],"parameters":[{"name":"period","in":"query","required":false,"schema":{"type":"string","enum":["day","month"],"default":"day","description":"The bucket size: `day` or `month`. Default `day`."},"description":"The bucket size: `day` or `month`. Default `day`."},{"name":"days","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":90,"default":14,"description":"Buckets when period=day (trailing, zero-filled, UTC)."},"description":"Buckets when period=day (trailing, zero-filled, UTC)."},{"name":"months","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":24,"default":12,"description":"Buckets when period=month (trailing, zero-filled, UTC)."},"description":"Buckets when period=month (trailing, zero-filled, UTC)."}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"period":{"type":"string","enum":["day","month"],"description":"The bucket size the request asked for."},"month":{"type":"object","properties":{"external_calls":{"type":"integer","description":"Metered vendor calls this month: the calls that count against the plan's included calls."},"internal_calls":{"type":"integer","description":"Free calls this month: analytics queries plus calls on connectors that are not metered."},"errors":{"type":"integer","description":"Failed vendor calls this month, metered or not."},"plan":{"type":"object","properties":{"name":{"type":"string","description":"The plan's display name."},"included_calls_per_month":{"type":"integer","description":"Calls the plan includes each month. 0 means every call is metered from the first one."}},"required":["name","included_calls_per_month"],"additionalProperties":false,"nullable":true,"description":"The plan's monthly allowance. Null unless the caller may see billing: an API key needs the `billing.read` scope as well."},"scoped_to_you":{"type":"boolean","description":"True when the counts cover only the caller's own calls and the calls made through connections they authorized. Always false for an API key."}},"required":["external_calls","internal_calls","errors","plan","scoped_to_you"],"additionalProperties":false,"description":"This UTC calendar month's usage."},"buckets":{"type":"array","items":{"type":"object","properties":{"at":{"type":"string","description":"The bucket's UTC date: `YYYY-MM-DD` when `period` is `day`, `YYYY-MM` when it is `month`."},"external":{"type":"integer","description":"Metered vendor calls in the bucket."},"internal":{"type":"integer","description":"Free calls in the bucket: analytics queries plus calls on connectors that are not metered."},"errors":{"type":"integer","description":"Failed vendor calls in the bucket."}},"required":["at","external","internal","errors"],"additionalProperties":false},"description":"One per day or month of the trailing range, zero-filled, oldest first."}},"required":["period","month","buckets"],"additionalProperties":false}}}},"400":{"description":"validation: a field failed validation; `field` names it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"unauthorized: no key, or an unknown, revoked or expired key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"insufficient_scope: the key lacks the route's scope, named in `required`. Or forbidden, or plan_limit when the plan does not include the API.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"not_found: the thing is not in this workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"rate_limited: the key's per-minute budget is spent. Retry after `Retry-After` seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/links":{"get":{"operationId":"links.list","summary":"List connect links","description":"A key sees every link in the workspace, oldest first, each with its status and per-item progress. URLs are never in the list: read one with `GET /v1/links/{id}/url`.","tags":["links"],"x-scope":"links.read","x-limit":"read","security":[{"bearerAuth":["links.read"]}],"parameters":[],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"links":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"The connect link's id."},"recipient_email":{"type":"string","description":"The address the link was made for."},"label":{"type":"string","nullable":true,"description":"A generated name that tells links apart in the dashboard, never derived from the recipient. Null when the link has none."},"status":{"type":"string","enum":["pending","connected","expired","revoked"],"description":"`pending`: live and waiting on at least one item. `connected`: every item is connected. `expired`: past `expires_at`. `revoked`: switched off by the sender. A resend brings an expired or revoked link back."},"expires_at":{"type":"string","nullable":true,"description":"When the URL stops working, ISO 8601 timestamp. Null for a link that never expires."},"consumed_at":{"type":"string","nullable":true,"description":"When the last item was connected, ISO 8601 timestamp. Null until every item is."},"revoked_at":{"type":"string","nullable":true,"description":"When the link was revoked, ISO 8601 timestamp. Null unless it is revoked now."},"created_by":{"type":"string","nullable":true,"description":"The user id of the member who sent it. Null when an API key did."},"created_at":{"type":"string","description":"When the link was first sent, ISO 8601 timestamp."},"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"The item's id: the `item_id` of `DELETE /v1/links/{id}/items/{item_id}`."},"vendor":{"type":"string","description":"The connector this item asks for, by vendor slug, e.g. gmail."},"connected_at":{"type":"string","nullable":true,"description":"When the recipient connected this one, ISO 8601 timestamp. Null while they have not."}},"required":["id","vendor","connected_at"],"additionalProperties":false},"description":"One per connector the link asks for, in the order they were added."}},"required":["id","recipient_email","label","status","expires_at","consumed_at","revoked_at","created_by","created_at","items"],"additionalProperties":false},"description":"The connect links the caller may see, oldest first."}},"required":["links"],"additionalProperties":false}}}},"400":{"description":"validation: a field failed validation; `field` names it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"unauthorized: no key, or an unknown, revoked or expired key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"insufficient_scope: the key lacks the route's scope, named in `required`. Or forbidden, or plan_limit when the plan does not include the API.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"not_found: the thing is not in this workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"rate_limited: the key's per-minute budget is spent. Retry after `Retry-After` seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"post":{"operationId":"links.create","summary":"Send a connect link","description":"Nothing is connected by this call: the response carries the URL to hand over, and `send_email: true` emails it too. Each recipient has one link per workspace, so sending to an address that already has one adds the new connectors to that link instead of making a second. The link keeps its URL, unless it had been revoked: then it reopens on a new URL and the revoked one stays dead. The recipient becomes a member of the workspace, so the plan's member limit applies. Connect links are on the Pro and Scale plans; below that the call answers 403 `plan_limit`.","tags":["links"],"x-scope":"links.write","x-limit":"write","security":[{"bearerAuth":["links.write"]}],"parameters":[],"responses":{"201":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"link":{"type":"object","properties":{"id":{"type":"string","description":"The connect link's id."},"recipient_email":{"type":"string","description":"The address the link was made for."},"label":{"type":"string","nullable":true,"description":"A generated name that tells links apart in the dashboard, never derived from the recipient. Null when the link has none."},"status":{"type":"string","enum":["pending","connected","expired","revoked"],"description":"`pending`: live and waiting on at least one item. `connected`: every item is connected. `expired`: past `expires_at`. `revoked`: switched off by the sender. A resend brings an expired or revoked link back."},"expires_at":{"type":"string","nullable":true,"description":"When the URL stops working, ISO 8601 timestamp. Null for a link that never expires."},"consumed_at":{"type":"string","nullable":true,"description":"When the last item was connected, ISO 8601 timestamp. Null until every item is."},"revoked_at":{"type":"string","nullable":true,"description":"When the link was revoked, ISO 8601 timestamp. Null unless it is revoked now."},"created_by":{"type":"string","nullable":true,"description":"The user id of the member who sent it. Null when an API key did."},"created_at":{"type":"string","description":"When the link was first sent, ISO 8601 timestamp."},"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"The item's id: the `item_id` of `DELETE /v1/links/{id}/items/{item_id}`."},"vendor":{"type":"string","description":"The connector this item asks for, by vendor slug, e.g. gmail."},"connected_at":{"type":"string","nullable":true,"description":"When the recipient connected this one, ISO 8601 timestamp. Null while they have not."}},"required":["id","vendor","connected_at"],"additionalProperties":false},"description":"One per connector the link asks for, in the order they were added."}},"required":["id","recipient_email","label","status","expires_at","consumed_at","revoked_at","created_by","created_at","items"],"additionalProperties":false,"description":"The link as it now stands."},"url":{"type":"string","description":"The link's live URL, to hand to the recipient."}},"required":["link","url"],"additionalProperties":false}}}},"400":{"description":"validation: a field failed validation; `field` names it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"unauthorized: no key, or an unknown, revoked or expired key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"insufficient_scope: the key lacks the route's scope, named in `required`. Or forbidden, or plan_limit when the plan does not include the API.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"not_found: the thing is not in this workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"rate_limited: the key's per-minute budget is spent. Retry after `Retry-After` seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"email":{"type":"string","format":"email","description":"Who will open the link and consent at each vendor. The page asks for this address."},"items":{"type":"array","items":{"type":"object","properties":{"vendor":{"type":"string","minLength":1,"maxLength":60,"description":"The connector to connect, e.g. gmail."},"tools":{"type":"array","items":{"type":"string","minLength":1},"maxItems":2000,"description":"The tools to switch on once connected. Omit for the catalog default."}},"required":["vendor"],"additionalProperties":false},"minItems":1,"maxItems":20,"description":"One per connector to connect."},"expires_in_hours":{"type":"integer","nullable":true,"description":"How long the link lives: 1, 24, 168, 336 or 720 hours, or null for never. Default 336 (14 days)."},"send_email":{"type":"boolean","description":"true also emails the link to that person. Default false: you deliver the URL yourself."}},"required":["email","items"],"additionalProperties":false},"example":{"email":"ops@example.com","items":[{"vendor":"gmail"}],"send_email":false}}}}}},"/v1/links/{id}":{"get":{"operationId":"links.get","summary":"Get a connect link","description":"Each item's `connected_at` shows how far the recipient got, and `status` becomes `connected` once every item is. The URL is not included: read it with `GET /v1/links/{id}/url`.","tags":["links"],"x-scope":"links.read","x-limit":"read","security":[{"bearerAuth":["links.read"]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","description":"The connect link's id."},"description":"The connect link's id."}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"link":{"type":"object","properties":{"id":{"type":"string","description":"The connect link's id."},"recipient_email":{"type":"string","description":"The address the link was made for."},"label":{"type":"string","nullable":true,"description":"A generated name that tells links apart in the dashboard, never derived from the recipient. Null when the link has none."},"status":{"type":"string","enum":["pending","connected","expired","revoked"],"description":"`pending`: live and waiting on at least one item. `connected`: every item is connected. `expired`: past `expires_at`. `revoked`: switched off by the sender. A resend brings an expired or revoked link back."},"expires_at":{"type":"string","nullable":true,"description":"When the URL stops working, ISO 8601 timestamp. Null for a link that never expires."},"consumed_at":{"type":"string","nullable":true,"description":"When the last item was connected, ISO 8601 timestamp. Null until every item is."},"revoked_at":{"type":"string","nullable":true,"description":"When the link was revoked, ISO 8601 timestamp. Null unless it is revoked now."},"created_by":{"type":"string","nullable":true,"description":"The user id of the member who sent it. Null when an API key did."},"created_at":{"type":"string","description":"When the link was first sent, ISO 8601 timestamp."},"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"The item's id: the `item_id` of `DELETE /v1/links/{id}/items/{item_id}`."},"vendor":{"type":"string","description":"The connector this item asks for, by vendor slug, e.g. gmail."},"connected_at":{"type":"string","nullable":true,"description":"When the recipient connected this one, ISO 8601 timestamp. Null while they have not."}},"required":["id","vendor","connected_at"],"additionalProperties":false},"description":"One per connector the link asks for, in the order they were added."}},"required":["id","recipient_email","label","status","expires_at","consumed_at","revoked_at","created_by","created_at","items"],"additionalProperties":false,"description":"The connect link, with each item's progress."}},"required":["link"],"additionalProperties":false}}}},"400":{"description":"validation: a field failed validation; `field` names it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"unauthorized: no key, or an unknown, revoked or expired key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"insufficient_scope: the key lacks the route's scope, named in `required`. Or forbidden, or plan_limit when the plan does not include the API.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"not_found: the thing is not in this workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"rate_limited: the key's per-minute budget is spent. Retry after `Retry-After` seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/links/{id}/url":{"get":{"operationId":"links.url","summary":"The link's live URL","description":"The URL stays the same until the link is reset or revoked, so it can be read again and handed over at any time. `url` is null once the link is revoked: `POST /v1/links/{id}/resend` reactivates it with a new URL.","tags":["links"],"x-scope":"links.read","x-limit":"read","security":[{"bearerAuth":["links.read"]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","description":"The connect link's id."},"description":"The connect link's id."}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string","nullable":true,"description":"The live URL to hand to the recipient. Null once the link is revoked."}},"required":["url"],"additionalProperties":false}}}},"400":{"description":"validation: a field failed validation; `field` names it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"unauthorized: no key, or an unknown, revoked or expired key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"insufficient_scope: the key lacks the route's scope, named in `required`. Or forbidden, or plan_limit when the plan does not include the API.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"not_found: the thing is not in this workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"rate_limited: the key's per-minute budget is spent. Retry after `Retry-After` seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/links/{id}/resend":{"post":{"operationId":"links.resend","summary":"Resend a connect link","description":"Emails the recipient the same link again and restarts its expiry from now; `send_email: false` skips the email, and the response carries the URL either way. An expired link comes back with the same URL, a revoked one with a new URL. A link whose every item is already connected is refused with 400, and like sending, a resend needs a plan that includes connect links.","tags":["links"],"x-scope":"links.write","x-limit":"write","security":[{"bearerAuth":["links.write"]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","description":"The connect link's id."},"description":"The connect link's id."}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"link":{"type":"object","properties":{"id":{"type":"string","description":"The connect link's id."},"recipient_email":{"type":"string","description":"The address the link was made for."},"label":{"type":"string","nullable":true,"description":"A generated name that tells links apart in the dashboard, never derived from the recipient. Null when the link has none."},"status":{"type":"string","enum":["pending","connected","expired","revoked"],"description":"`pending`: live and waiting on at least one item. `connected`: every item is connected. `expired`: past `expires_at`. `revoked`: switched off by the sender. A resend brings an expired or revoked link back."},"expires_at":{"type":"string","nullable":true,"description":"When the URL stops working, ISO 8601 timestamp. Null for a link that never expires."},"consumed_at":{"type":"string","nullable":true,"description":"When the last item was connected, ISO 8601 timestamp. Null until every item is."},"revoked_at":{"type":"string","nullable":true,"description":"When the link was revoked, ISO 8601 timestamp. Null unless it is revoked now."},"created_by":{"type":"string","nullable":true,"description":"The user id of the member who sent it. Null when an API key did."},"created_at":{"type":"string","description":"When the link was first sent, ISO 8601 timestamp."},"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"The item's id: the `item_id` of `DELETE /v1/links/{id}/items/{item_id}`."},"vendor":{"type":"string","description":"The connector this item asks for, by vendor slug, e.g. gmail."},"connected_at":{"type":"string","nullable":true,"description":"When the recipient connected this one, ISO 8601 timestamp. Null while they have not."}},"required":["id","vendor","connected_at"],"additionalProperties":false},"description":"One per connector the link asks for, in the order they were added."}},"required":["id","recipient_email","label","status","expires_at","consumed_at","revoked_at","created_by","created_at","items"],"additionalProperties":false,"description":"The link as it now stands."},"url":{"type":"string","description":"The link's live URL, to hand to the recipient."}},"required":["link","url"],"additionalProperties":false}}}},"400":{"description":"validation: a field failed validation; `field` names it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"unauthorized: no key, or an unknown, revoked or expired key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"insufficient_scope: the key lacks the route's scope, named in `required`. Or forbidden, or plan_limit when the plan does not include the API.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"not_found: the thing is not in this workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"rate_limited: the key's per-minute budget is spent. Retry after `Retry-After` seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"expires_in_hours":{"type":"integer","nullable":true,"description":"A new lifetime, counted from now: 1, 24, 168, 336 or 720 hours, or null for never. Omit to keep the link's current lifetime, restarted from now."},"send_email":{"type":"boolean","description":"Default true: a resend emails the SAME link again. false only re-arms the expiry (and reactivates a revoked link) and answers the URL."}},"additionalProperties":false},"example":{"send_email":false}}}}}},"/v1/links/{id}/reset":{"post":{"operationId":"links.reset","summary":"Mint a new URL for a connect link","description":"The old URL stops working at once and the response carries the new one. The recipient, the items and their progress are unchanged, and no email is sent, so deliver the new URL yourself. A revoked link is refused with 400: reactivate it with `POST /v1/links/{id}/resend` instead.","tags":["links"],"x-scope":"links.write","x-limit":"write","security":[{"bearerAuth":["links.write"]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","description":"The connect link's id."},"description":"The connect link's id."}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string","description":"The link's new URL. The previous one no longer opens."}},"required":["url"],"additionalProperties":false}}}},"400":{"description":"validation: a field failed validation; `field` names it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"unauthorized: no key, or an unknown, revoked or expired key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"insufficient_scope: the key lacks the route's scope, named in `required`. Or forbidden, or plan_limit when the plan does not include the API.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"not_found: the thing is not in this workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"rate_limited: the key's per-minute budget is spent. Retry after `Retry-After` seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/links/{id}/revoke":{"post":{"operationId":"links.revoke","summary":"Revoke a connect link","description":"The URL stops opening at once; connections the recipient already made through it stay. Revoking twice is harmless, and `POST /v1/links/{id}/resend` brings the link back with a new URL. A link whose every item is connected has nothing to revoke and answers 400.","tags":["links"],"x-scope":"links.write","x-limit":"write","security":[{"bearerAuth":["links.write"]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","description":"The connect link's id."},"description":"The connect link's id."}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"link":{"type":"object","properties":{"id":{"type":"string","description":"The connect link's id."},"recipient_email":{"type":"string","description":"The address the link was made for."},"label":{"type":"string","nullable":true,"description":"A generated name that tells links apart in the dashboard, never derived from the recipient. Null when the link has none."},"status":{"type":"string","enum":["pending","connected","expired","revoked"],"description":"`pending`: live and waiting on at least one item. `connected`: every item is connected. `expired`: past `expires_at`. `revoked`: switched off by the sender. A resend brings an expired or revoked link back."},"expires_at":{"type":"string","nullable":true,"description":"When the URL stops working, ISO 8601 timestamp. Null for a link that never expires."},"consumed_at":{"type":"string","nullable":true,"description":"When the last item was connected, ISO 8601 timestamp. Null until every item is."},"revoked_at":{"type":"string","nullable":true,"description":"When the link was revoked, ISO 8601 timestamp. Null unless it is revoked now."},"created_by":{"type":"string","nullable":true,"description":"The user id of the member who sent it. Null when an API key did."},"created_at":{"type":"string","description":"When the link was first sent, ISO 8601 timestamp."},"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"The item's id: the `item_id` of `DELETE /v1/links/{id}/items/{item_id}`."},"vendor":{"type":"string","description":"The connector this item asks for, by vendor slug, e.g. gmail."},"connected_at":{"type":"string","nullable":true,"description":"When the recipient connected this one, ISO 8601 timestamp. Null while they have not."}},"required":["id","vendor","connected_at"],"additionalProperties":false},"description":"One per connector the link asks for, in the order they were added."}},"required":["id","recipient_email","label","status","expires_at","consumed_at","revoked_at","created_by","created_at","items"],"additionalProperties":false,"description":"The link after the change, with `status` now `revoked`."}},"required":["link"],"additionalProperties":false}}}},"400":{"description":"validation: a field failed validation; `field` names it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"unauthorized: no key, or an unknown, revoked or expired key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"insufficient_scope: the key lacks the route's scope, named in `required`. Or forbidden, or plan_limit when the plan does not include the API.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"not_found: the thing is not in this workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"rate_limited: the key's per-minute budget is spent. Retry after `Retry-After` seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/links/{id}/items/{item_id}":{"delete":{"operationId":"links.items.delete","summary":"Take a connector off a connect link","description":"The link stays live for the rest of its items. A connection the recipient already made for that connector is not disconnected. The last item cannot be removed: revoke the link instead. If every remaining item is already connected, the link's `status` becomes `connected`.","tags":["links"],"x-scope":"links.write","x-limit":"write","security":[{"bearerAuth":["links.write"]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","description":"The connect link's id."},"description":"The connect link's id."},{"name":"item_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","description":"One of the link's items (a connector on its checklist)."},"description":"One of the link's items (a connector on its checklist)."}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"link":{"type":"object","properties":{"id":{"type":"string","description":"The connect link's id."},"recipient_email":{"type":"string","description":"The address the link was made for."},"label":{"type":"string","nullable":true,"description":"A generated name that tells links apart in the dashboard, never derived from the recipient. Null when the link has none."},"status":{"type":"string","enum":["pending","connected","expired","revoked"],"description":"`pending`: live and waiting on at least one item. `connected`: every item is connected. `expired`: past `expires_at`. `revoked`: switched off by the sender. A resend brings an expired or revoked link back."},"expires_at":{"type":"string","nullable":true,"description":"When the URL stops working, ISO 8601 timestamp. Null for a link that never expires."},"consumed_at":{"type":"string","nullable":true,"description":"When the last item was connected, ISO 8601 timestamp. Null until every item is."},"revoked_at":{"type":"string","nullable":true,"description":"When the link was revoked, ISO 8601 timestamp. Null unless it is revoked now."},"created_by":{"type":"string","nullable":true,"description":"The user id of the member who sent it. Null when an API key did."},"created_at":{"type":"string","description":"When the link was first sent, ISO 8601 timestamp."},"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"The item's id: the `item_id` of `DELETE /v1/links/{id}/items/{item_id}`."},"vendor":{"type":"string","description":"The connector this item asks for, by vendor slug, e.g. gmail."},"connected_at":{"type":"string","nullable":true,"description":"When the recipient connected this one, ISO 8601 timestamp. Null while they have not."}},"required":["id","vendor","connected_at"],"additionalProperties":false},"description":"One per connector the link asks for, in the order they were added."}},"required":["id","recipient_email","label","status","expires_at","consumed_at","revoked_at","created_by","created_at","items"],"additionalProperties":false,"description":"The link with the item removed."}},"required":["link"],"additionalProperties":false}}}},"400":{"description":"validation: a field failed validation; `field` names it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"unauthorized: no key, or an unknown, revoked or expired key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"insufficient_scope: the key lacks the route's scope, named in `required`. Or forbidden, or plan_limit when the plan does not include the API.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"not_found: the thing is not in this workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"rate_limited: the key's per-minute budget is spent. Retry after `Retry-After` seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/billing":{"get":{"operationId":"billing.get","summary":"The plan, this month's usage and the credit balance","description":"The figures are for the whole account that owns the key's workspace, never one workspace, and the month is the UTC calendar month. `billing_active` says whether a card is on file; `scheduled_downgrade` and `lapse` are null unless one is in progress. Billing is read-only over the API: to change the plan or the card, send a person to the page `GET /v1/billing/manage-url` returns.","tags":["billing"],"x-scope":"billing.read","x-limit":"read","security":[{"bearerAuth":["billing.read"]}],"parameters":[],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"billing":{"type":"object","properties":{"plan":{"type":"object","properties":{"id":{"type":"string","description":"The plan's id."},"name":{"type":"string","description":"The plan's display name."},"price_monthly_cents":{"type":"integer","description":"The plan's monthly fee, in cents."},"cents_per_call":{"type":"number","description":"What one external tool call costs beyond the included calls, in cents."},"included_calls_per_month":{"type":"integer","description":"External tool calls included each month. 0 means every call is metered from the first one."}},"required":["id","name","price_monthly_cents","cents_per_call","included_calls_per_month"],"additionalProperties":false,"description":"The account's current plan."},"month_external_calls":{"type":"integer","description":"Billable external tool calls this UTC calendar month, across every workspace on the account."},"month_billable_calls":{"type":"integer","description":"The part of `month_external_calls` beyond the plan's included calls. These calls use credits."},"granted":{"type":"integer","description":"Credits granted over the account's lifetime (signup, packs, promos, adjustments, rewards)."},"consumed":{"type":"integer","description":"Credits used over the account's lifetime."},"balance":{"type":"integer","description":"`granted` minus `consumed`. May go negative when usage outran the credits granted."},"billing_active":{"type":"boolean","description":"True when a live subscription exists: a card is on file, so calls beyond the credits can be billed."},"dodo_mode":{"type":"string","enum":["test","live"],"description":"The payment provider's environment, `test` or `live`. The dashboard's card panel reads it."},"scheduled_downgrade":{"type":"object","properties":{"plan_id":{"type":"string","description":"The id of the plan the account will move to."},"plan_name":{"type":"string","description":"That plan's name."},"effective_at":{"type":"string","description":"When the downgrade takes effect (the next billing date), as the payment provider's timestamp."},"losing":{"type":"object","properties":{"premium_connections":{"type":"integer","description":"Premium connections that will come off profiles when the plan changes. 0 when the target plan still allows them."},"public_links":{"type":"boolean","description":"True when the target plan does not include connect links."}},"required":["premium_connections","public_links"],"additionalProperties":false,"description":"What the target plan drops that the account uses today."}},"required":["plan_id","plan_name","effective_at","losing"],"additionalProperties":false,"nullable":true,"description":"A downgrade scheduled for the next billing date. Null when none is scheduled."},"lapse":{"type":"object","properties":{"plan_id":{"type":"string","description":"The id of the plan whose subscription ended."},"plan_name":{"type":"string","description":"That plan's name."},"ended_at":{"type":"string","description":"When the subscription ended, ISO 8601 timestamp."},"grace_ends_at":{"type":"string","description":"When the grace period runs out and the account moves to the free plan, ISO 8601 timestamp."}},"required":["plan_id","plan_name","ended_at","grace_ends_at"],"additionalProperties":false,"nullable":true,"description":"A paid plan whose subscription ended and is in its grace period. Null otherwise."},"workspaces":{"type":"object","properties":{"included":{"type":"integer","nullable":true,"description":"Workspaces the plan includes. Null means unlimited."},"extra":{"type":"integer","description":"Extra workspaces bought on top of the plan's. 0 unless the plan sells extras."},"used":{"type":"integer","description":"Workspaces the account holds now. A paused workspace counts; one pending deletion does not."},"extra_price_cents":{"type":"integer","nullable":true,"description":"The monthly price of one extra workspace, in cents. Null when the plan does not sell extras."},"monthly_cents":{"type":"integer","description":"The plan's monthly fee with the extras, in cents, before metered calls."},"next_billing_at":{"type":"string","nullable":true,"description":"The next billing date, as the payment provider's timestamp. Null when there is no subscription or the plan does not sell extra workspaces."},"pending_extra":{"type":"integer","nullable":true,"description":"The extra count after a removal scheduled for the next billing date. Null when none is scheduled."}},"required":["included","extra","used","extra_price_cents","monthly_cents","next_billing_at","pending_extra"],"additionalProperties":false,"nullable":true,"description":"Workspace slots: what the plan includes, the extras bought and any removal waiting for the billing date."}},"required":["plan","month_external_calls","month_billable_calls","granted","consumed","balance","billing_active","dodo_mode","scheduled_downgrade","lapse","workspaces"],"additionalProperties":false,"description":"The account's billing position right now."}},"required":["billing"],"additionalProperties":false}}}},"400":{"description":"validation: a field failed validation; `field` names it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"unauthorized: no key, or an unknown, revoked or expired key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"insufficient_scope: the key lacks the route's scope, named in `required`. Or forbidden, or plan_limit when the plan does not include the API.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"not_found: the thing is not in this workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"rate_limited: the key's per-minute budget is spent. Retry after `Retry-After` seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/billing/invoices":{"get":{"operationId":"billing.invoices","summary":"List payments and invoices","description":"Every payment the payment provider holds for the account, newest first, 20 a page, failed ones included. Read `outcome` for what a payment came to; `invoice_url` is set only where money moved. Pass `next_cursor` back as `cursor` for the next page.","tags":["billing"],"x-scope":"billing.read","x-limit":"read","security":[{"bearerAuth":["billing.read"]}],"parameters":[{"name":"cursor","in":"query","required":false,"schema":{"type":"string","minLength":1,"maxLength":64,"description":"The `next_cursor` of the previous page."},"description":"The `next_cursor` of the previous page."}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"invoices":{"type":"array","items":{"type":"object","properties":{"payment_id":{"type":"string","description":"The payment's id at the payment provider."},"total_amount_cents":{"type":"integer","description":"The payment's total, in cents of `currency`."},"currency":{"type":"string","description":"The currency the payment was made in, e.g. USD."},"status":{"type":"string","nullable":true,"description":"The payment provider's raw status, kept for support conversations. Read `outcome` instead."},"outcome":{"type":"string","enum":["paid","declined","pending","incomplete","cancelled","refunded","partly_refunded"],"description":"What the payment came to. `paid`: charged. `declined`: the charge failed. `pending`: still in progress. `incomplete`: waiting on the customer, as with an abandoned checkout. `cancelled`: cancelled. `refunded` and `partly_refunded`: charged, then returned in full or in part."},"decline_reason":{"type":"string","nullable":true,"description":"Why a declined payment failed, in plain words. Null unless `outcome` is `declined`."},"card":{"type":"object","properties":{"network":{"type":"string","nullable":true,"description":"The card network, e.g. VISA. Null when not reported."},"type":{"type":"string","nullable":true,"description":"The card type, credit or debit. Null when not reported."},"last4":{"type":"string","description":"The card's last four digits."}},"required":["network","type","last4"],"additionalProperties":false,"nullable":true,"description":"The card the payment was charged to, or tried to be. Null when the payment provider reports none."},"created_at":{"type":"string","description":"When the payment was made or attempted, as the payment provider's timestamp."},"invoice_url":{"type":"string","nullable":true,"description":"A link to the invoice PDF. Set only where money moved: `outcome` is `paid`, `refunded` or `partly_refunded`."}},"required":["payment_id","total_amount_cents","currency","status","outcome","decline_reason","card","created_at","invoice_url"],"additionalProperties":false},"description":"The payments on this page, newest first."},"next_cursor":{"type":"string","nullable":true,"description":"Pass as `cursor` for the next page. Null on the last page."}},"required":["invoices","next_cursor"],"additionalProperties":false}}}},"400":{"description":"validation: a field failed validation; `field` names it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"unauthorized: no key, or an unknown, revoked or expired key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"insufficient_scope: the key lacks the route's scope, named in `required`. Or forbidden, or plan_limit when the plan does not include the API.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"not_found: the thing is not in this workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"rate_limited: the key's per-minute budget is spent. Retry after `Retry-After` seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/billing/credits":{"get":{"operationId":"billing.credits","summary":"The credit balance and its ledger","description":"`credits` is where the account stands now: the plan's monthly allowance used and remaining, the credits left, and when the allowance resets. Calls draw on the allowance first, then on credits; after both, a call is billed at `cents_per_call` when a card is on file, and calls stop when none is. `grants` is the ledger of credits granted, newest first, 20 a page: pass `next_cursor` back as `cursor` for the next.","tags":["billing"],"x-scope":"billing.read","x-limit":"read","security":[{"bearerAuth":["billing.read"]}],"parameters":[{"name":"cursor","in":"query","required":false,"schema":{"type":"string","minLength":1,"maxLength":64,"description":"The `next_cursor` of the previous page of the ledger."},"description":"The `next_cursor` of the previous page of the ledger."}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"credits":{"type":"object","properties":{"plan_name":{"type":"string","description":"The name of the account's plan."},"included_per_month":{"type":"integer","description":"The plan's monthly call allowance. It resets on the 1st (UTC) and does not roll over."},"used_this_month":{"type":"integer","description":"Billable external tool calls so far this UTC month, across every workspace on the account."},"included_remaining":{"type":"integer","description":"What is left of this month's allowance. Never below 0."},"free_credits":{"type":"integer","description":"The credit balance: credits granted minus credits used, never below 0. Calls draw on it after the allowance."},"total_remaining":{"type":"integer","description":"`included_remaining` plus `free_credits`: calls left before per-call billing starts."},"cents_per_call":{"type":"number","description":"What one call costs once the allowance and the credits are used, in cents."},"billing_active":{"type":"boolean","description":"True when a live subscription exists, so a card is on file for per-call billing."},"resets_at":{"type":"string","description":"When the allowance resets: the 1st of next month (UTC), ISO 8601 timestamp."}},"required":["plan_name","included_per_month","used_this_month","included_remaining","free_credits","total_remaining","cents_per_call","billing_active","resets_at"],"additionalProperties":false,"description":"Where the account stands on calls right now."},"grants":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"The ledger entry's id."},"credits":{"type":"integer","description":"Credits this entry added. Always positive: the ledger only adds. One credit pays for one external tool call."},"source":{"type":"string","enum":["signup","pack","promo","adjustment","reward"],"description":"Where the credits came from. `signup`: granted to a new account. `pack`: a purchased credit pack. `promo`: a promotion. `adjustment`: entered by FloConnector support. `reward`: earned through the rewards program."},"note":{"type":"string","nullable":true,"description":"A short note recorded with the entry. Null when there is none."},"created_at":{"type":"string","description":"When the credits were granted, ISO 8601 timestamp."}},"required":["id","credits","source","note","created_at"],"additionalProperties":false},"description":"One page of the credit ledger, newest first."},"next_cursor":{"type":"string","nullable":true,"description":"Pass as `cursor` for the next page of `grants`. Null on the last page."},"total":{"type":"integer","description":"How many entries the ledger holds in all, across every page."}},"required":["credits","grants","next_cursor","total"],"additionalProperties":false}}}},"400":{"description":"validation: a field failed validation; `field` names it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"unauthorized: no key, or an unknown, revoked or expired key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"insufficient_scope: the key lacks the route's scope, named in `required`. Or forbidden, or plan_limit when the plan does not include the API.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"not_found: the thing is not in this workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"rate_limited: the key's per-minute budget is spent. Retry after `Retry-After` seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/billing/manage-url":{"get":{"operationId":"billing.manageUrl","summary":"The dashboard page for plan and payment changes","description":"The API has no plan change, card update or credit purchase. This returns the dashboard's billing page for the key's workspace, where a signed-in person changes the plan, adds a card or buys credits.","tags":["billing"],"x-scope":"billing.read","x-limit":"read","security":[{"bearerAuth":["billing.read"]}],"parameters":[],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string","description":"The dashboard's billing page for this workspace: where to send a person to change the plan or the card."}},"required":["url"],"additionalProperties":false}}}},"400":{"description":"validation: a field failed validation; `field` names it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"unauthorized: no key, or an unknown, revoked or expired key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"insufficient_scope: the key lacks the route's scope, named in `required`. Or forbidden, or plan_limit when the plan does not include the API.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"not_found: the thing is not in this workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"rate_limited: the key's per-minute budget is spent. Retry after `Retry-After` seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/members":{"get":{"operationId":"members.list","summary":"List the account's members","description":"Members belong to the account that owns the key's workspace, so the list covers every workspace on it. Each person appears once, with their role and the workspaces they reach in `grants`; a grant with a null `workspace_id` covers the whole account. The `user_id` values are what `PATCH /v1/members/{id}` and `DELETE /v1/members/{id}` take.","tags":["members"],"x-scope":"members.read","x-limit":"read","security":[{"bearerAuth":["members.read"]}],"parameters":[],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"members":{"type":"array","items":{"type":"object","properties":{"user_id":{"type":"string","description":"The person's user id: the `{id}` of `PATCH /v1/members/{id}` and `DELETE /v1/members/{id}`."},"email":{"type":"string","description":"Their sign-in email."},"name":{"type":"string","nullable":true,"description":"Their display name. Null until they set one."},"is_primary":{"type":"boolean","description":"True for the primary owner, the person who created the account. Their role cannot be changed and they cannot be removed."},"role":{"type":"string","enum":["owner","admin","member"],"description":"Their position on the role ladder: `owner`, `admin` or `member`. A named role stands on one of the three, and the owner rules read this."},"role_id":{"type":"string","description":"The id of the named role they hold."},"role_name":{"type":"string","description":"That role's name."},"grants":{"type":"array","items":{"type":"object","properties":{"membership_id":{"type":"string","description":"The grant's id."},"workspace_id":{"type":"string","nullable":true,"description":"The workspace this grant reaches. Null means the whole account, including workspaces created later."},"workspace_name":{"type":"string","nullable":true,"description":"That workspace's name. Null for a whole-account grant."},"connection_count":{"type":"integer","description":"Connections this person authorized within the grant's reach. Removing the grant deletes them."},"created_at":{"type":"string","description":"When the grant was made, ISO 8601 timestamp."}},"required":["membership_id","workspace_id","workspace_name","connection_count","created_at"],"additionalProperties":false},"description":"Every scope the person reaches, oldest first: the whole account or single workspaces. Never empty."},"connections_by_workspace":{"type":"object","additionalProperties":{"type":"integer"},"description":"How many connections this person authorized in each workspace of the account, keyed by workspace id. Workspaces with none are left out."},"created_at":{"type":"string","description":"When they joined the account (their earliest grant), ISO 8601 timestamp."}},"required":["user_id","email","name","is_primary","role","role_id","role_name","grants","connections_by_workspace","created_at"],"additionalProperties":false},"description":"One entry per person on the account, longest-standing member first."}},"required":["members"],"additionalProperties":false}}}},"400":{"description":"validation: a field failed validation; `field` names it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"unauthorized: no key, or an unknown, revoked or expired key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"insufficient_scope: the key lacks the route's scope, named in `required`. Or forbidden, or plan_limit when the plan does not include the API.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"not_found: the thing is not in this workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"rate_limited: the key's per-minute budget is spent. Retry after `Retry-After` seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/members/invites":{"get":{"operationId":"members.invites.list","summary":"List pending invites","description":"Only invites that are still open: accepted and expired ones are left out. Each shows the role and the workspaces the acceptance will grant; an empty `workspace_ids` means the whole account.","tags":["members"],"x-scope":"members.read","x-limit":"read","security":[{"bearerAuth":["members.read"]}],"parameters":[],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"invites":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"The invite's id."},"email":{"type":"string","description":"The address invited."},"role":{"type":"string","enum":["owner","admin","member"],"description":"The position on the role ladder the acceptance grants: `owner`, `admin` or `member`."},"role_id":{"type":"string","nullable":true,"description":"The id of the named role the invite grants. Null on older invites that carry only a ladder role."},"role_name":{"type":"string","nullable":true,"description":"That role's name. Null when `role_id` is."},"workspace_ids":{"type":"array","items":{"type":"string"},"description":"Every workspace the acceptance grants. Empty means the whole account."},"workspace_id":{"type":"string","nullable":true,"description":"The workspace, when the invite names exactly one. Null otherwise: read `workspace_ids`."},"workspace_name":{"type":"string","nullable":true,"description":"The names of those workspaces, comma-separated. Null for a whole-account invite."},"expires_at":{"type":"string","description":"When the invite's link stops working, ISO 8601 timestamp."},"created_at":{"type":"string","description":"When the invite was first sent, ISO 8601 timestamp."}},"required":["id","email","role","role_id","role_name","workspace_ids","workspace_id","workspace_name","expires_at","created_at"],"additionalProperties":false},"description":"The account's open invites, oldest first."}},"required":["invites"],"additionalProperties":false}}}},"400":{"description":"validation: a field failed validation; `field` names it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"unauthorized: no key, or an unknown, revoked or expired key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"insufficient_scope: the key lacks the route's scope, named in `required`. Or forbidden, or plan_limit when the plan does not include the API.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"not_found: the thing is not in this workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"rate_limited: the key's per-minute budget is spent. Retry after `Retry-After` seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"post":{"operationId":"members.invites.create","summary":"Invite a member","description":"FloConnector emails the invite and nothing changes until the person accepts; it expires after 7 days. Inviting an address that already has a pending invite refreshes that invite with the role and workspaces given now, instead of making a second. Someone who is already a member is refused unless the invite names specific workspaces. Only an owner can invite an owner, so a key cannot, and the plan's member limit applies.","tags":["members"],"x-scope":"members.invite","x-limit":"write","security":[{"bearerAuth":["members.invite"]}],"parameters":[],"responses":{"201":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"invite":{"type":"object","properties":{"id":{"type":"string","description":"The invite's id."},"email":{"type":"string","description":"The address invited."},"role":{"type":"string","enum":["owner","admin","member"],"description":"The position on the role ladder the acceptance grants: `owner`, `admin` or `member`."},"role_id":{"type":"string","nullable":true,"description":"The id of the named role the invite grants. Null on older invites that carry only a ladder role."},"role_name":{"type":"string","nullable":true,"description":"That role's name. Null when `role_id` is."},"workspace_ids":{"type":"array","items":{"type":"string"},"description":"Every workspace the acceptance grants. Empty means the whole account."},"workspace_id":{"type":"string","nullable":true,"description":"The workspace, when the invite names exactly one. Null otherwise: read `workspace_ids`."},"workspace_name":{"type":"string","nullable":true,"description":"The names of those workspaces, comma-separated. Null for a whole-account invite."},"expires_at":{"type":"string","description":"When the invite's link stops working, ISO 8601 timestamp."},"created_at":{"type":"string","description":"When the invite was first sent, ISO 8601 timestamp."}},"required":["id","email","role","role_id","role_name","workspace_ids","workspace_id","workspace_name","expires_at","created_at"],"additionalProperties":false,"description":"The invite as sent, or the refreshed one when the address already had one pending."}},"required":["invite"],"additionalProperties":false}}}},"400":{"description":"validation: a field failed validation; `field` names it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"unauthorized: no key, or an unknown, revoked or expired key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"insufficient_scope: the key lacks the route's scope, named in `required`. Or forbidden, or plan_limit when the plan does not include the API.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"not_found: the thing is not in this workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"rate_limited: the key's per-minute budget is spent. Retry after `Retry-After` seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"email":{"type":"string","format":"email","description":"The address to invite. If it already has a pending invite, that invite is refreshed instead of a second being made."},"role":{"type":"string","enum":["owner","admin","member"],"description":"The ladder role to grant. Default member. Only an owner may invite an owner."},"role_id":{"type":"string","format":"uuid","description":"A named role (custom roles, Pro+) instead of `role`."},"workspace_ids":{"type":"array","items":{"type":"string","format":"uuid"},"maxItems":50,"description":"The workspaces the acceptance grants. Omit or [] for the whole account."}},"required":["email"],"additionalProperties":false},"example":{"email":"new.person@example.com","role":"member"}}}}}},"/v1/members/{id}":{"patch":{"operationId":"members.update","summary":"Change a member's role","description":"The new role applies to every workspace the person reaches, and any per-person permission overrides they held are cleared. The owner rules still apply: the primary owner cannot be changed, an owner can only step down themselves, and only an owner can make someone an owner, so a key can do none of these (403 `forbidden`). `{id}` is the member's `user_id`.","tags":["members"],"x-scope":"members.manage","x-dangerous":true,"x-limit":"write","security":[{"bearerAuth":["members.manage"]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","description":"The member's USER id."},"description":"The member's USER id."}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"member":{"type":"object","properties":{"user_id":{"type":"string","description":"The person's user id: the `{id}` of `PATCH /v1/members/{id}` and `DELETE /v1/members/{id}`."},"email":{"type":"string","description":"Their sign-in email."},"name":{"type":"string","nullable":true,"description":"Their display name. Null until they set one."},"is_primary":{"type":"boolean","description":"True for the primary owner, the person who created the account. Their role cannot be changed and they cannot be removed."},"role":{"type":"string","enum":["owner","admin","member"],"description":"Their position on the role ladder: `owner`, `admin` or `member`. A named role stands on one of the three, and the owner rules read this."},"role_id":{"type":"string","description":"The id of the named role they hold."},"role_name":{"type":"string","description":"That role's name."},"grants":{"type":"array","items":{"type":"object","properties":{"membership_id":{"type":"string","description":"The grant's id."},"workspace_id":{"type":"string","nullable":true,"description":"The workspace this grant reaches. Null means the whole account, including workspaces created later."},"workspace_name":{"type":"string","nullable":true,"description":"That workspace's name. Null for a whole-account grant."},"connection_count":{"type":"integer","description":"Connections this person authorized within the grant's reach. Removing the grant deletes them."},"created_at":{"type":"string","description":"When the grant was made, ISO 8601 timestamp."}},"required":["membership_id","workspace_id","workspace_name","connection_count","created_at"],"additionalProperties":false},"description":"Every scope the person reaches, oldest first: the whole account or single workspaces. Never empty."},"connections_by_workspace":{"type":"object","additionalProperties":{"type":"integer"},"description":"How many connections this person authorized in each workspace of the account, keyed by workspace id. Workspaces with none are left out."},"created_at":{"type":"string","description":"When they joined the account (their earliest grant), ISO 8601 timestamp."}},"required":["user_id","email","name","is_primary","role","role_id","role_name","grants","connections_by_workspace","created_at"],"additionalProperties":false,"description":"The member with their new role."}},"required":["member"],"additionalProperties":false}}}},"400":{"description":"validation: a field failed validation; `field` names it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"unauthorized: no key, or an unknown, revoked or expired key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"insufficient_scope: the key lacks the route's scope, named in `required`. Or forbidden, or plan_limit when the plan does not include the API.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"not_found: the thing is not in this workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"rate_limited: the key's per-minute budget is spent. Retry after `Retry-After` seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"role":{"type":"string","enum":["owner","admin","member"],"description":"The ladder role."},"role_id":{"type":"string","format":"uuid","description":"A named role instead of `role`."}},"additionalProperties":false},"example":{"role":"member"}}}}},"delete":{"operationId":"members.remove","summary":"Remove a member","description":"The person loses every workspace on the account at once. The connections they authorized in those workspaces are deleted, and pending connect links sent to them are revoked. The owner rules still apply: an owner can only leave themselves and the primary owner is never removed, so a key cannot remove an owner (403 `forbidden`).","tags":["members"],"x-scope":"members.manage","x-dangerous":true,"x-limit":"write","security":[{"bearerAuth":["members.manage"]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","description":"The member's USER id."},"description":"The member's USER id."}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true],"description":"Always true: the member was removed."}},"required":["ok"],"additionalProperties":false}}}},"400":{"description":"validation: a field failed validation; `field` names it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"unauthorized: no key, or an unknown, revoked or expired key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"insufficient_scope: the key lacks the route's scope, named in `required`. Or forbidden, or plan_limit when the plan does not include the API.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"not_found: the thing is not in this workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"rate_limited: the key's per-minute budget is spent. Retry after `Retry-After` seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/members/invites/{id}":{"delete":{"operationId":"members.invites.delete","summary":"Cancel an invite","description":"The emailed invite link stops working at once. Only an open invite can be cancelled: an accepted or expired one answers 404, and someone who already accepted stays a member.","tags":["members"],"x-scope":"members.invite","x-limit":"write","security":[{"bearerAuth":["members.invite"]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","description":"The invite's id."},"description":"The invite's id."}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true],"description":"Always true: the invite was cancelled."}},"required":["ok"],"additionalProperties":false}}}},"400":{"description":"validation: a field failed validation; `field` names it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"unauthorized: no key, or an unknown, revoked or expired key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"insufficient_scope: the key lacks the route's scope, named in `required`. Or forbidden, or plan_limit when the plan does not include the API.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"not_found: the thing is not in this workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"rate_limited: the key's per-minute budget is spent. Retry after `Retry-After` seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}}},"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer","description":"A workspace API key. Scopes: tables.read, tables.write, tables.manage, tables.delete, media.read, media.write, media.manage, skills.read, skills.write, skills.publish, skills.manage, skills.delete, connectors.read, connections.read, connections.write, connections.delete, profiles.read, profiles.write, profiles.delete, activity.read, links.read, links.write, billing.read, billing.manage, members.read, members.invite, members.manage.","x-scopes":[{"name":"tables.read","category":"tables","description":"List tables and read records.","implies":[],"dangerous":false,"default":true},{"name":"tables.write","category":"tables","description":"Add, change and delete records.","implies":["tables.read"],"dangerous":false,"default":true},{"name":"tables.manage","category":"tables","description":"Create tables, change their fields, archive and restore them.","implies":["tables.write"],"dangerous":false,"default":false},{"name":"tables.delete","category":"tables","description":"Permanently delete a table and every record in it.","implies":["tables.manage"],"dangerous":true,"default":false},{"name":"media.read","category":"media","description":"List files, read their details and download them.","implies":[],"dangerous":false,"default":true},{"name":"media.write","category":"media","description":"Upload, rename, move, pin, share and delete files, make folders, and make or revoke public links and bundles.","implies":["media.read"],"dangerous":false,"default":true},{"name":"media.manage","category":"media","description":"Rename and delete folders, set what happens when storage is full.","implies":["media.write"],"dangerous":false,"default":false},{"name":"skills.read","category":"skills","description":"List skills and collections and read their contents.","implies":[],"dangerous":false,"default":true},{"name":"skills.write","category":"skills","description":"Create and edit skill drafts, copy and archive skills, import bundles, install library skills as copies.","implies":["skills.read"],"dangerous":false,"default":true},{"name":"skills.publish","category":"skills","description":"Publish a skill so profiles serve it; install library skills as managed.","implies":["skills.write"],"dangerous":false,"default":false},{"name":"skills.manage","category":"skills","description":"Create, edit and archive collections, the unit a profile attaches.","implies":["skills.publish"],"dangerous":false,"default":false},{"name":"skills.delete","category":"skills","description":"Permanently delete skills and collections.","implies":["skills.manage"],"dangerous":true,"default":false},{"name":"connectors.read","category":"connectors","description":"Read the connector catalog and each connector's tools.","implies":[],"dangerous":false,"default":true},{"name":"connections.read","category":"connections","description":"List the workspace's connections and their tools.","implies":[],"dangerous":false,"default":true},{"name":"connections.write","category":"connections","description":"Start a connect flow (a connect URL for a person), rename a connection, choose its tools.","implies":["connections.read"],"dangerous":false,"default":false},{"name":"connections.delete","category":"connections","description":"Disconnect a vendor account, removing it from every profile that used it.","implies":["connections.write"],"dangerous":true,"default":false},{"name":"profiles.read","category":"profiles","description":"List profiles and read their endpoint URLs.","implies":[],"dangerous":false,"default":true},{"name":"profiles.write","category":"profiles","description":"Create and edit profiles, attach connections, set exposed tools.","implies":["profiles.read"],"dangerous":false,"default":false},{"name":"profiles.delete","category":"profiles","description":"Delete a profile, revoking every client grant pinned to it.","implies":["profiles.write"],"dangerous":true,"default":false},{"name":"activity.read","category":"activity","description":"Read the call log (every tool call, for analytics) and its usage summaries.","implies":[],"dangerous":false,"default":true},{"name":"links.read","category":"links","description":"List connect links and read their URLs.","implies":[],"dangerous":false,"default":true},{"name":"links.write","category":"links","description":"Send, resend, reset, edit and revoke connect links.","implies":["links.read"],"dangerous":false,"default":false},{"name":"billing.read","category":"billing","description":"Read the plan, credit balance, ledger and invoices.","implies":[],"dangerous":false,"default":true},{"name":"billing.manage","category":"billing","description":"Buy credit packs with the card on file.","implies":["billing.read"],"dangerous":true,"default":false},{"name":"members.read","category":"members","description":"List members and pending invites.","implies":[],"dangerous":false,"default":true},{"name":"members.invite","category":"members","description":"Send and cancel invites.","implies":["members.read"],"dangerous":false,"default":false},{"name":"members.manage","category":"members","description":"Change roles and remove members. The dashboard's hard stops still apply.","implies":["members.invite"],"dangerous":true,"default":false}]}},"schemas":{"Error":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","enum":["unauthorized","forbidden","insufficient_scope","plan_limit","not_found","validation","conflict","read_only","rate_limited","csrf","unavailable","internal"],"x-status":{"unauthorized":401,"forbidden":403,"insufficient_scope":403,"plan_limit":403,"not_found":404,"validation":400,"conflict":409,"read_only":409,"rate_limited":429,"csrf":403,"unavailable":503,"internal":500},"description":"What went wrong, as a stable word. Branch on this, never on `message`."},"message":{"type":"string","description":"The same thing in a sentence, written for a person."},"field":{"type":"string","description":"`validation` only: the field that failed, as a path into the request."},"required":{"type":"string","description":"`insufficient_scope` only: the scope the route needs."},"details":{"type":"object","additionalProperties":true,"description":"Extra structure some errors carry, such as a refused record batch's per-record `errors`."}}}}}}}}