Skip to content

Profiles

CompozyOS Profiles HTTP endpoints.

For people running agent work34 pages in this section
GET/api/profiles

Response Body

application/json

application/json

application/json

application/json

application/json

curl -X GET "https://example.com/api/profiles"
[  {    "archived_at": "2019-08-24T14:15:22Z",    "color": "string",    "created_at": "2019-08-24T14:15:22Z",    "credential_requirements": [      {        "missing": true,        "provider": "string",        "slot": "string",        "source_extension": "string"      }    ],    "emoji": "string",    "icon": "string",    "id": "string",    "name": "string",    "needs_setup": true,    "state": "string",    "work_items": 0  }]
POST/api/profiles

Request Body

application/json

JSON request body

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/api/profiles" \  -H "Content-Type: application/json" \  -d '{    "name": "string"  }'
{  "archived_at": "2019-08-24T14:15:22Z",  "color": "string",  "created_at": "2019-08-24T14:15:22Z",  "credential_requirements": [    {      "missing": true,      "provider": "string",      "slot": "string",      "source_extension": "string"    }  ],  "emoji": "string",  "icon": "string",  "id": "string",  "name": "string",  "needs_setup": true,  "state": "string",  "work_items": 0}
GET/api/profiles/ops

Response Body

application/json

application/json

application/json

application/json

application/json

curl -X GET "https://example.com/api/profiles/ops"
[  {    "error": "string",    "id": "string",    "kind": "string",    "profile": "string",    "status": "string",    "step": "string"  }]
POST/api/profiles/ops/{op_id}/retry

Path Parameters

op_id*string

Lifecycle operation id

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/api/profiles/ops/string/retry"
{  "error": "string",  "id": "string",  "kind": "string",  "profile": "string",  "status": "string",  "step": "string"}
GET/api/profiles/selection

Query Parameters

scope?string

Selection scope

Value in

  • "global"
  • "workspace"
workspace_id?string

Workspace selection lens

Response Body

application/json

application/json

application/json

application/json

application/json

curl -X GET "https://example.com/api/profiles/selection"
[  {    "profile": "string",    "scope": "string",    "workspace_id": "string"  }]
PUT/api/profiles/selection

Request Body

application/json

JSON request body

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

curl -X PUT "https://example.com/api/profiles/selection" \  -H "Content-Type: application/json" \  -d '{    "profile": "string",    "scope": "string"  }'
{  "profile": "string",  "scope": "string",  "workspace_id": "string"}
GET/api/profiles/{name}

Path Parameters

name*string

Profile name

Response Body

application/json

application/json

application/json

application/json

application/json

curl -X GET "https://example.com/api/profiles/string"
{  "archived_at": "2019-08-24T14:15:22Z",  "color": "string",  "created_at": "2019-08-24T14:15:22Z",  "credential_requirements": [    {      "missing": true,      "provider": "string",      "slot": "string",      "source_extension": "string"    }  ],  "emoji": "string",  "icon": "string",  "id": "string",  "name": "string",  "needs_setup": true,  "state": "string",  "work_items": 0}
PATCH/api/profiles/{name}

Path Parameters

name*string

Profile name

Request Body

application/json

JSON request body

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

curl -X PATCH "https://example.com/api/profiles/string" \  -H "Content-Type: application/json" \  -d '{}'
{  "archived_at": "2019-08-24T14:15:22Z",  "color": "string",  "created_at": "2019-08-24T14:15:22Z",  "credential_requirements": [    {      "missing": true,      "provider": "string",      "slot": "string",      "source_extension": "string"    }  ],  "emoji": "string",  "icon": "string",  "id": "string",  "name": "string",  "needs_setup": true,  "state": "string",  "work_items": 0}
DELETE/api/profiles/{name}

Path Parameters

name*string

Profile name

Query Parameters

plan_revision*string

Revision returned by the delete plan

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

curl -X DELETE "https://example.com/api/profiles/string?plan_revision=string"
{  "deleted": true,  "removed": {    "agents": 0,    "config_keys": 0,    "credential_overrides": 0,    "desktop_partitions": 0,    "event_summaries": 0,    "loops": 0,    "mcp_servers": 0,    "memory_entries": 0,    "palette_pins": 0,    "palette_query_hits": 0,    "palette_usage": 0,    "skills": 0,    "terminal_approvals": 0  }}
POST/api/profiles/{name}/archive

Path Parameters

name*string

Profile name

Request Body

application/json

JSON request body

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/api/profiles/string/archive" \  -H "Content-Type: application/json" \  -d '{    "plan_revision": "string"  }'
{  "frozen_queued_runs": 0,  "paused_automations": [    "string"  ],  "state": "string"}
GET/api/profiles/{name}/archive-plan

Path Parameters

name*string

Profile name

Response Body

application/json

application/json

application/json

application/json

application/json

curl -X GET "https://example.com/api/profiles/string/archive-plan"
{  "approval_blockers": [    "string"  ],  "automations_to_pause": [    "string"  ],  "leased_runs": 0,  "queued_runs_to_freeze": 0,  "revision": "string",  "running_sessions": [    "string"  ]}
GET/api/profiles/{name}/delete-plan

Path Parameters

name*string

Profile name

Response Body

application/json

application/json

application/json

application/json

application/json

curl -X GET "https://example.com/api/profiles/string/delete-plan"
{  "approval_blockers": [    "string"  ],  "removed": {    "agents": 0,    "config_keys": 0,    "credential_overrides": 0,    "desktop_partitions": 0,    "event_summaries": 0,    "loops": 0,    "mcp_servers": 0,    "memory_entries": 0,    "palette_pins": 0,    "palette_query_hits": 0,    "palette_usage": 0,    "skills": 0,    "terminal_approvals": 0  },  "revision": "string",  "selections_to_sweep": 0}
POST/api/profiles/{name}/rename

Path Parameters

name*string

Profile name

Request Body

application/json

JSON request body

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/api/profiles/string/rename" \  -H "Content-Type: application/json" \  -d '{    "new_name": "string",    "plan_revision": "string"  }'
{  "dormant_placements": [    {      "extension": "string",      "profile": "string",      "resource": "string"    }  ],  "renamed": true,  "repo_results": [    {      "reason": "string",      "renamed": true,      "workspace_id": "string"    }  ]}
GET/api/profiles/{name}/rename-plan

Path Parameters

name*string

Profile name

Query Parameters

new_name*string

New profile name

Response Body

application/json

application/json

application/json

application/json

application/json

curl -X GET "https://example.com/api/profiles/string/rename-plan?new_name=string"
{  "dormant_placements": [    {      "extension": "string",      "profile": "string",      "resource": "string"    }  ],  "machine_folders": [    "string"  ],  "repo_candidates": [    {      "path": "string",      "workspace": "string",      "workspace_id": "string"    }  ],  "revision": "string",  "vault_ref_rewrites": 0}
POST/api/profiles/{name}/unarchive

Path Parameters

name*string

Profile name

Request Body

application/json

JSON request body

TypeScript Definitions

Use the request body type in TypeScript.

body?unknown

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/api/profiles/string/unarchive"
{  "paused_automations": [    "string"  ],  "state": "string"}