Creating Repositories in APIGit
Start with a sample API repository
On the empty home screen, before you have a repository, click Start with a sample API repository. One click creates a private repository named my-first-api and sets it up end to end:
README.md, an introduction and start guideopenapi.yaml, the Petstore API in OpenAPI 3.1guides/authentication.mdandguides/errors.mdapigit.json, the navigation: Introduction, Guides and API referenceapigit-mock/main.js, a stateful code-based mock of the same API (running it needs the Team plan)
It also starts a spec-based mock server on openapi.yaml under the base path /v1, and publishes the docs as version v1.0, Members only, with Try It on. The published site is hidden from search engines: in Site Settings > SEO, Ask search engines not to list this site is on. When it is done, the screen shows the link to the docs, the mock URL, a curl line and the next step, editing openapi.yaml.
On the Free plan the sample uses the plan’s one repository, one published document and one mock server. To create a repository of your own instead, use the wizard below.
Create a repository
Creating a new repository on APIGit is a straightforward process. Navigate to My repositories in the Repository list and click the Create Repository button. A wizard opens on API Repo Information, followed by Review and Create. Where two-way sync with another Git platform is available, a first step, Where Repo Is Hosted, comes before them.
Where that first step is shown, choose where the Git repository is hosted: APIGit or Any Git Platform. See Where to Host the Git Repository. Any Git Platform is available on the Enterprise plan.

Repository Creation Options
Provide the repository details. When the repository is hosted on APIGit, choose how to create it under Create Repository From:
Option 1: Create a Blank Repository
Select Blank Repository to start with a new, empty repository that APIGit initializes for you (it holds only a README.md; there are no example files), then enter the Repository Name and an optional Description.
Option 2: Migrate an Existing Repository
Select Migration to create a new repository on APIGit by importing content from an existing Git repository. The source can be hosted on APIGit, GitHub, or any other accessible third-party Git provider.

Click Next to go to Review and Create, check the details, and click Create API Repository. Repositories are created as private repositories.
Repository Migration
When migrating a repository to APIGit, enter the Remote Git Repository Address, which must start with https://, and choose an Authorization Method: No Authentication, Token or Username and Password.
GitHub and Bitbucket only support Token access for private repositories, or No Authentication for public repositories. Username/password authentication doesn’t work for these providers.
Please check the requirements for each Git provider and select the appropriate access method.

Organization Repositories
If you’re a member of an organization and can create repositories in it, you can also create repositories at the organization level. Simply:
- Navigate to Collaborative in the Repository list
- Click the Create Org Repository button
The same wizard opens, as Create Organization Repository, and the Owner field lists the organizations you can create repositories in. Organizations are available on the Team and Enterprise plans.
