Skip to main content
GET
https://api.tensormesh.ai
/
auth
/
profile
Get Auth Profile
curl --request GET \
  --url https://api.tensormesh.ai/auth/profile \
  --header 'Authorization: Bearer <token>'
{
  "user": {
    "id": "<string>",
    "firstName": "<string>",
    "lastName": "<string>",
    "displayName": "<string>",
    "userEmail": "<string>",
    "authProvider": "AUTH_PROVIDER_UNSPECIFIED",
    "authProviderId": "<string>",
    "avatarUrl": "<string>",
    "stripeCusId": "<string>",
    "userRole": "USER_ROLE_UNSPECIFIED",
    "apiKey": "<string>",
    "company": "<string>",
    "tosAcceptedAt": "2023-11-07T05:31:56Z",
    "surveyCompletedAt": "2023-11-07T05:31:56Z"
  }
}
Use this group for two related concerns:
  • /auth/profile returns the authenticated caller profile
  • /v1/users/... covers user records, terms of service, and user API keys
The routes live under different prefixes, but they are published together because they are typically used in the same account-management workflows. Current-user operations: User record operations:

Authorizations

Authorization
string
header
required

Bearer authentication using an access token. Format: Bearer <access_token>

Response

A successful response.

GetUserProfileResponse is the response for retrieving a user profile.

user
object

User represents a user profile in the system.