Skip to main content
DELETE
/
api
/
v1
/
code-providers
/
{providerId}
Delete code providers
curl --request DELETE \
  --url https://api.agenhq.com/api/v1/code-providers/{providerId} \
  --header 'x-api-key: <api-key>'
{
  "id": "<string>",
  "workspace_id": "<string>",
  "user_id": "<string>",
  "platform": "gitlab",
  "name": "<string>",
  "base_url": "<string>",
  "metadata": {
    "type": "gitlab_personal_access_token",
    "token": "<string>"
  },
  "created_at": "2023-11-07T05:31:56Z",
  "updated_at": "2023-11-07T05:31:56Z"
}

Documentation Index

Fetch the complete documentation index at: https://docs.agenhq.com/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

x-api-key
string
header
required

Path Parameters

providerId
string
required
Minimum string length: 1

Response

A code provider connection configured for a workspace.

A code provider connection configured for a workspace.

id
string
required
read-only

The unique identifier of the code provider connection inside Agen.

workspace_id
string
required
read-only

The workspace that owns this code provider connection.

user_id
string
required
read-only

The user who connected this code provider account.

platform
required
Available options:
gitlab
name
string
required

A human-readable name for the connected code provider account.

base_url
string
required

The base URL Agen should use to talk to the code hosting platform API.

metadata
object
required
created_at
string<date-time>
required
read-only

When the code provider connection was created in Agen.

updated_at
string<date-time>
required
read-only

When the code provider connection was last updated in Agen.