Skip to content

List keys

http
GET /v1/keys

Returns all API keys on your account plus plan details and current credit balance.

Example

bash
curl https://api.askvedicguru.com/api/v1/keys \
  -H "X-API-Key: YOUR_API_KEY"

Response

json
{
  "success": true,
  "data": {
    "keys": [
      {
        "id": "683abc000111222",
        "name": "Production",
        "prefix": "avg_xxxx",
        "createdAt": "2026-01-10T08:00:00.000Z",
        "lastUsedAt": "2026-05-14T11:23:00.000Z"
      }
    ],
    "credits": 49234,
    "creditsRefillAt": "2026-06-01T00:00:00.000Z",
    "developerPlan": "starter",
    "maxKeys": 3,
    "rateLimitPerMinute": 60
  }
}

Create a key

http
POST /v1/keys

Request body

FieldTypeRequired
namestringYes

Example

bash
curl -X POST https://api.askvedicguru.com/api/v1/keys \
  -H "Content-Type: application/json" \
  -H "X-API-Key: YOUR_API_KEY" \
  -d '{ "name": "Staging" }'

Response

json
{
  "success": true,
  "data": {
    "id": "683abc000333444",
    "name": "Staging",
    "key": "avg_yyyyyyyyyyyyyyyyyy"
  }
}

The key field is returned only once at creation. Store it securely.


Revoke a key

http
DELETE /v1/keys/:id

Example

bash
curl -X DELETE https://api.askvedicguru.com/api/v1/keys/683abc000333444 \
  -H "X-API-Key: YOUR_API_KEY"

Response

json
{ "success": true }