{"openapi":"3.1.0","info":{"title":"TrackJS (BYOK) API","version":"0.1.0","description":"TrackJS (BYOK) lets an AI assistant read your own TrackJS data through the TrackJS API with a key you supply (TrackJS API key). Read-only: 8 tools (list_errors, errors_by_message, errors_by_url, errors_by_day, errors_by_hour, page_views_by_day, page_views_by_hour, usage_by_hour). The BYOK key travels with each request, is used for that one call only and is never stored, logged or cached; it is...\n\nEvery operation is read-only or compute-only. The same tools are available over MCP (streamable HTTP) at https://byok-trackjs.connectorbay.com/mcp.","contact":{"name":"Unify Dynamics LLC","email":"agent@connectorbay.com","url":"https://connectorbay.com/byok-trackjs/docs"},"termsOfService":"https://connectorbay.com/byok-trackjs/terms"},"servers":[{"url":"https://byok-trackjs.connectorbay.com"}],"externalDocs":{"url":"https://connectorbay.com/byok-trackjs/docs"},"security":[{"upstreamKey":[]}],"components":{"securitySchemes":{"bearer":{"type":"http","scheme":"bearer","description":"Optional. A Pro API key raises rate limits; no credentials are required."},"upstreamKey":{"type":"apiKey","in":"header","name":"X-Upstream-Key","description":"Your own key for the service this connector wraps (bring your own key). Used for that one call only; never stored, logged or cached."}},"schemas":{"Error":{"type":"object","properties":{"ok":{"const":false},"error":{"type":"object"}}}}},"paths":{"/v1/tools/list_errors":{"post":{"operationId":"list_errors","summary":"List individual JavaScript errors, newest first, with message, time, page URL, browser, file and line, status and a link","description":"List individual JavaScript errors, newest first, with message, time, page URL, browser, file and line, status and a link to the TrackJS dashboard. User ids, session ids and custom metadata are not returned. Use for \"What JavaScript errors did TrackJS record yesterday\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"customer_id":{"description":"Your TrackJS Customer ID (shown with the API key under Account Settings, API).","maxLength":200,"title":"Customer Id","type":"string"},"application":{"anyOf":[{"maxLength":100,"type":"string"},{"type":"null"}],"default":null,"description":"Only data of this application key.","title":"Application"},"start_date":{"anyOf":[{"maxLength":40,"type":"string"},{"type":"null"}],"default":null,"description":"Only data after this ISO 8601 date or time, for example 2026-10-01 or 2026-10-01T00:00:00Z.","title":"Start Date"},"end_date":{"anyOf":[{"maxLength":40,"type":"string"},{"type":"null"}],"default":null,"description":"Only data before this ISO 8601 date or time.","title":"End Date"},"query":{"anyOf":[{"maxLength":200,"type":"string"},{"type":"null"}],"default":null,"description":"Search text matched against error message, URLs, metadata and user ids, like the dashboard search.","title":"Query"},"include_stack":{"anyOf":[{"type":"boolean"},{"type":"null"}],"default":null,"description":"True to include the stack trace of every error (can be large).","title":"Include Stack"},"page":{"anyOf":[{"maximum":100000,"minimum":1,"type":"integer"},{"type":"null"}],"default":1,"description":"Page number, starting at 1.","title":"Page"},"size":{"anyOf":[{"maximum":1000,"minimum":1,"type":"integer"},{"type":"null"}],"default":20,"description":"How many rows per page (1 to 1000, default 20).","title":"Size"}},"required":["customer_id"],"title":"list_errorsArguments","type":"object"}}}},"responses":{"200":{"description":"Tool result. `ok: true` on success; `ok: false` with a structured `error` (provider_unavailable, upstream_error, bad_input) when the tool could not answer.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"422":{"description":"Arguments failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-read-only":true}},"/v1/tools/errors_by_message":{"post":{"operationId":"errors_by_message","summary":"Count errors grouped by error message, most frequent first, with affected user count, last seen time and status. Use for","description":"Count errors grouped by error message, most frequent first, with affected user count, last seen time and status. Use for \"Which JavaScript errors happen most often in TrackJS\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"customer_id":{"description":"Your TrackJS Customer ID (shown with the API key under Account Settings, API).","maxLength":200,"title":"Customer Id","type":"string"},"application":{"anyOf":[{"maxLength":100,"type":"string"},{"type":"null"}],"default":null,"description":"Only data of this application key.","title":"Application"},"start_date":{"anyOf":[{"maxLength":40,"type":"string"},{"type":"null"}],"default":null,"description":"Only data after this ISO 8601 date or time, for example 2026-10-01 or 2026-10-01T00:00:00Z.","title":"Start Date"},"end_date":{"anyOf":[{"maxLength":40,"type":"string"},{"type":"null"}],"default":null,"description":"Only data before this ISO 8601 date or time.","title":"End Date"},"sort":{"anyOf":[{"maxLength":30,"type":"string"},{"type":"null"}],"default":null,"description":"Sort as field|direction, for example 'usercount|desc'. Fields: count, usercount; direction asc or desc.","title":"Sort"},"page":{"anyOf":[{"maximum":100000,"minimum":1,"type":"integer"},{"type":"null"}],"default":1,"description":"Page number, starting at 1.","title":"Page"},"size":{"anyOf":[{"maximum":1000,"minimum":1,"type":"integer"},{"type":"null"}],"default":20,"description":"How many rows per page (1 to 1000, default 20).","title":"Size"}},"required":["customer_id"],"title":"errors_by_messageArguments","type":"object"}}}},"responses":{"200":{"description":"Tool result. `ok: true` on success; `ok: false` with a structured `error` (provider_unavailable, upstream_error, bad_input) when the tool could not answer.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"422":{"description":"Arguments failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-read-only":true}},"/v1/tools/errors_by_url":{"post":{"operationId":"errors_by_url","summary":"Count errors grouped by the page URL where they happened, most frequent first. Use for \"Which pages produce the most Jav","description":"Count errors grouped by the page URL where they happened, most frequent first. Use for \"Which pages produce the most JavaScript errors\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"customer_id":{"description":"Your TrackJS Customer ID (shown with the API key under Account Settings, API).","maxLength":200,"title":"Customer Id","type":"string"},"application":{"anyOf":[{"maxLength":100,"type":"string"},{"type":"null"}],"default":null,"description":"Only data of this application key.","title":"Application"},"start_date":{"anyOf":[{"maxLength":40,"type":"string"},{"type":"null"}],"default":null,"description":"Only data after this ISO 8601 date or time, for example 2026-10-01 or 2026-10-01T00:00:00Z.","title":"Start Date"},"end_date":{"anyOf":[{"maxLength":40,"type":"string"},{"type":"null"}],"default":null,"description":"Only data before this ISO 8601 date or time.","title":"End Date"},"sort":{"anyOf":[{"maxLength":30,"type":"string"},{"type":"null"}],"default":null,"description":"Sort as field|direction, for example 'count|desc'. Fields: count, usercount; direction asc or desc.","title":"Sort"},"page":{"anyOf":[{"maximum":100000,"minimum":1,"type":"integer"},{"type":"null"}],"default":1,"description":"Page number, starting at 1.","title":"Page"},"size":{"anyOf":[{"maximum":1000,"minimum":1,"type":"integer"},{"type":"null"}],"default":20,"description":"How many rows per page (1 to 1000, default 20).","title":"Size"}},"required":["customer_id"],"title":"errors_by_urlArguments","type":"object"}}}},"responses":{"200":{"description":"Tool result. `ok: true` on success; `ok: false` with a structured `error` (provider_unavailable, upstream_error, bad_input) when the tool could not answer.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"422":{"description":"Arguments failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-read-only":true}},"/v1/tools/errors_by_day":{"post":{"operationId":"errors_by_day","summary":"Count errors and affected users per day, newest first by default. Use for \"How many JavaScript errors per day did we hav","description":"Count errors and affected users per day, newest first by default. Use for \"How many JavaScript errors per day did we have this month\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"customer_id":{"description":"Your TrackJS Customer ID (shown with the API key under Account Settings, API).","maxLength":200,"title":"Customer Id","type":"string"},"application":{"anyOf":[{"maxLength":100,"type":"string"},{"type":"null"}],"default":null,"description":"Only data of this application key.","title":"Application"},"start_date":{"anyOf":[{"maxLength":40,"type":"string"},{"type":"null"}],"default":null,"description":"Only data after this ISO 8601 date or time, for example 2026-10-01 or 2026-10-01T00:00:00Z.","title":"Start Date"},"end_date":{"anyOf":[{"maxLength":40,"type":"string"},{"type":"null"}],"default":null,"description":"Only data before this ISO 8601 date or time.","title":"End Date"},"sort":{"anyOf":[{"maxLength":30,"type":"string"},{"type":"null"}],"default":null,"description":"Sort as field|direction, for example 'date|desc'. Fields: date, count, usercount; direction asc or desc.","title":"Sort"},"page":{"anyOf":[{"maximum":100000,"minimum":1,"type":"integer"},{"type":"null"}],"default":1,"description":"Page number, starting at 1.","title":"Page"},"size":{"anyOf":[{"maximum":1000,"minimum":1,"type":"integer"},{"type":"null"}],"default":20,"description":"How many rows per page (1 to 1000, default 20).","title":"Size"}},"required":["customer_id"],"title":"errors_by_dayArguments","type":"object"}}}},"responses":{"200":{"description":"Tool result. `ok: true` on success; `ok: false` with a structured `error` (provider_unavailable, upstream_error, bad_input) when the tool could not answer.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"422":{"description":"Arguments failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-read-only":true}},"/v1/tools/errors_by_hour":{"post":{"operationId":"errors_by_hour","summary":"Count errors and affected users per hour, newest first by default. Use for \"When during the day did JavaScript errors sp","description":"Count errors and affected users per hour, newest first by default. Use for \"When during the day did JavaScript errors spike in TrackJS\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"customer_id":{"description":"Your TrackJS Customer ID (shown with the API key under Account Settings, API).","maxLength":200,"title":"Customer Id","type":"string"},"application":{"anyOf":[{"maxLength":100,"type":"string"},{"type":"null"}],"default":null,"description":"Only data of this application key.","title":"Application"},"start_date":{"anyOf":[{"maxLength":40,"type":"string"},{"type":"null"}],"default":null,"description":"Only data after this ISO 8601 date or time, for example 2026-10-01 or 2026-10-01T00:00:00Z.","title":"Start Date"},"end_date":{"anyOf":[{"maxLength":40,"type":"string"},{"type":"null"}],"default":null,"description":"Only data before this ISO 8601 date or time.","title":"End Date"},"sort":{"anyOf":[{"maxLength":30,"type":"string"},{"type":"null"}],"default":null,"description":"Sort as field|direction, for example 'date|desc'. Fields: date, count, usercount; direction asc or desc.","title":"Sort"},"page":{"anyOf":[{"maximum":100000,"minimum":1,"type":"integer"},{"type":"null"}],"default":1,"description":"Page number, starting at 1.","title":"Page"},"size":{"anyOf":[{"maximum":1000,"minimum":1,"type":"integer"},{"type":"null"}],"default":20,"description":"How many rows per page (1 to 1000, default 20).","title":"Size"}},"required":["customer_id"],"title":"errors_by_hourArguments","type":"object"}}}},"responses":{"200":{"description":"Tool result. `ok: true` on success; `ok: false` with a structured `error` (provider_unavailable, upstream_error, bad_input) when the tool could not answer.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"422":{"description":"Arguments failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-read-only":true}},"/v1/tools/page_views_by_day":{"post":{"operationId":"page_views_by_day","summary":"Count page views recorded by the TrackJS agent per day, newest first. Use for \"How many page views did TrackJS record pe","description":"Count page views recorded by the TrackJS agent per day, newest first. Use for \"How many page views did TrackJS record per day last week\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"customer_id":{"description":"Your TrackJS Customer ID (shown with the API key under Account Settings, API).","maxLength":200,"title":"Customer Id","type":"string"},"application":{"anyOf":[{"maxLength":100,"type":"string"},{"type":"null"}],"default":null,"description":"Only data of this application key.","title":"Application"},"start_date":{"anyOf":[{"maxLength":40,"type":"string"},{"type":"null"}],"default":null,"description":"Only data after this ISO 8601 date or time, for example 2026-10-01 or 2026-10-01T00:00:00Z.","title":"Start Date"},"end_date":{"anyOf":[{"maxLength":40,"type":"string"},{"type":"null"}],"default":null,"description":"Only data before this ISO 8601 date or time.","title":"End Date"},"page":{"anyOf":[{"maximum":100000,"minimum":1,"type":"integer"},{"type":"null"}],"default":1,"description":"Page number, starting at 1.","title":"Page"},"size":{"anyOf":[{"maximum":1000,"minimum":1,"type":"integer"},{"type":"null"}],"default":20,"description":"How many rows per page (1 to 1000, default 20).","title":"Size"}},"required":["customer_id"],"title":"page_views_by_dayArguments","type":"object"}}}},"responses":{"200":{"description":"Tool result. `ok: true` on success; `ok: false` with a structured `error` (provider_unavailable, upstream_error, bad_input) when the tool could not answer.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"422":{"description":"Arguments failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-read-only":true}},"/v1/tools/page_views_by_hour":{"post":{"operationId":"page_views_by_hour","summary":"Count page views recorded by the TrackJS agent per hour, newest first. Use for \"How many page views did TrackJS record p","description":"Count page views recorded by the TrackJS agent per hour, newest first. Use for \"How many page views did TrackJS record per hour today\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"customer_id":{"description":"Your TrackJS Customer ID (shown with the API key under Account Settings, API).","maxLength":200,"title":"Customer Id","type":"string"},"application":{"anyOf":[{"maxLength":100,"type":"string"},{"type":"null"}],"default":null,"description":"Only data of this application key.","title":"Application"},"start_date":{"anyOf":[{"maxLength":40,"type":"string"},{"type":"null"}],"default":null,"description":"Only data after this ISO 8601 date or time, for example 2026-10-01 or 2026-10-01T00:00:00Z.","title":"Start Date"},"end_date":{"anyOf":[{"maxLength":40,"type":"string"},{"type":"null"}],"default":null,"description":"Only data before this ISO 8601 date or time.","title":"End Date"},"page":{"anyOf":[{"maximum":100000,"minimum":1,"type":"integer"},{"type":"null"}],"default":1,"description":"Page number, starting at 1.","title":"Page"},"size":{"anyOf":[{"maximum":1000,"minimum":1,"type":"integer"},{"type":"null"}],"default":20,"description":"How many rows per page (1 to 1000, default 20).","title":"Size"}},"required":["customer_id"],"title":"page_views_by_hourArguments","type":"object"}}}},"responses":{"200":{"description":"Tool result. `ok: true` on success; `ok: false` with a structured `error` (provider_unavailable, upstream_error, bad_input) when the tool could not answer.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"422":{"description":"Arguments failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-read-only":true}},"/v1/tools/usage_by_hour":{"post":{"operationId":"usage_by_hour","summary":"Get account usage per hour: page views, total, processed, ignored and dropped errors, and errors per page view. Use for ","description":"Get account usage per hour: page views, total, processed, ignored and dropped errors, and errors per page view. Use for \"How much of my TrackJS quota did I use per hour\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"customer_id":{"description":"Your TrackJS Customer ID (shown with the API key under Account Settings, API).","maxLength":200,"title":"Customer Id","type":"string"},"start_date":{"anyOf":[{"maxLength":40,"type":"string"},{"type":"null"}],"default":null,"description":"Only usage after this ISO 8601 date or time.","title":"Start Date"},"end_date":{"anyOf":[{"maxLength":40,"type":"string"},{"type":"null"}],"default":null,"description":"Only usage before this ISO 8601 date or time.","title":"End Date"}},"required":["customer_id"],"title":"usage_by_hourArguments","type":"object"}}}},"responses":{"200":{"description":"Tool result. `ok: true` on success; `ok: false` with a structured `error` (provider_unavailable, upstream_error, bad_input) when the tool could not answer.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"422":{"description":"Arguments failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-read-only":true}}}}