Identity ยท version 0.1.0
Get the authenticated workspace snapshot
GET
/api/meReturns the authenticated user, their workspace (organization), entitlements, capability flags, and a dashboard snapshot (projects, recent runs, billing state).
Request
curl -X GET 'https://sourced.sh/api/me' \
-H 'Authorization: Bearer $SOURCED_API_KEY'
const response = await fetch("https://sourced.sh/api/me", {
method: "GET",
headers: {
Authorization: `Bearer ${process.env.SOURCED_API_KEY}`,
},
});
const data = await response.json();
import os
import requests
response = requests.request(
"GET",
"https://sourced.sh/api/me",
headers={"Authorization": f"Bearer {os.environ['SOURCED_API_KEY']}"},
)
data = response.json()
Responses
200
Workspace snapshot.
application/json
WorkspaceSnapshot:
type: object
required: auth, data, capabilities
properties:
auth (required): object
type: object
required: provider, authenticated
properties:
provider (required): string
authenticated (required): boolean
localDev: boolean
data (required): object
type: object
required: driver, durable
properties:
driver (required): string enum neon | local
durable (required): boolean
capabilities (required): Capabilities
Capabilities:
type: object
organization: Organization
Organization:
type: object
required: id, name
properties:
id (required): string
name (required): string
plan: string
user: User
User:
type: object
required: id
properties:
id (required): string
email: string
entitlements: Entitlements
Entitlements:
type: object
projects: array
type: array
runs: array
type: array