Grahvani API v1
Error reference

admin_only

That route needs an admin token

HTTP status
403
Error type
permission

What it means#

A tenant key was used on an administrative route (tenant creation, key issuance for another tenant).

What to do#

The key is valid — it is just not the right kind. Administrative routes take the deployment's admin token, not a tenant API key. If you are trying to rotate your own key, use the tenant-scoped key route instead; it works with your normal key.

The error shape#

403
{
  "error": {
    "type": "permission",
    "code": "admin_only",
    "message": "\u2026",
    "doc_url": "https://docs.grahvani.in/errors/admin_only",
    "request_id": "req_01JQ8ZK3M4N5P6Q7R8S9T"
  }
}

Full list: all error codes · error handling guide.

Grahvani API — a product of AstroCorp Techlab Pvt Ltd · GSTIN 36AAMCC3512G1ZU
Base URL https://api.grahvani.in
On this page