Skip to main content
GET
/
orgs
/
{orgname}
Get an organization
curl --request GET \
  --url https://gogs.example.com/api/v1/orgs/{orgname} \
  --header 'Authorization: <api-key>'
{
  "id": 123,
  "username": "<string>",
  "full_name": "<string>",
  "avatar_url": "<string>",
  "description": "<string>",
  "website": "<string>",
  "location": "<string>"
}

Authorizations

Authorization
string
header
required

Personal access token. Use format: token {YOUR_ACCESS_TOKEN}

Path Parameters

orgname
string
required

Organization name

Response

Success

id
integer
username
string
full_name
string
avatar_url
string
description
string
website
string
location
string