Request logs
Your own request log, newest first, filterable by end-user tag, endpoint and time. Rows are kept for at least 30 days. Free to call.
https://api.vedicapi.co/v1/logsAuthentication
Send your API key as a Bearer token. Keys start with sk_live_. Keep keys on your server. More on keys
Authorization: Bearer $VEDICAPI_KEY
Headers
AuthorizationRequiredrequiredDescriptionBearer followed by your API key.X-End-UserRequiredoptionalDescriptionYour own id for the person the call is for, up to 64 characters. Shows in Request logs. End-user tags
Query parameters
end_userstringOnly calls with this X-End-User tag.
Exampleuser_8f2cendpointstringOnly calls to this path, such as /v1/panchang.
sincestringOnly calls at or after this time, ISO 8601 with a zone: 2026-11-18T00:00:00Z.
limitintegerRows a page, 1 to 1,000. Default 1,000.
Example3cursorstringnext_cursor from the previous page.
Response
JSON with 200 OK. Every answer carries units (how many API calls this request counts as) and request_id, and the same values in the X-Units and X-Request-Id headers. The example belowon the right is the real answer to the request shown.
dataarrayLog rows, newest first. Each row's units is the API calls it counted as; errors show 0.next_cursorstringPass as cursor to get the next page; null on the last page.notestringA short note on how to read the answer.unitsnumberHow many API calls this request counts as: 1, or 5 for a heavy call; 0 for errors and free endpoints.request_idstringId of this call. Search it in Request logs. Also sent as the X-Request-Id header.
Errors
- 400Codes
invalid_sinceinvalid_end_userWhenA field is missing or invalid. The message names the field. - 401Codes
missing_keyunknown_keyWhenNo key, or the key is wrong, revoked or past its rotation window. - 403Codes
not_allowedWhenThe key has an allow list and this call came from another IP or domain. - 404Codes
no_such_endpointWhenWrong path or method. - 429Codes
rate_limitedmonthly_limitspend_capWhenOver a limit. Wait the Retry-After seconds before trying again. - 500Codes
internalWhenThe log store could not be read. Retry.
Errors are never charged. Every error has one shape: { "error": "<message>", "code": "<code>", "request_id": "req_..." }. Errors and limits