Registering an API user¶
The API user account provides access to the DevOpsACCELERATE REST API. First, you register an API user via a REST API call. Then, you activate the account.
You can only register an API user once via a REST API call. When you register an API user:
The API user account is not interchangeable with other account types. For example, the API account is invalid for accessing the web interface. To log into the UI, you need separate user account.
You receive an API key that corresponds to the registered API user. The API key does not expire until you rotate the key.
IMPORTANT The preferred method of obtaining your API key is to view your account in the DevOpsACCELERATE Web interface.
To register an API user
useraccountsendpoint and the following parameters. Use the example near the end of this topic as a guide.
Parameter Description userAccountType The value API assigns the DEVOPS role after activation. emailAddress An email address that is not currently registered to another DevOpsACCELERATE user. The email address contains your company domain name.
(Optional) From the REST response, record the information for future API calls.
- If you have not already done so, obtain an API key.
For every REST API call, you add the content-type and your own API key value. For example: