Rest API

User

Get current signed in user

Get the current signed in user

GET
/user/me
Server
/user/me

The Authorization access token

Authorization

Authorization
Required
Bearer <token>

In: header

curl -X GET "https://demo.expostarter.com/api/user/me" \
  -H "Authorization: Bearer <token>"

Successful response

{
  "id": "string",
  "email": null,
  "firstName": null,
  "lastName": null,
  "emailVerified": false,
  "acceptedTerms": false,
  "avatarUrl": null,
  "subscriptionId": null,
  "tokenBalance": 0
}

Update current signed in user

Get the current signed in user

PUT
/user
Server
/user

The Authorization access token

Authorization

Authorization
Required
Bearer <token>

In: header

Request Body

application/jsonRequired

firstName
Required
string

lastName
Required
string

acceptedTermsboolean

curl -X PUT "https://demo.expostarter.com/api/user" \
  -H "Authorization: Bearer <token>" \
  -H "Content-Type: application/json" \
  -d '{
    "firstName": "string",
    "lastName": "string",
    "acceptedTerms": true
  }'

Successful response

{
  "id": "string",
  "email": null,
  "firstName": null,
  "lastName": null,
  "emailVerified": false,
  "acceptedTerms": false,
  "avatarUrl": null,
  "subscriptionId": null,
  "tokenBalance": 0
}