Get Admin
GET {{URL}}/v1/users/{{AdminUsername}}
This request retrieves the administrator user account associated with WhatsApp Business API.
If successful, the request returns HTTP status code 200 OK.
If not successful, the response may contain one of the following HTTP status codes:
| HTTP Status Code | Reason |
|---|---|
401 Unauthorized | The Bearer token sent with the request is not valid. Verify that you are using a valid Bearer token and try again. |
404 Not Found | A user account with the username submitted in the request was not found. |
500 | Unknown reason |
If there are other errors in the response, refer to the following sources for more information: Error Codes and HTTP Status Codes.
HEADERS
| Key | Datatype | Required | Description |
|---|---|---|---|
Content-Type | string | ||
Authorization | string |
RESPONSES
status: OK
{"users":[{"ROLES":"ROLE_ADMIN | ROLE_USER","username":"admin"}],"meta":{"api_status":"stable","version":"v2.45.1"}}