Skip to Content
OpenPerf

Projects

Create a project

POST
/api/v1/projects

Creates a project and returns it with its DSN. The type can't be changed later. Needs a token that can write.

Authorization

headerAuthorizationBearer <opaque>

Organization API token (opt_…)

Request Body

application/json
  1. body
name*string
Length1 <= length <= 80
type*ProjectType
Value in"bun""node""js"
framework?string
Value in"nextjs""nuxt""remix""sveltekit""astro""react""vue""angular""svelte""express""fastify""nestjs""hono""koa""elysia""other"
color?string
Value in"red""orange""amber""green""teal""blue""violet""pink"

Response Body

application/json
  1. response
id*string
organizationId*string
name*string
slug*string
type*ProjectType
Value in"bun""node""js"
framework*|null
color*ProjectColor
Value in"red""orange""amber""green""teal""blue""violet""pink"
dsn*string
allowedOrigins*array<string>
filteredQueryParams*array<string>|null
inboundFilters*array<>
demo*|null
createdAt*string
Formatdate-time
updatedAt*string
Formatdate-time
Example Request
curl -X POST 'https://api.example.com/api/v1/projects' \
  -H 'Authorization: Bearer <token>' \
  -H 'Content-Type: application/json' \
  -d '{
  "name": "string",
  "type": "bun"
}'
Example Response
{
  "id": "string",
  "organizationId": "string",
  "name": "string",
  "slug": "string",
  "type": "bun",
  "framework": "nextjs",
  "color": "red",
  "dsn": "string",
  "allowedOrigins": [
    "string"
  ],
  "filteredQueryParams": [
    "string"
  ],
  "inboundFilters": [
    "browser_extensions"
  ],
  "demo": "seeding",
  "createdAt": "2019-08-24T14:15:22Z",
  "updatedAt": "2019-08-24T14:15:22Z"
}