Resources

Workspace

Verify your API key and retrieve workspace information.

Get Workspace Info

Returns the workspace associated with your API key and metadata about the key itself. Use this endpoint to verify your credentials and confirm which workspace you are operating in.

http
GET /api/dev/v1/me
Authorization: Bearer <api-key>

Request

No request body or query parameters required.

bash
curl -X GET https://beta-api.sarufi.io/api/dev/v1/me \
  -H "Authorization: Bearer <your-api-key>"
python
import requests

response = requests.get(
    "https://beta-api.sarufi.io/api/dev/v1/me",
    headers={"Authorization": "Bearer <your-api-key>"},
)
print(response.json())
javascript
const response = await fetch("https://beta-api.sarufi.io/api/dev/v1/me", {
  headers: { "Authorization": "Bearer <your-api-key>" },
});
const data = await response.json();

Response

200 OK

json
{
  "workspace": {
    "id": "01JMXYZ123ABC",
    "name": "Acme Corp",
    "plan": "pro",
    "created_at": "2025-11-01T09:00:00Z"
  },
  "api_key": {
    "key": "sk-••••••••••••••••",
    "created_at": "2026-01-15T10:00:00Z",
    "last_used_at": "2026-02-20T08:30:00Z"
  }
}

Response Fields

workspace

idstring
Workspace ULID identifier.
namestring
Display name of the workspace.
planstring
Current billing plan (e.g. free, starter, pro).
created_atstring
ISO 8601 timestamp when the workspace was created.

api_key

keystring
Partially redacted API key string.
created_atstring
When this key was generated.
last_used_atstring
When this key was last used to make a request.

One key per workspace

Each workspace has a single active API key. Regenerating it in the dashboard invalidates the previous key immediately.