---
title: "Get a single scope by ID"
method: GET
path: "/api/v1/scopes/{id}"
tags: ["Scopes"]
---

# Get a single scope by ID

`GET /api/v1/scopes/{id}`

Required scope - read_scope

## Path parameters

- `id` number, required

## Response `200`

A single scope object

- object
  - `scope` ScopeDetail
    - `id` number
    - `name` string
    - `note` string
    - `type` 'spa' | 's2s'
    - `createdAt` string
    - `updatedAt` string
    - `deletedAt` string, nullable
    - `locales` object[]
      - `id` number
      - `scopeId` number
      - `locale` string
      - `value` string
      - `createdAt` string
      - `updatedAt` string
      - `deletedAt` string, nullable

## Changes

- **2024-08-11** `11e2773b3a1e` — 15 breaking
  - the response property `scope/allOf[#/components/schemas/Scope]/createdAt` became optional for the status `200`
  - the response property `scope/allOf[#/components/schemas/Scope]/deletedAt` became optional for the status `200`
  - the response property `scope/allOf[#/components/schemas/Scope]/id` became optional for the status `200`
  - the response property `scope/allOf[#/components/schemas/Scope]/name` became optional for the status `200`
  - …11 more

[Change history](https://skmtc.dev/valuemelody/apis/melody-auth-s2s-api/changes/api/v1/scopes/:id/get.md)

---

[API](https://skmtc.dev/valuemelody/apis/melody-auth-s2s-api.md) · [All operations](https://skmtc.dev/valuemelody/apis/melody-auth-s2s-api/llms.txt) · [OpenAPI document](https://skmtc.dev/valuemelody/apis/melody-auth-s2s-api/revisions/ffd604cd7944?raw)
