Create Octopus Deploy API Key
Octopus Deploy supports two methods for creating API keys: via a user profile or via a service account.- Service Account API Key (Recommended)
- User Profile API Key
1
Navigate to Service Accounts
From your Octopus Deploy dashboard, go to Configuration > Users and click on the Create Service Accounts button.

2
Create a new Service Account
Provide:
- Username: A name for the service account
- Display Name: A display name for the service account

3
Create a Team
Navigate to Configuration > Teams and click Add Team.
Provide:
Then click Save.
Provide:- New Team Name: A name for the team
- Team Description(optional): A description for the team
- Select the team access type:
- Accessible in the
currentspace only - Accessible in all spaces(system team)
- Accessible in the
Then click Save.4
Add Service Account to Team
After creating the team, you will be redirected to the team details page. Click on the Add Members button.
Select the service account you created in the previous step and click Add.
Select the service account you created in the previous step and click Add.
5
Add User Role to the team
After adding the service account to the team, Click on the User Roles tab and click Include User Role button.
Search for the Project Contributor role and click on the Apply button.
Click on the Save button.
Search for the Project Contributor role and click on the Apply button.
Click on the Save button.
6
Navigate to the API Keys section
After saving the team settings, we have to create an API key for the service account. Go back to Configuration > Users and find your service account. Click on the service account to view its details.Click on the API Keys section and click New API Key.

7
Generate an API Key
Provide a purpose for the key and set an expiry date, then click Generate New.

8
Copy the API Key securely
Make sure to copy the API key now, you won’t be able to access it again.

Create an Octopus Deploy Connection in Infisical
- Infisical UI
- API
1
Navigate to App Connections
In your Infisical dashboard, navigate to the App Connections page in the desired project.

2
Select Octopus Deploy Connection
Click + Add Connection and choose Octopus Deploy Connection from the list of integrations.

3
Fill out the Octopus Deploy Connection form
Complete the form by providing:
- A descriptive name for the connection
- An optional description
- The Instance URL (e.g., https://your-instance.octopus.app)
- The API Key from the previous step
4
Connection created
After submitting the form, your Octopus Deploy Connection will be successfully created and ready to use with your Infisical project.




