Skip to main content
POST
/
organization
/
{organizationId}
/
gitToken
Create a git token
curl --request POST \
  --url https://api.qovery.com/organization/{organizationId}/gitToken \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{
  "name": "<string>",
  "description": "<string>",
  "type": "BITBUCKET",
  "token": "<string>",
  "workspace": "<string>",
  "git_api_url": "<string>"
}'
{
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "created_at": "2023-11-07T05:31:56Z",
  "updated_at": "2023-11-07T05:31:56Z",
  "name": "<string>",
  "description": "<string>",
  "type": "BITBUCKET",
  "expired_at": "2023-12-25",
  "workspace": "<string>",
  "associated_services_count": 123,
  "git_api_url": "<string>"
}

Authorizations

Authorization
string
header
required

Token API are generated by Qovery to manage machine to machine interaction and do not have a TTL. Prefix your token with "Token ". Curl Example: curl https://console.qovery.com/organization -H "Authorization: Token $qovery_token"

Path Parameters

organizationId
string<uuid>
required

Organization ID

Body

application/json
name
string
required
type
enum<string>
required
Available options:
BITBUCKET,
GITHUB,
GITLAB
token
string
required

The token from your git provider side

description
string
workspace
string

Mandatory only for BITBUCKET git provider, to allow us to fetch repositories at creation/edition of a service

git_api_url
string<uri>

custom git api url for the given git provider/type. I.e: Self-hosted version of Gitlab

Response

Git token created

id
string<uuid>
required
created_at
string<date-time>
required
name
string
required
type
enum<string>
required
Available options:
BITBUCKET,
GITHUB,
GITLAB
associated_services_count
number
required

The number of services using this git token

git_api_url
string<uri>
required
updated_at
string<date-time>
description
string
expired_at
string<date>
workspace
string

Mandatory only for BITBUCKET git provider