· View as Markdown

Users

Returns the current user

GET /api/v1/users/current.json

Returns information about the currently authenticated user

Headers

  • x-rwgps-api-key string required
    API key for identifying the client application
  • x-rwgps-auth-token string required
    Authentication token for the user

Response 200

  • user object
    4 fields
    • id integer
    • name string
    • created_at date-time
    • updated_at date-time

Errors

  • 401 Unauthorized
Request
curl \
  -H "x-rwgps-api-key: $API_KEY" \
  -H "x-rwgps-auth-token: $AUTH_TOKEN" \
  https://ridewithgps.com/api/v1/users/current.json
Response 200
{
  "user": {
    "id": 123,
    "name": "Alex Rider",
    "created_at": "2000-01-01T12:00:00Z",
    "updated_at": "2000-01-01T12:00:00Z"
  }
}