Telemetry
Telemetry API endpoints
/api/fleet-benchmarkAuthorization
bearerAuth API key via Authorization: Bearer <API_KEY>
In: header
Response Body
application/json
application/json
application/json
curl -X GET "http://localhost:3013/api/fleet-benchmark"{
"state": "ready",
"level": "basic",
"peerGroup": {
"teamSize": "string",
"useCase": "string",
"orgs": 0
},
"local": {
"tasksPerWeek": 0,
"taskSuccessRate": 0,
"finishedTasks": 0,
"agents": 0,
"bucket": "1"
},
"minFinishedTasks": 0,
"generatedAt": "string",
"comparisons": [
{
"key": "tasksPerWeek",
"value": 0,
"p50": 0,
"band": "top_10",
"peers": "1",
"installs": 0
}
]
}{
"error": "string",
"property1": null,
"property2": null
}{
"error": "string",
"property1": null,
"property2": null
}/api/rankingAuthorization
bearerAuth API key via Authorization: Bearer <API_KEY>
In: header
Response Body
application/json
application/json
application/json
curl -X GET "http://localhost:3013/api/ranking"{
"eligible": true,
"missing": [
"SWARM_ORG_NAME"
],
"telemetryOn": true,
"enabled": true,
"name": "string",
"domain": "string",
"listing": {
"v": 1,
"name": "string",
"domain": "string",
"category": "engineering",
"subcategory": "string",
"description": "string",
"sourceCodeUrl": "string",
"updatedAt": "string"
},
"listingMatchesDomain": true,
"verifyUrl": "string"
}{
"error": "string",
"property1": null,
"property2": null
}{
"error": "string",
"property1": null,
"property2": null
}/api/ranking/opt-inAuthorization
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/ranking/opt-in" \ -H "Content-Type: application/json" \ -d '{ "category": "engineering" }'{
"domain": "string",
"listing": {
"v": 1,
"name": "string",
"domain": "string",
"category": "engineering",
"subcategory": "string",
"description": "string",
"sourceCodeUrl": "string",
"updatedAt": "string"
},
"verifyUrl": "string"
}{
"error": "string",
"property1": null,
"property2": null
}{
"error": "string",
"property1": null,
"property2": null
}{
"error": "string",
"property1": null,
"property2": null
}{
"error": "string",
"property1": null,
"property2": null
}/api/ranking/opt-outAuthorization
bearerAuth API key via Authorization: Bearer <API_KEY>
In: header
Response Body
application/json
application/json
application/json
curl -X POST "http://localhost:3013/api/ranking/opt-out"{
"enabled": false
}{
"error": "string",
"property1": null,
"property2": null
}{
"error": "string",
"property1": null,
"property2": null
}/api/telemetry/enableAuthorization
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
curl -X POST "http://localhost:3013/api/telemetry/enable" \ -H "Content-Type: application/json" \ -d '{}'{
"enabled": true
}{
"error": "string",
"property1": null,
"property2": null
}{
"error": "string",
"property1": null,
"property2": null
}{
"error": "string",
"property1": null,
"property2": null
}/api/telemetry/ui-eventAuthorization
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
curl -X POST "http://localhost:3013/api/telemetry/ui-event" \ -H "Content-Type: application/json" \ -d '{ "event": "string" }'{
"error": "string",
"property1": null,
"property2": null
}{
"error": "string",
"property1": null,
"property2": null
}{
"error": "string",
"property1": null,
"property2": null
}/api/used-byAuthorization
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/used-by" \ -H "Content-Type: application/json" \ -d '{ "granted": true }'{
"granted": true,
"changedAt": "string"
}{
"error": "string",
"property1": null,
"property2": null
}{
"error": "string",
"property1": null,
"property2": null
}{
"error": "string",
"property1": null,
"property2": null
}{
"error": "string",
"property1": null,
"property2": null
}