Skip to content
Try Gitea Cloud ☁️ for 30 days → Accelerate your Development & Deploys!

Get available issue templates for a repository

GET
/repos/{owner}/{repo}/issue_templates
curl --request GET \
--url https://gitea.com/api/v1/repos/example/example/issue_templates \
--header 'Authorization: Basic <credentials>'
owner
required
string

Owner of the repo

repo
required
string

Name of the repo

IssueTemplates

Media typeapplication/json
Array<object>

IssueTemplate represents an issue template for a repository

object
about
string
assignees
Array<string>
body
Array<object>

IssueFormField represents a form field

object
attributes
object
key
additional properties
id
string
type
string
Allowed values: markdown textarea input dropdown checkboxes
validations
object
key
additional properties
visible
Array<string>
Allowed values: form content
content
string
file_name
string
labels
Array<string>
name
string
ref
string
title
string
Example
[
{
"body": [
{
"type": "markdown",
"visible": [
"form"
]
}
]
}
]

APINotFound is a not found empty response