Add a Symbol Source to a Project

POST /api/0/projects/{organization_id_or_slug}/{project_id_or_slug}/symbol-sources/

Add a custom symbol source to a project.

Path Parameters

organization_id_or_slug (string)
REQUIRED

The ID or slug of the organization the resource belongs to.

project_id_or_slug (string)
REQUIRED

The ID or slug of the project the resource belongs to.

Body Parameters

type (string)
REQUIRED

The type of the source.

  • http - SymbolServer (HTTP)
  • gcs - Google Cloud Storage
  • s3 - Amazon S3
name (string)
REQUIRED

The human-readable name of the source.

id (string)

The internal ID of the source. Must be distinct from all other source IDs and cannot start with 'sentry:'. If this is not provided, a new UUID will be generated.

layout (object)

Layout settings for the source. This is required for HTTP, GCS, and S3 sources.

type (string) - The layout of the folder structure. The options are:

  • native - Platform-Specific (SymStore / GDB / LLVM)
  • symstore - Microsoft SymStore
  • symstore_index2 - Microsoft SymStore (with index2.txt)
  • ssqp - Microsoft SSQP
  • unified - Unified Symbol Server Layout
  • debuginfod - debuginfod

casing (string) - The layout of the folder structure. The options are:

  • default - Default (mixed case)
  • uppercase - Uppercase
  • lowercase - Lowercase
Copied
{
    "layout": {
        "type": "native"
        "casing": "default"
    }
}
filters (object)

Filter settings for the source. This is optional for all sources.

filetypes (list) - A list of file types that can be found on this source. If this is left empty, all file types will be enabled. The options are:

  • pe - Windows executable files
  • pdb - Windows debug files
  • portablepdb - .NET portable debug files
  • mach_code - MacOS executable files
  • mach_debug - MacOS debug files
  • elf_code - ELF executable files
  • elf_debug - ELF debug files
  • wasm_code - WASM executable files
  • wasm_debug - WASM debug files
  • breakpad - Breakpad symbol files
  • sourcebundle - Source code bundles
  • uuidmap - Apple UUID mapping files
  • bcsymbolmap - Apple bitcode symbol maps
  • il2cpp - Unity IL2CPP mapping files
  • proguard - ProGuard mapping files

path_patterns (list) - A list of glob patterns to check against the debug and code file paths of debug files. Only files that match one of these patterns will be requested from the source. If this is left empty, no path-based filtering takes place.

requires_checksum (boolean) - Whether this source requires a debug checksum to be sent with each request. Defaults to false.

Copied
{
    "filters": {
        "filetypes": ["pe", "pdb", "portablepdb"],
        "path_patterns": ["*ffmpeg*"]
    }
}
url (string)

The source's URL. Optional for HTTP sources, invalid for all others.

username (string)

The user name for accessing the source. Optional for HTTP sources, invalid for all others.

password (string)

The password for accessing the source. Optional for HTTP sources, invalid for all others.

bucket (string)

The GCS or S3 bucket where the source resides. Required for GCS and S3 source, invalid for HTTP sources.

region (string)

The source's S3 region. Required for S3 sources, invalid for all others.

  • us-east-2 - US East (Ohio)
  • us-east-1 - US East (N. Virginia)
  • us-west-1 - US West (N. California)
  • us-west-2 - US West (Oregon)
  • ap-east-1 - Asia Pacific (Hong Kong)
  • ap-south-1 - Asia Pacific (Mumbai)
  • ap-northeast-2 - Asia Pacific (Seoul)
  • ap-southeast-1 - Asia Pacific (Singapore)
  • ap-southeast-2 - Asia Pacific (Sydney)
  • ap-northeast-1 - Asia Pacific (Tokyo)
  • ca-central-1 - Canada (Central)
  • cn-north-1 - China (Beijing)
  • cn-northwest-1 - China (Ningxia)
  • eu-central-1 - EU (Frankfurt)
  • eu-west-1 - EU (Ireland)
  • eu-west-2 - EU (London)
  • eu-west-3 - EU (Paris)
  • eu-north-1 - EU (Stockholm)
  • sa-east-1 - South America (São Paulo)
  • us-gov-east-1 - AWS GovCloud (US-East)
  • us-gov-west-1 - AWS GovCloud (US)
access_key (string)

The AWS Access Key.Required for S3 sources, invalid for all others.

secret_key (string)

The AWS Secret Access Key.Required for S3 sources, invalid for all others.

prefix (string)

The GCS or S3 prefix. Optional for GCS and S3 sourcse, invalid for HTTP.

client_email (string)

The GCS email address for authentication. Required for GCS sources, invalid for all others.

private_key (string)

The GCS private key. Required for GCS sources if not using impersonated tokens. Invalid for all others.

Scopes

<auth_token> requires one of the following scopes:
  • project:admin
  • project:write
Copied
curl https://sentry.io/api/0/projects/{organization_id_or_slug}/{project_id_or_slug}/symbol-sources/ \
 -H 'Authorization: Bearer <auth_token>' \
 -H 'Content-Type: application/json' \
 -d '{}'
RESPONSESCHEMA
Copied
{ "id": "honk", "name": "honk source", "layout": { "type": "native" }, "type": "http", "url": "http://honk.beep", "username": "honkhonk", "password": { "hidden-secret": true } }
Was this helpful?