跳转到内容
Try Gitea Cloud ☁️ for 30 days → Accelerate your Development & Deploys!
Support
This is the documentation of 22.6.1, which is no longer the latest release. See the latest release.

Add email addresses

POST
/user/emails
curl --request POST \
--url https://gitea.example.com/api/v1/user/emails \
--header 'Authorization: Basic <credentials>' \
--header 'Content-Type: application/json' \
--data '{ "emails": [ "example" ] }'

CreateEmailOption options when creating email addresses

object
emails

Email addresses to add

Array<string>
Examplegenerated
{
"emails": [
"example"
]
}

EmailList

Media typeapplication/json
Array<object>

Email an email address belonging to a user

object
email
string format: email
primary
boolean
user_id
integer format: int64
username
string
verified
boolean
Examplegenerated
[
{
"email": "hello@example.com",
"primary": true,
"user_id": 1,
"username": "example",
"verified": true
}
]

APIValidationError is error format response related to input validation

Media typeapplication/json
message
string
url
string