API referenceAccount

Account snapshot

GET
/v1/me

Returns the Customer object. Also works for a suspended account.

Authorization

ApiKey
headerX-API-Key<token>

prx_live_<40 base62>

Response Body

OK

application/json
  1. response
data*
message*string

Human-readable status, safe to show to end users.

curl -X GET "https://example.com/v1/me"
{  "data": {    "company_name": "string",    "created_at": "2019-08-24T14:15:22Z",    "credit_balance_cents": 0,    "currency": "USD",    "email": "user@example.com",    "gateway": {      "host": "gw.example.com",      "port": 8000    },    "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",    "limits": {      "api_keys": 10,      "concurrency": 500,      "list_count": 1000,      "proxy_users": 50    },    "networks": {      "mobile": {        "bytes_left": 0,        "bytes_purchased": 0,        "bytes_used": 0,        "status": "none",        "valid_until": "2019-08-24T14:15:22Z"      },      "residential": {        "bytes_left": 0,        "bytes_purchased": 0,        "bytes_used": 0,        "status": "none",        "valid_until": "2019-08-24T14:15:22Z"      }    },    "plans": [      {        "cancel_at_period_end": true,        "code": "res_100",        "currency": "USD",        "current_period_end": "2019-08-24T14:15:22Z",        "gb": 0,        "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",        "interval": "day",        "kind": "allowance",        "monthly_cents": 0,        "name": "string",        "network": "residential",        "paypal_subscription_id": "string",        "provider": "stripe",        "scheduled_change": {          "at": "2019-08-24T14:15:22Z",          "plan_code": "string",          "plan_name": "string"        },        "status": "incomplete"      }    ],    "status": "active",    "suspend_reason": "string"  },  "message": "OK"}