Skip to main content

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://developers.sarufi.io/api/dev/v1/me \
-H "Authorization: Bearer <your-api-key>"
import requests

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

Response​

200 OK

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

Response Fields​

workspace

FieldTypeDescription
idstringWorkspace ULID identifier.
namestringDisplay name of the workspace.
planstringCurrent billing plan (e.g. free, starter, pro).
created_atstringISO 8601 timestamp when the workspace was created.

api_key

FieldTypeDescription
keystringPartially redacted API key string.
created_atstringWhen this key was generated.
last_used_atstringWhen 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.