---
title: "Get authorization details"
method: GET
path: "/authorizations/details/{code}"
---

# Get authorization details

`GET /authorizations/details/{code}`

Returns details of an authorization

## Path parameters

- `code` string, required

## Response `200`

OK

- Authorization
  - `code` string, required — The authorization code.
  - `permissions` Permission[], nullable — The permissions that the token will have.
    - union
      - object
        - `permission` 'package/publish', required — The permission name.
        - `scope` string, required — The name of a scope. This must not be @ prefixed.
      - object
        - `permission` 'package/publish', required — The permission name.
        - `scope` string, required — The name of a scope. This must not be @ prefixed.
        - `package` string, required — The name of a package.
      - object
        - `permission` 'package/publish', required — The permission name.
        - `scope` string, required — The name of a scope. This must not be @ prefixed.
        - `package` string, required — The name of a package.
        - `version` string, required — A semantic version.
        - `tarballHash` string, required — The SHA256 hash of the tarball.
  - `expiresAt` string, date-time, required — The date and time until which the authorization can be approved / exchanged.

## Other responses

- `404` — Authorization not found

---

[API](https://skmtc.net/jsr-io/apis/jsr-api.md) · [All operations](https://skmtc.net/jsr-io/apis/jsr-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/jsr-io/jsr-api/versions/3d37ac9b68f7/schema)
