Api ReferenceEndpointCreate a repository
Create a repository
Creates a new repository for the authenticated user.
POST
/reposCreates a new repository for the authenticated user.
Request Body
namestringrequired
Repository name
descriptionstring
Repository description
privateboolean
Whether to create a private repository
default_branchstring
Default branch name
auto_initboolean
Initialize with README
gitignore_templatestring
Gitignore template name
license_templatestring
License template (e.g., mit, apache-2.0)
Responses
201Repository created
idstringrequired
Unique repository ID
namestringrequired
Repository name
full_namestringrequired
Full name including org
privateboolean
Whether the repository is private
descriptionstring
Repository description
default_branchstring
Default branch name
languagestring
Primary language
stars_countinteger
Number of stars
forks_countinteger
Number of forks
created_atstring<date-time>
updated_atstring<date-time>
422Validation error
errorstring
messagestring
documentation_urlstring
curl -X POST "https://drok.us/api/v1/repos" \
-H "Authorization: Bearer $DROK_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"name": "my-repo"
}'