---
title: "GitHub's deliveries to the Xovris GitHub App"
url: https://xovris.ai/docs/api/operations/postintegrationsgithubwebhook/
---

# GitHub's deliveries to the Xovris GitHub App

`POST /v1/integrations/github/webhook`

Needs a token that can read and change. A token without change access is refused with `token_read_only` and the step to take.

## Request body

### `application/json`

- `repository` (object)
  - `full_name` (string)
- `action` (string)
- `check_suite` (Tc477c7d7ee08)
  - `head_sha` (string)
  - `conclusion` (string | null)
  - `pull_requests` (object[])
- `pull_request` (object)
  - `number` (number)
- `review` (Te75dd7b96482)
  - `state` (string)
  - `body` (string | null)
  - `user` (object)
- `installation` (object)
  - `id`
- `check_run` (Te6d937686674)
  - `name` (string)
  - `conclusion` (string | null)
  - `head_sha` (string)
  - `html_url` (string)
  - `output` (T0b7f5601b62a)
  - `pull_requests` (object[])
- `deployment_status` (T956eec9c77e6)
  - `state` (string)
  - `environment_url` (string)
- `deployment` (Td32b3a5d072a)
  - `sha` (string)
  - `environment` (string)
  - `production_environment` (boolean)
- `sender` (object)
  - `login` (string)
- `issue` (Tdd45fac2d1cf)
  - `number` (number)
  - `pull_request`
- `comment` (Tabb57df23e98)
  - `id` (number)
  - `body` (string)
  - `user` (T4647de5862cb)
- `ref` (string)
- `after` (string)

Example:

```json
{
  "repository": {
    "full_name": "string"
  },
  "action": "string",
  "check_suite": {
    "head_sha": "string",
    "conclusion": "string",
    "pull_requests": [
      {
        "number": 1
      }
    ]
  },
  "pull_request": {
    "number": 1
  },
  "review": {
    "state": "string",
    "body": "string",
    "user": {
      "login": "string"
    }
  },
  "installation": {
    "id": null
  },
  "check_run": {
    "name": "string",
    "conclusion": "string",
    "head_sha": "string",
    "html_url": "string",
    "output": {
      "title": "string",
      "summary": "string"
    },
    "pull_requests": [
      {
        "number": 1
      }
    ]
  },
  "deployment_status": {
    "state": "string",
    "environment_url": "string"
  },
  "deployment": {
    "sha": "string",
    "environment": "string",
    "production_environment": true
  },
  "sender": {
    "login": "string"
  },
  "issue": {
    "number": 1,
    "pull_request": null
  },
  "comment": {
    "id": 1,
    "body": "string",
    "user": {
      "login": "string",
      "type": "string"
    }
  },
  "ref": "string",
  "after": "string"
}
```

## Answers

- `200`: Done. (application/json: Tafc97511eb18 | Tc51d814c101f | Ta5749ac7e3d6 | T307c528d71d3 | T91abdc1a04b0 | T3693484c618d | T7f3505adc299 | Tab2c8ac83cdb | T19327ff67a30 | Ta0d7fafd9936 | T258c4d35c35a | T0684fab244ff | Tf6dd87e3cd22 | T5527a196479a | T087366ed256d | T728d261b2475 | T0f9e5f7e3367 | Tfd6facf1ce0f | Td8321100bb70 | Tbdb0d2d45862 | T76ac0e507816)
- `201`: Done: something new was made, and the answer is it. (application/json: object)
- `202`: Started: the answer says where to follow it. (application/json: T51ce326af4e2 | Tb492eb83d84b)
- `401`: Not signed in: the token is missing, expired or revoked. The answer says how to get a new one. (application/json: Problem)
- `403`: Signed in, but this token or role may not do this. The answer names the permission it needs. (application/json: Problem)
- `404`: Nothing with that id here, or it belongs to another workspace. Nothing was changed. (application/json: Problem)
- `default`: Any other refusal or failure. The answer says what happened and what to do next. (application/json: Problem)

## A call

The address is https://api.xovris.ai/v1/integrations/github/webhook - put your own value in place of each part in braces.

```sh
curl --request POST \
  --url 'https://api.xovris.ai/v1/integrations/github/webhook' \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{"repository":{"full_name":"string"},"action":"string","check_suite":{"head_sha":"string","conclusion":"string","pull_requests":[{"number":1}]},"pull_request":{"number":1},"review":{"state":"string","body":"string","user":{"login":"string"}},"installation":{"id":null},"check_run":{"name":"string","conclusion":"string","head_sha":"string","html_url":"string","output":{"title":"string","summary":"string"},"pull_requests":[{"number":1}]},"deployment_status":{"state":"string","environment_url":"string"},"deployment":{"sha":"string","environment":"string","production_environment":true},"sender":{"login":"string"},"issue":{"number":1,"pull_request":null},"comment":{"id":1,"body":"string","user":{"login":"string","type":"string"}},"ref":"string","after":"string"}'
```
