errors.projects.createCreate a project and its first DSN key
The answer carries the DSN to put into the Sentry SDK (`Sentry.init({ dsn })`).
Request syntax
POST /errors/api/projects
{
"name": "string",
"platform": "enum",
"slug": "string"
}Request body
nameRequiredstring
Display name, 1–64 characters (surrounding spaces trimmed)
Constraints: 1-64 chars
platformOptionalenum
What the project runs: javascript-nextjs, javascript, node, python, go or other (default). Chooses the setup snippet the console shows; events of any SDK are accepted either way
One of:
javascript-nextjs,javascript,node,python,go,otherDefault:
"other"slugOptionalstring
What sentry-cli’s --project and SENTRY_PROJECT name: lowercase letters, digits and dashes, starting with a letter or digit, up to 50. Default: derived from the name, with -2, -3, … added when taken. A slug given here that another live project of the organization has is refused (409)
Constraints: /^[a-z0-9][a-z0-9-]{0,49}$/
Response
201 with the project as `get` describes it, with its one key and `dsn`, `stats` null. 409 when the slug you gave is taken, when no free slug can be derived from the name, or when the errors.projects quota is used up.
A JSON response is wrapped as { "success": true, "data": … }; the CLI prints the whole body with --json.
Errors
- 400The request does not pass the schema above. The body is { "error": …, "issues": […] }, one issue per field.
- 401No credentials, or an access key that is unknown, revoked or expired.
- 403The caller's policies do not allow errors:CreateProject on this resource. The body names the action and the resource, and the refusal is recorded in the audit log.
- 404The resource does not exist in your organization.
Examples
The required parameters only, with example values. Replace id and the other placeholders with your own.
dcloud errors projects create --name examplecurl -X POST "https://console.platform.deutschecloud.app/errors/api/projects" \
-H "Authorization: EWS-ACCESS-KEY $ACCESS_KEY" \
-H "Content-Type: application/json" \
-d '{"name":"example"}'Generated from the API description, the same one the API checks requests against and the CLI is built from. MCP tool: dcloud_errors_projects_create.