Your orgs' repos, private ones included
curl --request GET \
--url https://patch.gg/api/v1/me/repos \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://patch.gg/api/v1/me/repos', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://patch.gg/api/v1/me/repos"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"data": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"handle": "rope-town/grapple",
"owner": "<string>",
"slug": "<string>",
"name": "<string>",
"summary": "Swing from any surface. Tuned for platformers.",
"kind": "game",
"categories": [
"action"
],
"engine": "three.js",
"code_license": "MIT",
"art_license": "CC-BY-4.0",
"latest_release": {
"version": "<string>",
"published_at": "2023-11-07T05:31:56Z"
},
"pushed_at": "2023-11-07T05:31:56Z",
"clone_url": "https://git.patch.gg/rope-town/grapple.git",
"cover_url": "<string>",
"cover_levels": [
{
"width": 123,
"url": "<string>"
}
],
"card_picture": {
"from": "library",
"url": "<string>",
"levels": [
{
"width": 123,
"url": "<string>"
}
],
"fit": "cover",
"more": [
{
"url": "<string>",
"levels": [
{
"width": 123,
"url": "<string>"
}
]
}
],
"motion": {
"type": "video",
"url": "<string>"
}
},
"command": "pch lfs doctor",
"demo": true,
"owner_image": "<string>",
"visibility": "open"
}
],
"untrusted_fields": [
"<string>"
]
}{
"error": {
"code": "version_exists",
"message": "<string>",
"details": "<unknown>"
}
}{
"error": {
"code": "version_exists",
"message": "<string>",
"details": "<unknown>"
}
}{
"error": {
"code": "version_exists",
"message": "<string>",
"details": "<unknown>"
}
}{
"error": {
"code": "version_exists",
"message": "<string>",
"details": "<unknown>"
}
}Repos
Your orgs' repos, private ones included
Every repo of every org you’re in, whatever its visibility, newest push first, with what a search result says about it read now rather than from the index. Search finds only open repos; this is how you see your own closed source and private ones beside them, as the toolbox’s shelves do. kind (comma-separated) keeps those of any of those kinds. At most 200. The asset library’s repos aren’t listed.
GET
/
me
/
repos
Your orgs' repos, private ones included
curl --request GET \
--url https://patch.gg/api/v1/me/repos \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://patch.gg/api/v1/me/repos', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://patch.gg/api/v1/me/repos"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"data": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"handle": "rope-town/grapple",
"owner": "<string>",
"slug": "<string>",
"name": "<string>",
"summary": "Swing from any surface. Tuned for platformers.",
"kind": "game",
"categories": [
"action"
],
"engine": "three.js",
"code_license": "MIT",
"art_license": "CC-BY-4.0",
"latest_release": {
"version": "<string>",
"published_at": "2023-11-07T05:31:56Z"
},
"pushed_at": "2023-11-07T05:31:56Z",
"clone_url": "https://git.patch.gg/rope-town/grapple.git",
"cover_url": "<string>",
"cover_levels": [
{
"width": 123,
"url": "<string>"
}
],
"card_picture": {
"from": "library",
"url": "<string>",
"levels": [
{
"width": 123,
"url": "<string>"
}
],
"fit": "cover",
"more": [
{
"url": "<string>",
"levels": [
{
"width": 123,
"url": "<string>"
}
]
}
],
"motion": {
"type": "video",
"url": "<string>"
}
},
"command": "pch lfs doctor",
"demo": true,
"owner_image": "<string>",
"visibility": "open"
}
],
"untrusted_fields": [
"<string>"
]
}{
"error": {
"code": "version_exists",
"message": "<string>",
"details": "<unknown>"
}
}{
"error": {
"code": "version_exists",
"message": "<string>",
"details": "<unknown>"
}
}{
"error": {
"code": "version_exists",
"message": "<string>",
"details": "<unknown>"
}
}{
"error": {
"code": "version_exists",
"message": "<string>",
"details": "<unknown>"
}
}Authorizations
An API key (pch_...) or the token from pch login.
Query Parameters
Comma-separated: game, mod, system, effect, character, asset, tool (mechanic still means system)
Maximum string length:
200Example:
"system"