---
title: "Resolve a DSN to Its Project"
url: https://docs.sentry.io/api/projects/resolve-a-dsn-to-its-project/
---

# Resolve a DSN to Its Project | Sentry Docs

GET /api/0/organizations/{organization\_id\_or\_slug}/dsn-lookup/

Return the project and client key that a DSN belongs to. Only the DSN's public key is used: the host and project ID in the DSN are ignored.

Returns 400 when `dsn` is missing. Returns 404 when the DSN has no public key, or when it doesn't match an active client key of an active project in this organization that you can access.

### Path Parameters

* `organization_id_or_slug` *(string)*

  REQUIRED

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

### Query Parameters:

* `dsn` *(string)*

  REQUIRED

  The DSN to look up, such as `https://<public_key>@o1.ingest.sentry.io/2`.

### Scopes

You need to [authenticate via bearer auth token.](https://docs.sentry.io/api/auth.md)

`<auth_token>` requires one of the following scopes:

* `org:admin`
* `org:read`
* `org:write`

```
curl https://sentry.io/api/0/organizations/{organization_id_or_slug}/dsn-lookup/ \
 -H 'Authorization: Bearer <auth_token>'
```

RESPONSESCHEMA

```
Copied
{
  "organizationSlug": "the-interstellar-jurisdiction",
  "projectSlug": "pump-station",
  "projectId": "2",
  "projectName": "Pump Station",
  "projectPlatform": "python",
  "keyLabel": "Default",
  "keyId": "60120449"
}
```

---

Find other pages: [Sitemap](https://docs.sentry.io/sitemap.md) lists every page with a one-line summary, and [llms.txt](https://docs.sentry.io/llms.txt) gives an overview with guidance for agents.
