Create an API

The New API wizard creates an API and starts its analysis. This page covers a REST API that is one service. For other cases, see Create a GraphQL API, Create a gRPC API and Analyze an API made of several services.

Before you begin

  • A model provider connected to your workspace. The analysis runs on it. See Connect your model provider.
  • The backend's code, in a GitHub, GitLab or Bitbucket repository that Faustine can read, or as a ZIP. See Connect GitHub.

Describe the API

To start the wizard:

  1. In the portal, go to APIs and select New API.
  2. In API type, select REST. If you do not know the protocol, select Not sure and the analysis detects it.
  3. In Architecture, select One service, then Continue. A backend-for-frontend that declares its own routes is one service.
  4. In Language & framework, select your framework, or Other / not listed. The choice is a hint for the analysis.
  5. In Details, enter a Name and a Namespace, then select Continue.

The namespace starts every operation key, as in billing.invoices.list. It accepts lowercase letters and digits, and it cannot be changed after the API is created. The wizard reports a namespace that another API of your workspace already uses.

Connect your code

In Connect your code, choose where the code comes from.

  1. Select the provider: GitHub, GitLab or Bitbucket.
  2. Select the connection, then the Repository and the Branch. All three are required.
  3. If the API lives in a folder of a monorepo, enter the folder in API path.

Anything we should know about this API? is optional. The analysis reads it before it reads the code, so use it for vocabulary, routes to skip and unusual error handling. Select Continue.

Add a spec and choose how the API updates

  1. In Spec (optional), upload an OpenAPI or Swagger file (.json or .yaml, up to 5 MB), or select Skip. With a spec, the analysis takes routes and schemas from it and reads the code for rules and authentication.
  2. In Keep the API up to date, select Automatic or Manual, then Continue. This step appears only when the code comes from a repository. See Keep the API up to date.
  3. In Review & analyze, check the summary and select Create & start analysis.

The portal opens the analysis page, where the run shows its stages and its log. You can leave the page while it runs. When the run finishes, select Open the API page.

Troubleshooting

Symptom Cause Fix
The namespace "…" is already used by another API. Namespaces are unique in a workspace. Enter another namespace in Details.
The file is larger than 5 MB. The spec file is over the limit. Upload a smaller spec, or skip the step and let the analysis read the code.
Keep the API up to date does not appear The code is a ZIP, which has no branch to watch. Update the API with Upload a new version in the Actions menu.

Next steps

Last updated November 11, 2026