View Profile via API
This method allows you to view the profile of the currently authenticated user, including account details.
Tip: You can explore and test this endpoint interactively using our OpenAPI documentation.
URL
/profile
HTTP Method
GET
Supported Parameters
This endpoint does not accept any parameters.
Example cURL Request
curl -H "Content-type: application/json" \
-H "Accept: application/json" \
--user adam@atechmedia.com:my-api-key \
https://test.deployhq.com/profile
Example Response
{
"id": 12345,
"identifier": "9e11def8-8c43-454e-8c99-3c5b9cf08396",
"first_name": "John",
"last_name": "Doe",
"email_address": "john@example.com",
"time_zone": "Etc/UTC",
"account_administrator": true,
"activated": true,
"can_manage_users": true,
"can_manage_billing": true,
"can_create_projects": true,
"can_manage_agents": true,
"all_projects_allowed": true,
"account": {
"name": "zbigw",
"permalink": "zbigw",
"time_zone": "Etc/UTC",
"package": "premium_2020",
"trialling": false,
"suspended": false,
"project_count": 7,
"project_limit": 48,
"users_allowed": true
}
}
Notes
- The response includes a nested
accountobject with details about the account the user belongs to - This endpoint always returns the profile of the currently authenticated user