Accounts
Who Am I
Returns the API key's identity — its display name, key prefix, creation timestamp, assigned roles, and the full list of granted permissions. Use this to introspect what the current key can do without trial-and-erroring against protected endpoints.
https://public-api.fansmetric.comAuthorization
defaultAuthorizationBearer <token>Send your FansMetric API key as a Bearer token in the Authorization header.
In: header
Response Fields
data.namestringHuman-readable name assigned to the API key when it was created.
data.prefixstringPublic prefix of the API key (e.g.
fm_api_hBLridINX1rdl). Safe to log; the full secret is not returned.data.created_atstringRFC 3339 timestamp (UTC) of when the API key was issued.
data.rolesarrayRoles assigned to the key. Each entry has
id(UUID) andname(e.g.Admin).data.roles[].idstringRole UUID.
data.roles[].namestringHuman-readable role name.
data.permissionsarrayFlat list of permission keys granted to this API key (e.g.
api_accounts_list,api_messages_send). Each documented endpoint lists the permission it requires.dataobject | arrayEndpoint-specific payload. See the fields below for this route.
_meta._credits.usedintegerCredits consumed by this request (currently always
1)._meta._rate_limits.limit_minuteintegerMaximum requests per minute for the organization.
_meta._rate_limits.remaining_minuteintegerRemaining requests in the current minute window.
_meta._rate_limits.limit_dayintegerMaximum requests per day for the organization.
_meta._rate_limits.remaining_dayintegerRemaining requests in the current day window.
| Field | Type | Description |
|---|---|---|
| data.name | string | Human-readable name assigned to the API key when it was created. |
| data.prefix | string | Public prefix of the API key (e.g. fm_api_hBLridINX1rdl). Safe to log; the full secret is not returned. |
| data.created_at | string | RFC 3339 timestamp (UTC) of when the API key was issued. |
| data.roles | array | Roles assigned to the key. Each entry has id (UUID) and name (e.g. Admin). |
| data.roles[].id | string | Role UUID. |
| data.roles[].name | string | Human-readable role name. |
| data.permissions | array | Flat list of permission keys granted to this API key (e.g. api_accounts_list, api_messages_send). Each documented endpoint lists the permission it requires. |
| data | object | array | Endpoint-specific payload. See the fields below for this route. |
| _meta._credits.used | integer | Credits consumed by this request (currently always 1). |
| _meta._rate_limits.limit_minute | integer | Maximum requests per minute for the organization. |
| _meta._rate_limits.remaining_minute | integer | Remaining requests in the current minute window. |
| _meta._rate_limits.limit_day | integer | Maximum requests per day for the organization. |
| _meta._rate_limits.remaining_day | integer | Remaining requests in the current day window. |
curl --request GET "https://public-api.fansmetric.com/v1/whoami" \
--header "Authorization: Bearer YOUR_API_KEY"Response
200