Integrations
Preview

List the git host connections

The organization's connections to GitLab, Bitbucket Cloud and Azure DevOps, by name, each with when its webhook last delivered an event Wardn believed. Tokens and webhook secrets are never returned.

GET
/git-hosts
cookiebetter-auth.session_token<token>

Better Auth session cookie. Production uses the __Secure- prefixed name.

Response Body

The connections.

application/json
  1. response
items*array<>
Example Request
curl -X GET 'https://wardn.example.com/api/v1/git-hosts'
Example Response
{  "items": [    {      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",      "kind": "gitlab",      "name": "string",      "baseUrl": "string",      "auth": "token",      "username": "string",      "credentialsRef": "githost:0193a3f1-7e5c-7b6a-9f00-000000000001",      "webhookPath": "string",      "webhookHint": "string",      "hasPrivateCa": true,      "paused": true,      "projects": [        "string"      ],      "posts": {        "syncStatus": true,        "releaseStatus": true,        "comment": true,        "previewLink": true,        "environments": [          "string"        ]      },      "webhookSecret": "string",      "lastDeliveryAt": "2019-08-24T14:15:22Z",      "createdAt": "2019-08-24T14:15:22Z",      "updatedAt": "2019-08-24T14:15:22Z"    }  ]}