The Personal Access Token is required to authenticate to the DevOps Plan REST API. You can use Personal
Access Tokens to connect the DevOps Plan
REST API to its various REST endpoints.
You can authenticate with a personal access token from the welcome page of the DevOps Plan REST API. .
-
Click on Personal Access Tokens from the left hand menu on the
screen.
-
Click Create New API Token.
-
Create a name for the token, select the expiration duration and click
Create. Optionally, you can extend the duration of the token or
revoke the token.
-
Copy the new token by clicking Copy. You will need to paste this
information when configuring your REST API connection.
-
When configuring authentication to connect to a REST API endpoint, select
Basic authentication and paste the entirely of the token. If
configuring using Postman, click Send. Once you click send, you
will see a response. To pass the request in cURL, see the following example:
curl -H "Authorization: : Basic <PAT>" https://<plan-server-url>/ccmweb/rest/<endpoint>