Account

Who am I

GET /me

Ability: read

Returns the login that owns the token, the account it belongs to and the token's abilities. Handy as a "does my token work" check.

curl
Python
Node.js
PHP
curl 'https://proxykite.com/api/v1/me' \
  -H "Authorization: Bearer $HYP_TOKEN" \
  -H 'Accept: application/json'

Response 200

{"data": {
  "id": 15, "name": "Alice", "email": "alice@example.com",
  "role": "customer", "team_role": null, "account_id": 15,
  "abilities": ["rotate"]
}}
FieldMeaning
id, name, emailthe login
rolecustomer for an account owner, subuser for team members and reseller sub-users (admin for staff)
team_rolenull for the account owner and reseller sub-users; admin or viewer for team members
account_idid of the account owner (same as id for the owner)
abilitiesthe token's level: ["read"], ["rotate"] or ["manage"]