curl --request GET \
--url https://api.supernotes.app/v1/user \
--header 'Api-Key: <api-key>'
{
"data": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"email": "<string>",
"first_name": "<string>",
"last_name": "<string>",
"username": "<string>",
"referral_code": "<string>",
"bio": "<string>",
"photo": "<string>",
"kind": 0,
"prefs": {
"indent_type": 0,
"sort_type": 0,
"appearance_mode": -1,
"day_theme": 1,
"night_theme": 1,
"couple_key": "<string>",
"persona": 0,
"haptic_threshold": 0,
"daily_append_format": "plain"
},
"pref_flags": 123,
"feature_preview_flags": 123,
"pins": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
],
"status": -2,
"access_level": -1,
"signup_when": "2023-11-07T05:31:56Z"
},
"subscription": {
"type": 1,
"started_when": "2023-11-07T05:31:56Z",
"expires_when": "2023-11-07T05:31:56Z",
"will_renew": true,
"source": "<string>",
"stripe_subscription_id": "<string>"
},
"quota": 123,
"intercom_hash": "<string>"
}
Get the authenticated user’s information, including subscription details
curl --request GET \
--url https://api.supernotes.app/v1/user \
--header 'Api-Key: <api-key>'
{
"data": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"email": "<string>",
"first_name": "<string>",
"last_name": "<string>",
"username": "<string>",
"referral_code": "<string>",
"bio": "<string>",
"photo": "<string>",
"kind": 0,
"prefs": {
"indent_type": 0,
"sort_type": 0,
"appearance_mode": -1,
"day_theme": 1,
"night_theme": 1,
"couple_key": "<string>",
"persona": 0,
"haptic_threshold": 0,
"daily_append_format": "plain"
},
"pref_flags": 123,
"feature_preview_flags": 123,
"pins": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
],
"status": -2,
"access_level": -1,
"signup_when": "2023-11-07T05:31:56Z"
},
"subscription": {
"type": 1,
"started_when": "2023-11-07T05:31:56Z",
"expires_when": "2023-11-07T05:31:56Z",
"will_renew": true,
"source": "<string>",
"stripe_subscription_id": "<string>"
},
"quota": 123,
"intercom_hash": "<string>"
}
Successful Response
The response is of type object
.