Most integrations will require a v1 API key. For more information on the differences between the APIs, check out our article on What is the difference between the APIs?.
Go to the Configuration menu and select API Access. Click Create New API Key.
Enter a Description that will help you identify the key later on.
Select the version of the API you will be using (v1 or v2) and whether you want it to be a read-only key, then click Create Key. Many integrations, especially older ones will require a v1 API key. For more information on the difference between v1 and v2, and which API key you should create, check out this article.
A unique API key will be generated. Copy it to a safe place and click Close.
Once you click Close you will be asked to confirm that you copied the API key. This is your last chance to copy the key; you will only be able to see the last 4 character of the key in the PagerDuty interface after you confirm. If you lose a key you will need to delete it and create a new one.
Once created, you will see your key appear in the list of keys on the API Access page, with versioning noted.