Projects
Create a new project
Creates a new project within the authenticated user’s organization using the specified name. Projects are isolated environments within your organization, each with their own API keys, webhook configurations, and resources. Use this endpoint to create additional projects for different environments (e.g., development, staging, production) or for separate applications.
POST
/
api
/
v3
/
org
/
owner
/
project
/
new
Create a new project
import requests
url = "https://backend.composio.dev/api/v3/org/owner/project/new"
payload = { "name": "my_production_api" }
headers = {
"x-org-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'x-org-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({name: 'my_production_api'})
};
fetch('https://backend.composio.dev/api/v3/org/owner/project/new', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request POST \
--url https://backend.composio.dev/api/v3/org/owner/project/new \
--header 'Content-Type: application/json' \
--header 'x-org-api-key: <api-key>' \
--data '
{
"name": "my_production_api"
}
'package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://backend.composio.dev/api/v3/org/owner/project/new"
payload := strings.NewReader("{\n \"name\": \"my_production_api\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("x-org-api-key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://backend.composio.dev/api/v3/org/owner/project/new")
.header("x-org-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"my_production_api\"\n}")
.asString();using RestSharp;
var options = new RestClientOptions("https://backend.composio.dev/api/v3/org/owner/project/new");
var client = new RestClient(options);
var request = new RestRequest("");
request.AddHeader("x-org-api-key", "<api-key>");
request.AddJsonBody("{\n \"name\": \"my_production_api\"\n}", false);
var response = await client.PostAsync(request);
Console.WriteLine("{0}", response.Content);
false{
"id": "pr_1a2b3c4d5e6f",
"api_key": "ak_a1b2c3d4e5f6g7h8i9j0",
"name": "My Awesome Project"
}{
"error": {
"message": "<string>",
"code": 123,
"slug": "<string>",
"status": 123,
"request_id": "<string>",
"suggested_fix": "<string>",
"errors": [
"<string>"
]
}
}{
"error": {
"message": "<string>",
"code": 123,
"slug": "<string>",
"status": 123,
"request_id": "<string>",
"suggested_fix": "<string>",
"errors": [
"<string>"
]
}
}{
"error": {
"message": "<string>",
"code": 123,
"slug": "<string>",
"status": 123,
"request_id": "<string>",
"suggested_fix": "<string>",
"errors": [
"<string>"
]
}
}{
"error": {
"message": "<string>",
"code": 123,
"slug": "<string>",
"status": 123,
"request_id": "<string>",
"suggested_fix": "<string>",
"errors": [
"<string>"
]
}
}{
"error": {
"message": "<string>",
"code": 123,
"slug": "<string>",
"status": 123,
"request_id": "<string>",
"suggested_fix": "<string>",
"errors": [
"<string>"
]
}
}Authorizations
Body
application/json
Response
Project successfully created. Returns the complete project object with generated IDs, webhook secrets, and configuration.
Create a new project
import requests
url = "https://backend.composio.dev/api/v3/org/owner/project/new"
payload = { "name": "my_production_api" }
headers = {
"x-org-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'x-org-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({name: 'my_production_api'})
};
fetch('https://backend.composio.dev/api/v3/org/owner/project/new', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request POST \
--url https://backend.composio.dev/api/v3/org/owner/project/new \
--header 'Content-Type: application/json' \
--header 'x-org-api-key: <api-key>' \
--data '
{
"name": "my_production_api"
}
'package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://backend.composio.dev/api/v3/org/owner/project/new"
payload := strings.NewReader("{\n \"name\": \"my_production_api\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("x-org-api-key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://backend.composio.dev/api/v3/org/owner/project/new")
.header("x-org-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"my_production_api\"\n}")
.asString();using RestSharp;
var options = new RestClientOptions("https://backend.composio.dev/api/v3/org/owner/project/new");
var client = new RestClient(options);
var request = new RestRequest("");
request.AddHeader("x-org-api-key", "<api-key>");
request.AddJsonBody("{\n \"name\": \"my_production_api\"\n}", false);
var response = await client.PostAsync(request);
Console.WriteLine("{0}", response.Content);
false{
"id": "pr_1a2b3c4d5e6f",
"api_key": "ak_a1b2c3d4e5f6g7h8i9j0",
"name": "My Awesome Project"
}{
"error": {
"message": "<string>",
"code": 123,
"slug": "<string>",
"status": 123,
"request_id": "<string>",
"suggested_fix": "<string>",
"errors": [
"<string>"
]
}
}{
"error": {
"message": "<string>",
"code": 123,
"slug": "<string>",
"status": 123,
"request_id": "<string>",
"suggested_fix": "<string>",
"errors": [
"<string>"
]
}
}{
"error": {
"message": "<string>",
"code": 123,
"slug": "<string>",
"status": 123,
"request_id": "<string>",
"suggested_fix": "<string>",
"errors": [
"<string>"
]
}
}{
"error": {
"message": "<string>",
"code": 123,
"slug": "<string>",
"status": 123,
"request_id": "<string>",
"suggested_fix": "<string>",
"errors": [
"<string>"
]
}
}{
"error": {
"message": "<string>",
"code": 123,
"slug": "<string>",
"status": 123,
"request_id": "<string>",
"suggested_fix": "<string>",
"errors": [
"<string>"
]
}
}