List the current user's organizations
GET
/user/orgs
const url = 'https://gitea.com/api/v1/user/orgs';const options = {method: 'GET', headers: {Authorization: 'Basic <credentials>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://gitea.com/api/v1/user/orgs \ --header 'Authorization: Basic <credentials>'Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”page
integer
Page number of results to return (1-based)
limit
integer
Page size of results
Responses
Section titled “Responses”OrganizationList
Media typeapplication/json
Array<object>
Organization represents an organization
object
avatar_url
The URL of the organization’s avatar
string
description
The description of the organization
string
email
The email address of the organization
string
full_name
The full display name of the organization
string
id
The unique identifier of the organization
integer format: int64
location
The location of the organization
string
name
The name of the organization
string
repo_admin_change_team_access
Whether repository administrators can change team access
boolean
username
Username of the organization deprecated
string
visibility
The visibility level of the organization (public, limited, private)
string
website
The website URL of the organization
string
Examplegenerated
[ { "avatar_url": "example", "description": "example", "email": "example", "full_name": "example", "id": 1, "location": "example", "name": "example", "repo_admin_change_team_access": true, "username": "example", "visibility": "example", "website": "example" }]APINotFound is a not found empty response
Media typeapplication/json