Skip to content

Get Admin Profile

Read the profile of the currently authenticated admin.

Endpoint

EndpointMethodPurpose
/api/admin/getGETReturn the authenticated admin's profile

Details

  • Requires a valid admin Bearer token.
  • The response is a JSON array containing a single profile object — id, name, email, image, status, and role (roleId / roleName).
  • An unauthenticated request returns HTTP 401.

Examples

Use the interactive example on the right.

Released under the MIT License.