Fetch AuthToken Details

Endpoint Overview #

This API retrieves an authentication token and its associated metadata (expiry, permissions, etc.) for a specified user within a given namespace.

METHOD: PUT
ROUTE: /super-admin/namespace/auth-token/fetch
Headers:
{
“Authorization”: “Bearer <MASTER_API_KEY>”
}

Request format:

{
"data": {
"_id": " userid1",
"namespace_name": "customer_ns_1"
}
}

Response structure:

{
  "data": {
    "auth_token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...",
    "namespace": "customer_ns_1",
    "_id": "userid1",
    "permissions": [
      "mask",
      "unmask",
      "metadata_change"
    ],
    "start_date": "2024-07-11",
    "end_date": "2025-07-10"
  },
  "success": "true",
  "error": {
    "message": ""
  }
}

 

Updated on May 13, 2025
What are your feelings

© All Rights Reserved 2023 | Protecto

Table of contents