Workspace
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.
GET /api/dev/v1/me
Authorization: Bearer <api-key>
Request
No request body or query parameters required.
curl -X GET https://beta-api.sarufi.io/api/dev/v1/me \
-H "Authorization: Bearer <your-api-key>"
import requests
response = requests.get(
"https://beta-api.sarufi.io/api/dev/v1/me",
headers={"Authorization": "Bearer <your-api-key>"},
)
print(response.json())
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
{
"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
| Field | Type | Description |
|---|---|---|
id | string | Workspace ULID identifier. |
name | string | Display name of the workspace. |
plan | string | Current billing plan (e.g. free, starter, pro). |
created_at | string | ISO 8601 timestamp when the workspace was created. |
api_key
| Field | Type | Description |
|---|---|---|
key | string | Partially redacted API key string. |
created_at | string | When this key was generated. |
last_used_at | string | 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.