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 CodeReason
401 UnauthorizedThe Bearer token sent with the request is not valid. Verify that you are using a valid Bearer token and try again.
404 Not FoundA user account with the username submitted in the request was not found.
500Unknown reason

If there are other errors in the response, refer to the following sources for more information: Error Codes and HTTP Status Codes.

HEADERS

KeyDatatypeRequiredDescription
Content-Typestring
Authorizationstring

RESPONSES

status: OK

{"users":[{"ROLES":"ROLE_ADMIN | ROLE_USER","username":"admin"}],"meta":{"api_status":"stable","version":"v2.45.1"}}