TrylleDocs
API ReferenceOpenAPI 3 reference

Bots

GET
/v1/bots

Authorization

bearerAuth
AuthorizationBearer <token>

In: header

Query Parameters

account?string

Filter to bots installed on this account login.

Response Body

application/json

curl -X GET "https://example.com/v1/bots?account=abc123"
"abc123"
POST
/v1/bots

Authorization

bearerAuth
AuthorizationBearer <token>

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

curl -X POST "https://example.com/v1/bots" \  -H "Content-Type: application/json" \  -d '{    "description": "abc123",    "id": "abc123",    "installations": [      {        "accountKind": "org",        "accountLogin": "abc123"      }    ],    "name": "aa",    "scopes": [      "abc123"    ],    "slug": "aa"  }'
"abc123"
GET
/v1/bots/{botId}/installations

Authorization

bearerAuth
AuthorizationBearer <token>

In: header

Path Parameters

botId*string

Bot id.

Length1 <= length

Response Body

application/json

curl -X GET "https://example.com/v1/bots/aa/installations"
"abc123"
POST
/v1/bots/{botId}/installations

Authorization

bearerAuth
AuthorizationBearer <token>

In: header

Path Parameters

botId*string

Bot id.

Length1 <= length

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

curl -X POST "https://example.com/v1/bots/aa/installations" \  -H "Content-Type: application/json" \  -d '{    "accountKind": "org",    "accountLogin": "aa"  }'
"abc123"
DELETE
/v1/bots/{botId}/installations/{accountLogin}

Authorization

bearerAuth
AuthorizationBearer <token>

In: header

Path Parameters

botId*string

Bot id.

Length1 <= length
accountLogin*string

Forgejo owner login the bot is installed on.

Length1 <= length

Response Body

application/json

curl -X DELETE "https://example.com/v1/bots/aa/installations/aa"
"abc123"
POST
/v1/bots/{botId}/tokens

Authorization

bearerAuth
AuthorizationBearer <token>

In: header

Path Parameters

botId*string

Bot id.

Length1 <= length

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

curl -X POST "https://example.com/v1/bots/aa/tokens" \  -H "Content-Type: application/json" \  -d '{    "expiresIn": "abc123",    "name": "abc123"  }'
"abc123"
DELETE
/v1/bots/{botId}/tokens/{tokenId}

Authorization

bearerAuth
AuthorizationBearer <token>

In: header

Path Parameters

botId*string

Bot id.

Length1 <= length
tokenId*string

Token id.

Length1 <= length

Response Body

application/json

curl -X DELETE "https://example.com/v1/bots/aa/tokens/aa"
"abc123"