POST
/
integrations
/
data
/
github
/
issues
curl --request POST \
  --url https://api.carbon.ai/integrations/data/github/issues \
  --header 'Content-Type: application/json' \
  --header 'authorization: <api-key>' \
  --data '{
  "data_source_id": 123,
  "include_remote_data": false,
  "repository": "<string>",
  "page": 1,
  "page_size": 30,
  "next_cursor": "<string>",
  "filters": {
    "state": "open"
  },
  "order_by": "created",
  "order_dir": "asc"
}'
{
  "data": [
    {
      "id": 123,
      "title": "<string>",
      "url": "<string>",
      "html_url": "<string>",
      "number": 123,
      "user": {
        "id": 123,
        "login": "<string>"
      },
      "labels": [
        {
          "id": 123,
          "name": "<string>"
        }
      ],
      "state": "closed",
      "locked": true,
      "num_comments": 123,
      "created_at": "<string>",
      "updated_at": "<string>",
      "closed_at": "<string>",
      "draft": true,
      "pull_request": {
        "url": "<string>",
        "merged_at": "<string>"
      },
      "body": "<string>",
      "closed_by": {
        "id": 123,
        "login": "<string>"
      }
    }
  ],
  "next_cursor": "<string>"
}

Authorizations

authorization
string
header
required

token <token>, corresponds to temporary access tokens.

Body

application/json
data_source_id
integer
required
repository
string
required

Full name of the repository, denoted as {owner}/{repo}

include_remote_data
boolean
default:
false
page
integer
default:
1
page_size
integer
default:
30
Required range: x < 100
next_cursor
string | null
filters
object
order_by
enum<string>
Available options:
created,
updated,
comments
order_dir
enum<string> | null
default:
asc
Available options:
asc,
desc

Response

200
application/json
Successful Response
data
object[]
required
next_cursor
string | null
required