Skip to main content
POST
/
v1
/
apps
/
{appId}
/
git
/
connect
Mint an OAuth authorization URL for git-provider connect
curl --request POST \
  --url https://api.agentmark.co/v1/apps/{appId}/git/connect \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --header 'X-Agentmark-App-Id: <api-key>' \
  --data '{}'
{
  "data": {
    "authorization_url": "<string>",
    "expires_at": "2023-11-07T05:31:56Z",
    "state": "<string>"
  }
}

Documentation Index

Fetch the complete documentation index at: https://docs.agentmark.co/llms.txt

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

Authorizations

X-Agentmark-App-Id
string
header
required

Application ID for tenant scoping

Authorization
string
header
required

API key (sk_agentmark_*)

Path Parameters

appId
string<uuid>
required

Body

application/json
provider
enum<string>
required
Available options:
github,
gitlab

Response

Authorization URL minted.

data
object
required