Return the current workspace user profile.
using System.Net.Http.Headers;var client = new HttpClient();var request = new HttpRequestMessage{ Method = HttpMethod.Get, RequestUri = new Uri("https://example.com/api/workspace/auth/me"),};using (var response = await client.SendAsync(request)){ response.EnsureSuccessStatusCode(); var body = await response.Content.ReadAsStringAsync(); Console.WriteLine(body);}const url = 'https://example.com/api/workspace/auth/me';const options = {method: 'GET'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://example.com/api/workspace/auth/meLocale is resolved from the workspace settings.
Authorizations
Section titled “Authorizations”- None
Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”Optional access token for clients that cannot set Authorization headers. Prefer Authorization: Bearer <token> when possible.
Responses
Section titled “Responses”OK
object
Workspace user profile response.
object
Workspace user identifier.
User login name.
User email address.
User first name.
User last name.
Workspace slug identifier.
Workspace locale code.
Workspace time zone identifier.
Workspace date-time format pattern.
Workspace date format pattern.
Workspace time format pattern.
Workspace routing region code.
Role names assigned to the user.
Permission keys assigned to the user.
Typed module availability snapshot included in the authenticated user context.
object
Availability state for one workspace module in the authenticated user context.
object
Availability state for one workspace module in the authenticated user context.
object
Availability state for one workspace module in the authenticated user context.
object
Availability state for one workspace module in the authenticated user context.
object
Availability state for one workspace module in the authenticated user context.
object
object
object
object
object
Example
{ "Data": { "UserType": 0, "OnboardingStatus": 0 }, "Errors": [ { "Type": 0, "Severity": 0 } ], "Warnings": [ { "Type": 0, "Severity": 0 } ]}Unauthorized
object
Examplegenerated
{ "type": "example", "title": "example", "status": 1, "detail": "example", "instance": "example"}Forbidden
object
Examplegenerated
{ "type": "example", "title": "example", "status": 1, "detail": "example", "instance": "example"}