Config
Read and write swarm configuration values — global, agent-scoped, and repo-scoped settings
Authorization
bearerAuth API key via Authorization: Bearer <API_KEY>
In: header
Query Parameters
"true" | "false"Response Body
application/json
curl -X GET "http://localhost:3013/api/config"{
"configs": [
{
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"scope": "global",
"scopeId": "string",
"key": "string",
"value": "string",
"isSecret": true,
"envPath": "string",
"description": "string",
"createdAt": "string",
"lastUpdatedAt": "string",
"encrypted": true
}
],
"message": "string"
}Authorization
bearerAuth API key via Authorization: Bearer <API_KEY>
In: header
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
curl -X PUT "http://localhost:3013/api/config" \ -H "Content-Type: application/json" \ -d '{ "scope": "global", "key": "string" }'{
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"scope": "global",
"scopeId": "string",
"key": "string",
"value": "string",
"isSecret": true,
"envPath": "string",
"description": "string",
"createdAt": "string",
"lastUpdatedAt": "string",
"encrypted": true
}{
"error": "string",
"property1": null,
"property2": null
}Authorization
bearerAuth API key via Authorization: Bearer <API_KEY>
In: header
Path Parameters
Response Body
application/json
application/json
curl -X DELETE "http://localhost:3013/api/config/string"{
"success": true
}{
"error": "string",
"property1": null,
"property2": null
}Authorization
bearerAuth API key via Authorization: Bearer <API_KEY>
In: header
Path Parameters
Query Parameters
"true" | "false"Response Body
application/json
application/json
curl -X GET "http://localhost:3013/api/config/string"{
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"scope": "global",
"scopeId": "string",
"key": "string",
"value": "string",
"isSecret": true,
"envPath": "string",
"description": "string",
"createdAt": "string",
"lastUpdatedAt": "string",
"encrypted": true,
"message": "string"
}{
"error": "string",
"property1": null,
"property2": null
}Authorization
bearerAuth API key via Authorization: Bearer <API_KEY>
In: header
Query Parameters
1 <= lengthResponse Body
application/json
application/json
curl -X GET "http://localhost:3013/api/config/env-presence?keys=string"{
"presence": {
"property1": true,
"property2": true
}
}{
"error": "string",
"property1": null,
"property2": null
}Authorization
bearerAuth API key via Authorization: Bearer <API_KEY>
In: header
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
curl -X POST "http://localhost:3013/api/config/reload" \ -H "Content-Type: application/json" \ -d '{}'{
"success": true,
"configsLoaded": 0,
"keysUpdated": [
"string"
],
"integrationsReinitialized": [
"string"
]
}{
"error": "string",
"property1": null,
"property2": null
}Authorization
bearerAuth API key via Authorization: Bearer <API_KEY>
In: header
Query Parameters
"true" | "false"Response Body
application/json
curl -X GET "http://localhost:3013/api/config/resolved"{
"configs": [
{
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"scope": "global",
"scopeId": "string",
"key": "string",
"value": "string",
"isSecret": true,
"envPath": "string",
"description": "string",
"createdAt": "string",
"lastUpdatedAt": "string",
"encrypted": true
}
],
"message": "string"
}