Account Management

Manage user accounts and API keys with the AirPinpoint API.


Account Management

The Account Management endpoints allow you to retrieve and update information about user accounts.

Get Account Information

Retrieve details about the authenticated user's account.

Endpoint

GET /account

Example Request

curl -X GET "https://api.airpinpoint.com/v1/account" \
     -H "Authorization: Bearer YOUR_API_KEY"

Example Response

{
  "id": "user_123456",
  "email": "user@example.com",
  "name": "John Doe",
  "created_at": "2023-01-01T00:00:00Z",
  "subscription_status": "active"
}

Update Account Information

Update the authenticated user's account details.

Endpoint

PUT /account

Example Request

curl -X PUT "https://api.airpinpoint.com/v1/account" \
     -H "Authorization: Bearer YOUR_API_KEY" \
     -H "Content-Type: application/json" \
     -d '{"name": "Jane Doe"}'

Example Response

{
  "id": "user_123456",
  "email": "user@example.com",
  "name": "Jane Doe",
  "updated_at": "2023-06-15T12:30:00Z"
}

For details on getting locations please refer to the Locations page.