Get current user
GEThttps://api.savvycal.com/v1/me
Get the currently authenticated user's profile information
Request
Responses
- 200
- 401
Current user retrieved successfully
- application/json
- Schema
- Example (auto)
Schema
avatar_urlurinullable
URL to user's avatar image
display_namestringrequired
User's display name
emailemailrequired
User's email address
first_day_of_weekintegerrequired
First day of week (0=Sunday, 1=Monday, etc.)
Possible values: >= 0
and <= 6
first_namestringrequired
User's first name
idstringrequired
Unique user identifier (opaque ID)
last_namestringrequired
User's last name
planstringrequired
User's subscription plan
Possible values: [free
, basic
, premium
]
time_formatstringrequired
User's preferred time format
Possible values: [12hr
, 24hr
]
time_zonestringrequired
User's time zone
{
"avatar_url": "https://example.com/avatar.jpg",
"display_name": "John Doe",
"email": "john@example.com",
"first_day_of_week": 1,
"first_name": "John",
"id": "user_abc123",
"last_name": "Doe",
"plan": "premium",
"time_format": "12hr",
"time_zone": "America/New_York"
}
Authentication required
- application/json
- Schema
- Example (auto)
Schema
object
{}
Authorization: oauth2
name: OAuth2type: oauth2description: OAuth 2.0 authorization code flowflows: {
"authorizationCode": {
"authorizationUrl": "/oauth/authorize",
"scopes": {},
"tokenUrl": "/oauth/token"
}
}
- csharp
- curl
- dart
- go
- http
- java
- javascript
- kotlin
- c
- nodejs
- objective-c
- ocaml
- php
- powershell
- python
- r
- ruby
- rust
- shell
- swift
- HTTPCLIENT
- RESTSHARP
var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Get, "https://api.savvycal.com/v1/me");
request.Headers.Add("Accept", "application/json");
request.Headers.Add("Authorization", "Bearer <token>");
var response = await client.SendAsync(request);
response.EnsureSuccessStatusCode();
Console.WriteLine(await response.Content.ReadAsStringAsync());
ResponseClear