Whoami

Get the authenticated API account for this session. Call GET /v1/whoami on the Social Fetch API for parameters, response shape, and examples.

GET/v1/whoami
x-api-key*stringheader

API key (`sfk_...`)

Response fields
10

Endpoint-specific response payload.

Authenticated user associated with the provided API key.

datauserid
string

Internal Social Fetch user identifier.

datausername
stringnullable

Display name for the authenticated user, when available.

datauseremail
stringnullable

Email address for the authenticated user, when available.

Metadata describing the request and billing outcome.

metarequestId
string

Unique request identifier for tracing this API call.

min 1 chars

metacreditsCharged
integer

Credits charged for this request.

≥ 0

metaversion
string

Public API version that served the response.

one of: v1

metacached
booleanoptional

True when served from shared response cache. Credits still apply (full endpoint price); Age header may be present.

Code example

curl "https://api.socialfetch.dev/v1/whoami" \
  -H "x-api-key: YOUR_API_KEY"

Responses

OK