Skip to content

Profiles

CompozyOS Profiles HTTP endpoints.

15 endpoints32 pages in API Reference

Endpoints15

GET/api/profiles

List profiles

httpuds

Responses

200
OK
400
Invalid profile request
404
Profile not found
409
Profile conflict
500
Internal server error
Request
curl -X GET 'http://localhost:2123/api/profiles'
200 OK
[  {    "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

Create a profile

httpuds

Request body

JSON request body

application/json
  1. body
activate?|
color?string
emoji?string
icon?string
name*string

Responses

201
OK
400
Invalid profile request
403
Remote profile management is forbidden
404
Profile not found
409
Profile conflict
500
Internal server error
Request
curl -X POST 'http://localhost:2123/api/profiles' \  -H 'Content-Type: application/json' \  -d '{  "name": "string"}'
201 OK
{  "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

List profile lifecycle operations

httpuds

Responses

200
OK
400
Invalid profile request
404
Profile not found
409
Profile conflict
500
Internal server error
Request
curl -X GET 'http://localhost:2123/api/profiles/ops'
200 OK
[  {    "error": "string",    "id": "string",    "kind": "string",    "profile": "string",    "status": "string",    "step": "string"  }]

POST/api/profiles/ops/{op_id}/retry

Retry a profile lifecycle operation

httpuds

Path parameters

op_id*string

Lifecycle operation id

Responses

200
OK
400
Invalid profile request
403
Remote profile management is forbidden
404
Profile not found
409
Profile conflict
500
Internal server error
Request
curl -X POST 'http://localhost:2123/api/profiles/ops/string/retry'
200 OK
{  "error": "string",  "id": "string",  "kind": "string",  "profile": "string",  "status": "string",  "step": "string"}

GET/api/profiles/selection

Read profile selections

httpuds

Query parameters

scope?string

Selection scope

Value in"global""workspace"
workspace_id?string

Workspace selection lens

Responses

200
OK
400
Invalid profile request
404
Profile not found
409
Profile conflict
500
Internal server error
Request
curl -X GET 'http://localhost:2123/api/profiles/selection'
200 OK
[  {    "note": "string",    "profile": "string",    "scope": "string",    "workspace_id": "string"  }]

PUT/api/profiles/selection

Remember a profile selection

httpuds

Request body

JSON request body

application/json
  1. body
note?string
profile*string
scope*string
workspace_id?string

Responses

200
OK
400
Invalid profile request
403
Remote profile management is forbidden
404
Profile not found
409
Profile conflict
500
Internal server error
Request
curl -X PUT 'http://localhost:2123/api/profiles/selection' \  -H 'Content-Type: application/json' \  -d '{  "profile": "string",  "scope": "string"}'
200 OK
{  "note": "string",  "profile": "string",  "scope": "string",  "workspace_id": "string"}

GET/api/profiles/{name}

Get a profile

httpuds

Path parameters

name*string

Profile name

Responses

200
OK
400
Invalid profile request
404
Profile not found
409
Profile conflict
500
Internal server error
Request
curl -X GET 'http://localhost:2123/api/profiles/string'
200 OK
{  "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}

Update profile identity

httpuds

Path parameters

name*string

Profile name

Request body

JSON request body

application/json
  1. body
color?string|null
emoji?string|null
icon?string|null

Responses

200
OK
400
Invalid profile request
403
Remote profile management is forbidden
404
Profile not found
409
Profile conflict
500
Internal server error
Request
curl -X PATCH 'http://localhost:2123/api/profiles/string' \  -H 'Content-Type: application/json' \  -d '{}'
200 OK
{  "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}

Delete a profile

httpuds

Path parameters

name*string

Profile name

Query parameters

plan_revision*string

Revision returned by the delete plan

Responses

200
OK
400
Invalid profile request
403
Remote profile management is forbidden
404
Profile not found
409
Profile conflict
500
Internal server error
Request
curl -X DELETE 'http://localhost:2123/api/profiles/string?plan_revision=string'
200 OK
{  "deleted": true,  "removed": {    "agent_instances": 0,    "agent_memory_files": 0,    "agents": 0,    "config_keys": 0,    "credential_overrides": 0,    "desktop_partitions": 0,    "event_summaries": 0,    "loops": 0,    "mcp_servers": 0,    "palette_pins": 0,    "palette_query_hits": 0,    "palette_usage": 0,    "skills": 0,    "terminal_approvals": 0  }}

POST/api/profiles/{name}/archive

Archive a profile

httpuds

Path parameters

name*string

Profile name

Request body

JSON request body

application/json
  1. body
plan_revision*string

Responses

200
OK
400
Invalid profile request
403
Remote profile management is forbidden
404
Profile not found
409
Profile conflict
500
Internal server error
Request
curl -X POST 'http://localhost:2123/api/profiles/string/archive' \  -H 'Content-Type: application/json' \  -d '{  "plan_revision": "string"}'
200 OK
{  "frozen_queued_runs": 0,  "paused_automations": [    "string"  ],  "state": "string"}

GET/api/profiles/{name}/archive-plan

Preview profile archival

httpuds

Path parameters

name*string

Profile name

Responses

200
OK
400
Invalid profile request
404
Profile not found
409
Profile conflict
500
Internal server error
Request
curl -X GET 'http://localhost:2123/api/profiles/string/archive-plan'
200 OK
{  "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

Preview profile deletion

httpuds

Path parameters

name*string

Profile name

Responses

200
OK
400
Invalid profile request
404
Profile not found
409
Profile conflict
500
Internal server error
Request
curl -X GET 'http://localhost:2123/api/profiles/string/delete-plan'
200 OK
{  "approval_blockers": [    "string"  ],  "removed": {    "agent_instances": 0,    "agent_memory_files": 0,    "agents": 0,    "config_keys": 0,    "credential_overrides": 0,    "desktop_partitions": 0,    "event_summaries": 0,    "loops": 0,    "mcp_servers": 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

Rename a profile

httpuds

Path parameters

name*string

Profile name

Request body

JSON request body

application/json
  1. body
new_name*string
plan_revision*string
repos?array<string>

Responses

200
OK
400
Invalid profile request
403
Remote profile management is forbidden
404
Profile not found
409
Profile conflict
500
Internal server error
Request
curl -X POST 'http://localhost:2123/api/profiles/string/rename' \  -H 'Content-Type: application/json' \  -d '{  "new_name": "string",  "plan_revision": "string"}'
200 OK
{  "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

Preview a profile rename

httpuds

Path parameters

name*string

Profile name

Query parameters

new_name*string

New profile name

Responses

200
OK
400
Invalid profile request
404
Profile not found
409
Profile conflict
500
Internal server error
Request
curl -X GET 'http://localhost:2123/api/profiles/string/rename-plan?new_name=string'
200 OK
{  "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

Unarchive a profile

httpuds

Path parameters

name*string

Profile name

Request body

JSON request body

body?unknownapplication/json

Responses

200
OK
400
Invalid profile request
403
Remote profile management is forbidden
404
Profile not found
409
Profile conflict
500
Internal server error
Request
curl -X POST 'http://localhost:2123/api/profiles/string/unarchive'
200 OK
{  "paused_automations": [    "string"  ],  "state": "string"}