Create a connection
The connection type and auth config must match -- for example, a GIT_TOKEN connection requires a GitTokenAuth config. The server validates connectivity on creation when possible and sets the initial status accordingly.
Scope: connection:write
Authorization
bearerAuth Personal Access Token (PAT) or Service Access Token (SAT). Pass the token in the Authorization header: Bearer adm_pat_...
In: header
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
curl -X POST "https://admiral.example.com/api/v1/connections" \ -H "Content-Type: application/json" \ -d '{ "aws_federation": {} }'{ "connection": { "id": "b8c9d0e1-2345-6fab-cdef-0123456789ab", "name": "ecr-prod", "description": "Read-only access to production ECR registry for container image pulls.", "type": "CONNECTION_TYPE_DOCKER_REGISTRY", "status": "CONNECTION_STATUS_ACTIVE", "labels": { "cloud": "aws", "team": "platform" }, "created_by": "d290f1ee-6c54-4b01-90e6-d701748f0851", "updated_by": "d290f1ee-6c54-4b01-90e6-d701748f0851", "created_at": "2025-07-20T14:00:00Z", "updated_at": "2025-10-15T10:30:00Z", "last_tested_at": "2025-11-01T08:00:00Z" }}