# Get commit divergence

Endpoint: POST /code/api/v1/repos/{repo_identifier}/commits/calculate-divergence
Version: 1.0
Security: x-api-key

## Query parameters:

  - `accountIdentifier` (string, required)
    Account Identifier for the Entity.

  - `orgIdentifier` (string)
    Organization Identifier for the Entity.

  - `projectIdentifier` (string)
    Project Identifier for the Entity.

## Path parameters:

  - `repo_identifier` (string, required)

## Request fields (application/json):

  - `max_count` (integer)

  - `requests` (array,null)

  - `requests.from` (string)

  - `requests.to` (string)

## Response 200 fields (application/json):

  - `ahead` (integer)

  - `behind` (integer)

## Response 401 fields (application/json):

  - `message` (string)

  - `values` (object)


