Config
Read and write swarm configuration values — global, agent-scoped, and repo-scoped settings
/api/configAuthorization
bearerAuth API key via Authorization: Bearer <API_KEY>
In: header
Query Parameters
Return only entries with this exact key. Omit to return every entry.
1 <= length"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,
"exportToEnv": true
}
],
"message": "string"
}/api/configAuthorization
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,
"exportToEnv": true
}{
"error": "string",
"property1": null,
"property2": null
}/api/config/{id}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
}/api/config/{id}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,
"exportToEnv": true,
"message": "string"
}{
"error": "string",
"property1": null,
"property2": null
}/api/config/env-presenceAuthorization
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
}/api/config/pool-keysAuthorization
bearerAuth API key via Authorization: Bearer <API_KEY>
In: header
Query Parameters
0 <= value1 <= length <= 5Response Body
application/json
application/json
application/json
application/json
curl -X DELETE "http://localhost:3013/api/config/pool-keys?key=string&suffix=strin"{
"key": "string",
"source": "stored",
"readOnly": true,
"keys": [
{
"index": 0,
"suffix": "string",
"status": "ok",
"error": "string",
"checkedAt": "string",
"rateLimitedUntil": "string",
"spendCap": {
"limitUsd": 0,
"spendUsd": 0,
"resetsAt": "2019-08-24T14:15:22Z"
}
}
]
}{
"error": "string",
"property1": null,
"property2": null
}{
"error": "string",
"property1": null,
"property2": null
}{
"error": "string",
"property1": null,
"property2": null
}/api/config/pool-keysAuthorization
bearerAuth API key via Authorization: Bearer <API_KEY>
In: header
Query Parameters
Response Body
application/json
application/json
application/json
curl -X GET "http://localhost:3013/api/config/pool-keys?key=string"{
"key": "string",
"source": "stored",
"readOnly": true,
"keys": [
{
"index": 0,
"suffix": "string",
"status": "ok",
"error": "string",
"checkedAt": "string",
"rateLimitedUntil": "string",
"spendCap": {
"limitUsd": 0,
"spendUsd": 0,
"resetsAt": "2019-08-24T14:15:22Z"
}
}
]
}{
"error": "string",
"property1": null,
"property2": null
}{
"error": "string",
"property1": null,
"property2": null
}/api/config/pool-keysAuthorization
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
application/json
application/json
application/json
curl -X POST "http://localhost:3013/api/config/pool-keys" \ -H "Content-Type: application/json" \ -d '{ "key": "string", "value": "string" }'{
"key": "string",
"source": "stored",
"readOnly": true,
"keys": [
{
"index": 0,
"suffix": "string",
"status": "ok",
"error": "string",
"checkedAt": "string",
"rateLimitedUntil": "string",
"spendCap": {
"limitUsd": 0,
"spendUsd": 0,
"resetsAt": "2019-08-24T14:15:22Z"
}
}
],
"checks": [
{
"suffix": "string",
"result": "verified",
"httpStatus": 0,
"error": "string"
}
]
}{
"error": "string",
"property1": null,
"property2": null
}{
"error": "string",
"property1": null,
"property2": null
}{
"error": "string",
"property1": null,
"property2": null
}{
"error": "string",
"checks": [
{
"suffix": "string",
"result": "verified",
"httpStatus": 0,
"error": "string"
}
]
}/api/config/reloadAuthorization
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
}/api/config/resolvedAuthorization
bearerAuth API key via Authorization: Bearer <API_KEY>
In: header
Query Parameters
Return only the entry with this exact key. Omit to return every resolved entry.
1 <= length"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,
"exportToEnv": true
}
],
"message": "string"
}