Step 1: Create a service principal
1
Navigate to Directory in the left sidebar, then click Service principals.
2
Click Create service principal.
3
Enter a display name, for example “Terraform CI” or “Monitoring Script”.
4
Click Create.
Step 2: Create a credential
1
On the service principal detail page, select the Credentials tab.
2
Click Create credential.
3
Configure the credential:
4
Click Create.
5
Copy the client ID and client secret immediately.
Step 3: Get an access token
Exchange the client credentials for a bearer token:Step 4: Call the API
Use the access token in anAuthorization header:
Use with the Terraform provider
Configure the C1 Terraform provider with your service principal credentials. The server URL is derived automatically from the client ID, so you only need two values:Use with Cone CLI
Once the environment variables are set, Cone picks them up automatically:Next steps
- Manage service principals — edit, disable, rotate credentials, assign owners
- Workload federation — eliminate stored secrets with OIDC-based authentication
- Security controls — scoped roles, IP allowlists, DPoP