Profiles
CompozyOS Profiles HTTP endpoints.
15 endpoints32 pages in API Reference
Endpoints15
- GET
/api/profilesList profiles - POST
/api/profilesCreate a profile - GET
/api/profiles/opsList profile lifecycle operations - POST
/api/profiles/ops/{op_id}/retryRetry a profile lifecycle operation - GET
/api/profiles/selectionRead profile selections - PUT
/api/profiles/selectionRemember a profile selection - GET
/api/profiles/{name}Get a profile - PATCH
/api/profiles/{name}Update profile identity - DELETE
/api/profiles/{name}Delete a profile - POST
/api/profiles/{name}/archiveArchive a profile - GET
/api/profiles/{name}/archive-planPreview profile archival - GET
/api/profiles/{name}/delete-planPreview profile deletion
GET/api/profiles
List profiles
httpuds
Responses
- 200
- OK
- 400
- Invalid profile request
- 404
- Profile not found
- 409
- Profile conflict
- 500
- Internal server error
Response body
OK
application/json- response
[index: integer]?curl -X GET 'http://localhost:2123/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
Create a profile
httpuds
Request body
JSON request body
application/json- body
activate?|color?stringemoji?stringicon?stringname*stringResponses
- 201
- OK
- 400
- Invalid profile request
- 403
- Remote profile management is forbidden
- 404
- Profile not found
- 409
- Profile conflict
- 500
- Internal server error
Response body
OK
application/json- response
archived_at?|date-timecolor*stringcreated_at*stringdate-timecredential_requirements?array<>emoji*string|nullicon*string|nullid*stringname*stringneeds_setup?booleanstate*stringwork_items?integercurl -X POST 'http://localhost:2123/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
List profile lifecycle operations
httpuds
Responses
- 200
- OK
- 400
- Invalid profile request
- 404
- Profile not found
- 409
- Profile conflict
- 500
- Internal server error
Response body
OK
application/json- response
[index: integer]?curl -X GET 'http://localhost:2123/api/profiles/ops'[ { "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*stringLifecycle 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
Response body
OK
application/json- response
error?stringid*stringkind*stringprofile*stringstatus*stringstep*stringcurl -X POST 'http://localhost:2123/api/profiles/ops/string/retry'{ "error": "string", "id": "string", "kind": "string", "profile": "string", "status": "string", "step": "string"}GET/api/profiles/selection
Read profile selections
httpuds
Query parameters
scope?stringSelection scope
"global""workspace"workspace_id?stringWorkspace selection lens
Responses
- 200
- OK
- 400
- Invalid profile request
- 404
- Profile not found
- 409
- Profile conflict
- 500
- Internal server error
Response body
OK
application/json- response
[index: integer]?curl -X GET 'http://localhost:2123/api/profiles/selection'[ { "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- body
note?stringprofile*stringscope*stringworkspace_id?stringResponses
- 200
- OK
- 400
- Invalid profile request
- 403
- Remote profile management is forbidden
- 404
- Profile not found
- 409
- Profile conflict
- 500
- Internal server error
Response body
OK
application/json- response
note?stringprofile*stringscope*stringworkspace_id?stringcurl -X PUT 'http://localhost:2123/api/profiles/selection' \ -H 'Content-Type: application/json' \ -d '{ "profile": "string", "scope": "string"}'{ "note": "string", "profile": "string", "scope": "string", "workspace_id": "string"}GET/api/profiles/{name}
Get a profile
httpuds
Path parameters
name*stringProfile name
Responses
- 200
- OK
- 400
- Invalid profile request
- 404
- Profile not found
- 409
- Profile conflict
- 500
- Internal server error
Response body
OK
application/json- response
archived_at?|date-timecolor*stringcreated_at*stringdate-timecredential_requirements?array<>emoji*string|nullicon*string|nullid*stringname*stringneeds_setup?booleanstate*stringwork_items?integercurl -X GET 'http://localhost:2123/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}
Update profile identity
httpuds
Path parameters
name*stringProfile name
Request body
JSON request body
application/json- body
color?string|nullemoji?string|nullicon?string|nullResponses
- 200
- OK
- 400
- Invalid profile request
- 403
- Remote profile management is forbidden
- 404
- Profile not found
- 409
- Profile conflict
- 500
- Internal server error
Response body
OK
application/json- response
archived_at?|date-timecolor*stringcreated_at*stringdate-timecredential_requirements?array<>emoji*string|nullicon*string|nullid*stringname*stringneeds_setup?booleanstate*stringwork_items?integercurl -X PATCH 'http://localhost:2123/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}
Delete a profile
httpuds
Path parameters
name*stringProfile name
Query parameters
plan_revision*stringRevision 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
Response body
OK
application/json- response
deleted*booleanremoved*curl -X DELETE 'http://localhost:2123/api/profiles/string?plan_revision=string'{ "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*stringProfile name
Request body
JSON request body
application/json- body
plan_revision*stringResponses
- 200
- OK
- 400
- Invalid profile request
- 403
- Remote profile management is forbidden
- 404
- Profile not found
- 409
- Profile conflict
- 500
- Internal server error
Response body
OK
application/json- response
frozen_queued_runs*integerpaused_automations*array<string>state*stringcurl -X POST 'http://localhost:2123/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
Preview profile archival
httpuds
Path parameters
name*stringProfile name
Responses
- 200
- OK
- 400
- Invalid profile request
- 404
- Profile not found
- 409
- Profile conflict
- 500
- Internal server error
Response body
OK
application/json- response
approval_blockers*array<string>automations_to_pause*array<string>leased_runs*integerqueued_runs_to_freeze*integerrevision*stringrunning_sessions*array<string>curl -X GET 'http://localhost:2123/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
Preview profile deletion
httpuds
Path parameters
name*stringProfile name
Responses
- 200
- OK
- 400
- Invalid profile request
- 404
- Profile not found
- 409
- Profile conflict
- 500
- Internal server error
Response body
OK
application/json- response
approval_blockers*array<string>removed*revision*stringselections_to_sweep*integercurl -X GET 'http://localhost:2123/api/profiles/string/delete-plan'{ "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*stringProfile name
Request body
JSON request body
application/json- body
new_name*stringplan_revision*stringrepos?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
Response body
OK
application/json- response
dormant_placements*array<>renamed*booleanrepo_results*array<>curl -X POST 'http://localhost:2123/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
Preview a profile rename
httpuds
Path parameters
name*stringProfile name
Query parameters
new_name*stringNew profile name
Responses
- 200
- OK
- 400
- Invalid profile request
- 404
- Profile not found
- 409
- Profile conflict
- 500
- Internal server error
Response body
OK
application/json- response
dormant_placements*array<>machine_folders*array<string>repo_candidates*array<>revision*stringvault_ref_rewrites*integercurl -X GET 'http://localhost:2123/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
Unarchive a profile
httpuds
Path parameters
name*stringProfile name
Request body
JSON request body
body?unknownapplication/jsonResponses
- 200
- OK
- 400
- Invalid profile request
- 403
- Remote profile management is forbidden
- 404
- Profile not found
- 409
- Profile conflict
- 500
- Internal server error
Response body
OK
application/json- response
paused_automations*array<string>state*stringcurl -X POST 'http://localhost:2123/api/profiles/string/unarchive'{ "paused_automations": [ "string" ], "state": "string"}