Skip to main content
POST
Create code providers

Authorizations

x-api-key
string
header
required

Body

application/json

Fields used to create a code provider connection.

platform
required
Allowed value: "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

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
Allowed value: "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.