Projects

Get where this project's apps send telemetry

Changed on

The public URL, method and content type of every ingest route (analytics, session replay, errors, OTLP logs and traces), the credential each expects and where to create it, and whether the project already has it. Header values are templates over an environment variable; no credential is returned.

get/projects/{project_id}/ingest-setup

Request

  • Base URL
    /api (relative, and the document was published on a file host, not at the API’s origin)
  • Auth
    HTTP bearer

Path parameters

project_idinteger required

Project ID

Query parameters

environment_idinteger

Attribute telemetry to this environment of the project.

Response

Ingest setup of the project

environment_idinteger nullable

The environment the URLs attribute telemetry to, when one was asked for.

project_idinteger required
project_slugstring required
public_base_urlstring required

Public ingress URL every endpoint is built from, without a trailing slash.

Example response

{
  "project_slug": "my-app",
  "public_base_url": "https://temps.example.com",
  "signals": [
    {
      "auth": {
        "cli_command": "temps analytics keys create --project my-app",
        "credential_path": "/projects/my-app/analytics/setup",
        "env_var": "TEMPS_ANALYTICS_KEY",
        "headers": [
          {
            "name": "Authorization",
            "value": "Bearer $TEMPS_API_KEY"
          }
        ],
        "query_param": "temps_key"
      },
      "endpoints": [
        {
          "content_type": "application/json",
          "method": "POST",
          "name": "event",
          "url": "https://temps.example.com/api/_temps/event"
        }
      ],
      "otlp_endpoint": "https://temps.example.com/api/otel",
      "setup_path": "/projects/my-app/errors/setup"
    }
  ]
}

Changes