---
title: "Get an autolink reference of a repository"
method: GET
path: "/repos/{owner}/{repo}/autolinks/{autolink_id}"
tags: ["repos"]
---

# Get an autolink reference of a repository

`GET /repos/{owner}/{repo}/autolinks/{autolink_id}`

This returns a single autolink reference by ID that was configured for the given repository.

Information about autolinks are only available to repository administrators.

## Path parameters

- `owner` string, required
- `repo` string, required
- `autolink_id` integer, required

## Response `200`

Response

- Autolink — An autolink reference.
  - `id` integer, required
  - `key_prefix` string, required — The prefix of a key that is linkified.
  - `url_template` string, required — A template for the target URL that is generated if a key was found.

## Other responses

- `404` — Resource not found

---

[API](https://skmtc.net/github/apis/github-v3-rest-api-4.md) · [All operations](https://skmtc.net/github/apis/github-v3-rest-api-4/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/github/github-v3-rest-api-4/versions/ee6c7a46328e/schema)
