You are viewing docs on Elastic's new documentation system, currently in technical preview. For all other Elastic docs, visit

Using the Project Management REST API

Manage your organization's serverless projects using the REST API.

You can manage serverless projects using Elastic Cloud's Project Management REST API. This API allows you to create, update, and delete projects, as well as manage project features and usage.


More APIs let you interact with data, capabilities, and settings inside of specific projects. Refer to the Serverless API reference page.

API Principles

  • The Elastic Cloud REST API is built following REST principles:
    • Resources (such as projects) are represented as URIs.
    • Standard HTTP response codes and verbs are used (GET, POST, PUT, PATCH and DELETE).
    • API calls are stateless. Every request that you make happens in isolation from other calls and must include all the information necessary to fulfill the request.
  • JSON is the data interchange format.


API keys are used to authenticate requests to the Elastic Cloud REST API. Learn how to create API keys.

You must provide the API key for all API requests in the Authorization header as follows:

"Authorization: ApiKey $API_KEY"

For example, if you interact with the API using the curl command:

curl -H "Authorization: ApiKey essu_..."

Open API Specification

The Project Management API is documented using the OpenAPI Specification. The current supported version of the specification is 3.0.

For details, check the API reference or download the OpenAPI Specification.

This specification can be used to generate client SDKs, or on tools that support it, such as the Swagger Editor.


To try the examples in this section:

  1. Create an API key.

  2. Store the generated API key as an environment variable so that you don't need to specify it again for each request:


Create a serverless Elasticsearch project

curl -H "Authorization: ApiKey $API_KEY" \
     -H "Content-Type: application/json" \
     "" \
     -XPOST --data '{
"name": "My project",
"region_id": "aws-us-east-1"

The response from the create project request will include the created project details, such as the project ID, the credentials to access the project, and the endpoints to access different apps such as Elasticsearch and Kibana.

Example of Create project response:

    "id": "cace8e65457043698ed3d99da2f053f6",
    "endpoints": {
        "elasticsearch": "",
        "kibana": ""
    "credentials": {
        "username": "admin",
        "password": "abcd12345"

You can store the project ID as an environment variable for the next requests:

export PROJECT_ID=cace8e65457043698ed3d99da2f053f6

Get project

You can retrieve your project details through an API call:

curl -H "Authorization: ApiKey $API_KEY" \

Get project status

The 'status' endpoint indicates whether the project is initialized and ready to be used. In the response, the project's phase will change from "initializing" to "initialized" when it is ready:

curl -H "Authorization: ApiKey $API_KEY" \

Example response:


Reset Credentials

If you lose the credentials provided at the time of the project creation, you can reset the credentials by using the following endpoint:

curl -H "Authorization: ApiKey $API_KEY" \
    -XPOST \

Delete Project

You can delete your project via the API:

curl -XDELETE -H "Authorization: ApiKey $API_KEY" \

Update Project

You can update your project using a PATCH request. Only the fields included in the body of the request will be updated.

curl -H "Authorization: ApiKey $API_KEY" \
    -H "Content-Type: application/json" \
    "${PROJECT_ID}" \
    -XPATCH --data '{
        "name": "new name",
        "alias": "new-project-alias"

List available regions

You can obtain the list of regions where projects can be created using the API:

curl -H "Authorization: ApiKey $API_KEY" \

On this page