Get Current User
| Time | Status | User Agent | |
|---|---|---|---|
| Make a request to see history. |
URL Expired
The URL for this request expired after 30 days.
``200 A successful response.
object
The response for the GetCurrentUser endpoint.
user
object
id
string
length ≤ 50
The resource identifier for a user.
firstName
string
length ≤ 150
The first name of the user.
lastName
string
length ≤ 150
The last name of the user.
string
length ≤ 256
The email address of the user.
``400 Returned if required fields are omitted or if provided fields fail validation.
``401 Returned if a valid Authorization header has not been included with the request.
``403 Returned when the user does not have permission to access the resource.
``500 Returned if an unexpected internal server error is encountered.
``default An unexpected error response.
Example Request:
curl --request GET \
--url https://mock-api.carta.com/v1alpha1/user \
--header 'accept: application/json'
Example Response:
{
"user": {
"id": "2184ae6f-9415-465a-9f5f-80efbc81b266",
"firstName": "Tagg",
"lastName": "Palmer",
"email": "tagg@example.com"
}
}