GitHub API

Use these operations to interact with the GitHub integration in Cortex.

Required permissions

Your API key must have the Configure integrations permission.

Operations

Retrieve configurations

get
Authorizations
AuthorizationstringRequired

All requests to the Cortex API need to provide an Authorization: Bearer <token> header, where <token> is an API key created in the Settings page of your workspace.

Responses
200

Successfully found configurations

application/json
get
/api/v1/github/configurations

Retrieve default configuration

get
Authorizations
AuthorizationstringRequired

All requests to the Cortex API need to provide an Authorization: Bearer <token> header, where <token> is an API key created in the Settings page of your workspace.

Responses
200

Successfully found default configuration

application/json
get
/api/v1/github/default-configuration

Retrieve a single personal configuration

get
Authorizations
AuthorizationstringRequired

All requests to the Cortex API need to provide an Authorization: Bearer <token> header, where <token> is an API key created in the Settings page of your workspace.

Path parameters
aliasstringRequired
Responses
200

Successfully found configuration

application/json
get
/api/v1/github/configurations/personal/{alias}

Retrieve a single app configuration

get
Authorizations
AuthorizationstringRequired

All requests to the Cortex API need to provide an Authorization: Bearer <token> header, where <token> is an API key created in the Settings page of your workspace.

Path parameters
aliasstringRequired
Responses
200

Successfully found configuration

application/json
get
/api/v1/github/configurations/app/{alias}

Validate all configurations

post
Authorizations
AuthorizationstringRequired

All requests to the Cortex API need to provide an Authorization: Bearer <token> header, where <token> is an API key created in the Settings page of your workspace.

Responses
200

Successfully validated all configurations

application/json
post
/api/v1/github/configurations/validate

Add a single app configuration

post
Authorizations
AuthorizationstringRequired

All requests to the Cortex API need to provide an Authorization: Bearer <token> header, where <token> is an API key created in the Settings page of your workspace.

Body
aliasstringRequired
apiHoststringOptional
appUrlstringRequired
applicationIdstringRequired
clientIdstringRequired
clientSecretstringRequired
isDefaultbooleanRequired
privateKeystringRequired
Responses
200

Successfully added configuration

application/json
post
/api/v1/github/configurations/app

Validate a configuration

post
Authorizations
AuthorizationstringRequired

All requests to the Cortex API need to provide an Authorization: Bearer <token> header, where <token> is an API key created in the Settings page of your workspace.

Path parameters
aliasstringRequired
Responses
200

Successfully validated configuration

application/json
post
/api/v1/github/configurations/validate/{alias}

Add a single personal configuration

post
Authorizations
AuthorizationstringRequired

All requests to the Cortex API need to provide an Authorization: Bearer <token> header, where <token> is an API key created in the Settings page of your workspace.

Body
accessTokenstringRequired
aliasstringRequired
apiHoststringOptional
isDefaultbooleanRequired
Responses
200

Successfully added configuration

application/json
post
/api/v1/github/configurations/personal

Update a single app configuration

put
Authorizations
AuthorizationstringRequired

All requests to the Cortex API need to provide an Authorization: Bearer <token> header, where <token> is an API key created in the Settings page of your workspace.

Path parameters
aliasstringRequired
Body
aliasstringRequired
isDefaultbooleanRequired
Responses
200

Successfully updated configuration

application/json
put
/api/v1/github/configurations/app/{alias}

Delete a personal configuration

delete
Authorizations
AuthorizationstringRequired

All requests to the Cortex API need to provide an Authorization: Bearer <token> header, where <token> is an API key created in the Settings page of your workspace.

Path parameters
aliasstringRequired
Responses
200

Successfully deleted configuration

No content

delete
/api/v1/github/configurations/personal/{alias}

No content

Update a single personal configuration

put
Authorizations
AuthorizationstringRequired

All requests to the Cortex API need to provide an Authorization: Bearer <token> header, where <token> is an API key created in the Settings page of your workspace.

Path parameters
aliasstringRequired
Body
aliasstringRequired
isDefaultbooleanRequired
Responses
200

Successfully updated configuration

application/json
put
/api/v1/github/configurations/personal/{alias}

Delete all configurations

delete
Authorizations
AuthorizationstringRequired

All requests to the Cortex API need to provide an Authorization: Bearer <token> header, where <token> is an API key created in the Settings page of your workspace.

Responses
200

Successfully deleted all configurations

No content

delete
/api/v1/github/configurations

No content

Delete a single app configuration

delete
Authorizations
AuthorizationstringRequired

All requests to the Cortex API need to provide an Authorization: Bearer <token> header, where <token> is an API key created in the Settings page of your workspace.

Path parameters
aliasstringRequired
Responses
200

Successfully deleted configuration

No content

delete
/api/v1/github/configurations/app/{alias}

No content

Last updated

Was this helpful?