Skip to main content
POST
/
{org}
/
repos
Create repository
curl --request POST \
  --url https://api.mesa.dev/v1/{org}/repos \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>",
  "default_bookmark": "main",
  "tags": {}
}
'
{
  "id": "<string>",
  "org": "<string>",
  "name": "<string>",
  "default_bookmark": "<string>",
  "head_change_id": "<string>",
  "created_at": "2023-11-07T05:31:56Z",
  "tags": {}
}

Documentation Index

Fetch the complete documentation index at: https://docs.mesa.dev/llms.txt

Use this file to discover all available pages before exploring further.

Required scope: write

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

org
string
required
Minimum string length: 1

Body

application/json
name
string
Required string length: 1 - 100
default_bookmark
string
default:main
tags
object

Response

Repository created

id
string
required
org
string
required
name
string
required
default_bookmark
string
required
head_change_id
string
required

Current change id at the default bookmark tip. On empty repositories this is the virtual root change id (zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz).

Pattern: ^[zyxwvutsrqponmlk]{32}$
created_at
string<date-time>
required
tags
object
required