---
title: "Get service repository information"
method: POST
path: "/api/v2/sourcemaps/service_repository_info"
tags: ["RUM"]
---

# Get service repository information

`POST /api/v2/sourcemaps/service_repository_info`

Returns the repository URL and commit SHA associated with a given service and version.

## Request body

- ServiceRepositoryInfoRequest — Request body for retrieving service repository information.
  - `data` ServiceRepositoryInfoRequestData, required — Data object for the service repository info request.
    - `attributes` ServiceRepositoryInfoRequestAttributes, required — Attributes for the service repository info request.
      - `service` string, required — The name of the service.
      - `version` string, required — The version of the service.
    - `type` 'service_repository_info', required — The resource type for service repository info objects.

## Response `200`

OK

- ServiceRepositoryInfoResponse — Response containing service repository information.
  - `data` ServiceRepositoryInfoResponseData, required — Data object for the service repository info response.
    - `attributes` ServiceRepositoryInfoResponseAttributes, required — Attributes of the service repository information.
      - `commit_sha` string — The SHA of the commit associated with the service version.
      - `repository_url` string — The URL of the source code repository.
      - `status` 'success' | 'not_found' | 'no_repository' | 'internal_error' | 'unknown', required — The status of the service repository info lookup.
    - `id` string, required — The identifier composed of the service name and version.
    - `type` 'service_repository_info', required — The resource type for service repository info objects.

## Other responses

- `401` — Unauthorized
- `429` — Too many requests
- `500` — Internal Server Error

---

[API](https://skmtc.net/datadog/apis/api-v2.md) · [All operations](https://skmtc.net/datadog/apis/api-v2/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/datadog/api-v2/versions/da68bf029e4c/schema)
