POST
/
projects
import { Panora } from "@panora/sdk";

const panora = new Panora({
  apiKey: "<YOUR_API_KEY_HERE>",
});

async function run() {
  const result = await panora.projects.create({
    name: "Project Name",
    idOrganization: "801f9ede-c698-4e66-a7fc-48d19eebaa4f",
    idUser: "801f9ede-c698-4e66-a7fc-48d19eebaa4f",
  });
  
  // Handle the result
  console.log(result)
}

run();
{
  "id_project": "123e4567-e89b-12d3-a456-426614174000",
  "name": "My Project",
  "sync_mode": "automatic",
  "pull_frequency": 3600,
  "redirect_url": "https://example.com/redirect",
  "id_user": "123e4567-e89b-12d3-a456-426614174001",
  "id_connector_set": "123e4567-e89b-12d3-a456-426614174002"
}

Authorizations

x-api-key
string
header
required

Body

application/json
name
string
required

The name of the project

Example:

"Project Name"

id_user
string
required

The user ID

Example:

"801f9ede-c698-4e66-a7fc-48d19eebaa4f"

id_organization
string

The organization ID

Example:

"801f9ede-c698-4e66-a7fc-48d19eebaa4f"

Response

201 - application/json
id_project
string
required

Unique identifier for the project

Example:

"123e4567-e89b-12d3-a456-426614174000"

name
string
required

Name of the project

Example:

"My Project"

sync_mode
string
required

Synchronization mode of the project

Example:

"automatic"

id_user
string
required

User ID associated with the project

Example:

"123e4567-e89b-12d3-a456-426614174001"

id_connector_set
string
required

Connector set ID associated with the project

Example:

"123e4567-e89b-12d3-a456-426614174002"

pull_frequency
number

Frequency of pulling data in seconds

Example:

3600

redirect_url
string

Redirect URL for the project

Example:

"https://example.com/redirect"