Skip to main content

User

Get User​

Retrieves information about the user.

HTTP Request​

GET https://dev.calry.app/api/v1/user

Headers​

HeaderValue
AuthorizationBearer YOUR_ACCESS_TOKEN

Example Request​

curl --location 'https://dev.calry.app/api/v1/user' \
--header 'Authorization: Bearer eyJraWQiOiJzLWYzZDhkZTUzLTlhOWYtNDY4NC1hODVhLTY1YjFjMDg0N2MwOCIsInR5cCI6IkpXVCIsImFsZyI6IlJTMjU2In0.eyJpc3MiOiJodHRwOi8vbG9jYWxob3N0OjMwMDAvYXV0aCIsInVzZXJJZCI6IjM2ZTgwNTY4LTkwYTItNDE1OS1iMWI4LTVmNzgwNjY3YWYyMiIsIndvcmtzcGFjZUlkIjoiMDM0MGE1ZWUtNDI2Yi00YmRjLTkxYWMtN2EzMTUwYTAzZTQ3IiwibmFtZSI6InRlc3QiLCJzb3VyY2UiOiJtaWNyb3NlcnZpY2UiLCJpYXQiOjE3MDYxOTg4MzUsImV4cCI6MTcwOTc5ODgzNX0.JEEFXzHl1CikDzkKyzOXYNd-adUWwF1RLljBA99px4FehOADxFz1nYC-7lVl1tgnIPwVt7BUKXDLE-1adNgpNposMvie1a703V_jYXy9J7jrIUBUcPZ8aK4PIDej-wapyApJU-WKkatZp7mSvxeBO3_IqVvxNbHu_TheZpJCxxcu3Em3NVjFynu9JWrlzF-8iiSF6ye7iZlORX-M9YZtdUJ8RWTd46ZUjX2PUV7Uvi8bCRaMaFlAgE04wRpcCb8_8nxVmysJztt9e89WlYWyBIfypBlBSoBSgEKcHoKofbeL7CGgCMltzbmcVi_iI836-esMOzcAiUAQCsrqIwNhpw'

Response​

The response is a JSON object containing the following properties:

  • userId (string): The unique identifier for the user.
  • createdAt (string): Timestamp of when the user was created.
  • updatedAt (string): Timestamp of when the user information was last updated.
  • firstName (string): The user's first name.
  • lastName (string): The user's last name.
  • email (string): The user's email address.

A workspace object array is also included, which contains:

  • workspaceId (string): The unique identifier for the workspace.
  • slug (string): The slug of the workspace.
  • userId (string): The user ID related to the workspace.
  • initialSetupComplete (boolean): Indicates if the initial setup is complete.
  • anonymousDataCollection (boolean): Indicates if anonymous data collection is enabled.
  • deleted (string|null): Indicates if the workspace has been deleted.

Example Response​

{
"userId": "36e80568-90a2-4159-b1b8-5f780667af22",
"createdAt": "2024-01-25T16:03:35.986Z",
"updatedAt": "2024-01-25T16:03:35.986Z",
"firstname": "John",
"lastname": "Doe",
"email": "john@company.com",
"Workspace": [
{
"workspaceId": "0340a5ee-426b-4bdc-91ac-7a3150a03e47",
"slug": "informal-tan",
"name": "informal-tan",
"userId": "36e80568-90a2-4159-b1b8-5f780667af22",
"initialSetupComplete": false,
"anonymousDataCollection": false,
"deleted": null
}
]
}