Knowledgebase

How to get API access Token?

  • 1

 

 

How to Get API Access Token?

Use the following API call to get an access token.

You need to ensure that your local IP address is allowed to access the API in Access Management. Refer to this article for instructions.
curl -ksD - -o /dev/null -H 'Content-Type: application/json' -d '
{
  "auth": {
    "identity": {
      "methods": [
        "password"
      ],
      "password": {
        "user": {
          "name": "user_name",
          "domain": {
            "name": "domain_id"
          },
          "password": "user_password"
        }
      }
    },
    "scope": {
      "project": {
        "name": "project_id",
        "domain": {
          "name": "domain_id"
        }
      }
    }
  }
}' API_ACCESSPOINT_URL:5000/v3/auth/tokens

This will return the following output, from which you can find the Access token (X-Subject-Token):

HTTP/1.1 201 Created
Server: nginx/1.22.1
Date: Wed, 13 Aug 2025 18:10:52 GMT
Content-Type: text/html; charset=UTF-8
Transfer-Encoding: chunked
Connection: keep-alive
X-Subject-Token: gAAAAABonNUp14A9***************************************
Vary: X-Auth-Token
x-openstack-request-id: req-09aea56f-**********************

You can find parameters domain_id, project_id, user_password, user_name, API_ACCESSPOINT_URL from your control panel itself. Navigate to your public cloud hosting service information page.

Control Panel Screenshot


Was this answer helpful?