Upload one session’s speed probes from a navigating app
const url = 'https://api.tareky.com/v1/probes';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"sessionId":"example","points":[["example"]],"batchId":"example","src":"nav","batches":[{"sessionId":"example","points":[["example"]],"batchId":"example","src":"nav"}]}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://api.tareky.com/v1/probes \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "sessionId": "example", "points": [ [ "example" ] ], "batchId": "example", "src": "nav", "batches": [ { "sessionId": "example", "points": [ [ "example" ] ], "batchId": "example", "src": "nav" } ] }'Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Header Parameters
Section titled “Header Parameters”Legacy key id (until its sunset)
Request Bodyrequired
Section titled “Request Bodyrequired”object
Client-chosen id of this batch (a UUID); a retried upload sends the same one
What the device was doing: navigating, a detected drive, the web app
object
Client-chosen id of this batch (a UUID); a retried upload sends the same one
What the device was doing: navigating, a detected drive, the web app
Responses
Section titled “Responses”object
Traces accepted: the client is done with each (a sampled-out one counts)
Of those, how many adaptive sampling dropped (see GET /v1/probes/config sampling). Absent when none were
Examplegenerated
{ "accepted": 1, "sampledOut": 1}Rate limit or monthly quota exceeded; see Retry-After
object
object
Stable machine-readable code, e.g. quota_exceeded, no_route
For invalid_request: the validation issues
Examplegenerated
{ "error": { "code": "example", "message": "example", "status": 1, "details": "example", "docsUrl": "example" }, "requestId": "example"}default
Section titled “default”Any other error, in the /v1 error envelope
object
object
Stable machine-readable code, e.g. quota_exceeded, no_route
For invalid_request: the validation issues
Examplegenerated
{ "error": { "code": "example", "message": "example", "status": 1, "details": "example", "docsUrl": "example" }, "requestId": "example"}