Skip to content

Get all autolinks of a repository

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

Gets all autolinks that are configured for a repository.

Information about autolinks are only available to repository administrators.

API method documentation

owner
required
string

The account owner of the repository. The name is not case sensitive.

repo
required
string

The name of the repository without the .git extension. The name is not case sensitive.

Response

Media type application/json
Array<object>
Autolink reference

An autolink reference.

object
id
required
integer
key_prefix
required

The prefix of a key that is linkified.

string
url_template
required

A template for the target URL that is generated if a key was found.

string
is_alphanumeric
required

Whether this autolink reference matches alphanumeric characters. If false, this autolink reference only matches numeric characters.

boolean
updated_at
string format: date-time
nullable
Examples
Example default
[
{
"id": 1,
"key_prefix": "TICKET-",
"url_template": "https://example.com/TICKET?query=<num>",
"is_alphanumeric": true
}
]