---
title: "Get subject by ID"
method: GET
path: "/v1/subjects/{id}"
tags: ["Subjects"]
---

# Get subject by ID

`GET /v1/subjects/{id}`

## Request

- Base URL: `https://idaas.yourflexpay.com/api`
- URL: `https://idaas.yourflexpay.com/api/v1/subjects/{id}`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/reflexpay/apis/idaas-identity-as-a-service-api/docs/v1/subjects/:id/get.ts> (a function with typed inputs; its response is checked against the schema)

Returns one subject by UUID.

## Path parameters

- `id` string, uuid, required

## Response `200`

Subject returned

- ApiResponseSubjectResponse
  - `success` boolean
  - `message` string
  - `errorCode` string
  - `data` SubjectResponse
    - `id` string, uuid
    - `applicationId` string, uuid
    - `applicationName` string
    - `externalId` string
    - `displayName` string
    - `email` string
    - `imageUrl` string
    - `metadata` object
    - `createdAt` string, date-time
  - `errors` string[]
  - `timestamp` string, date-time

## Other responses

- `404`: Subject not found

## Changes

- **2026-04-17** `db1f954badfb`: 3 info
  - added the non-success response with the status `404`
  - added the optional property `data/imageUrl` to the response with the `200` status
  - added the optional property `errorCode` to the response with the `200` status

[Operation history](https://skmtc.dev/reflexpay/apis/idaas-identity-as-a-service-api/changes/v1/subjects/:id/get.md)

---

[API](https://skmtc.dev/reflexpay/apis/idaas-identity-as-a-service-api.md) - [All operations](https://skmtc.dev/reflexpay/apis/idaas-identity-as-a-service-api/llms.txt) - [OpenAPI document](https://skmtc.dev/reflexpay/apis/idaas-identity-as-a-service-api/revisions/db1f954badfb?raw)
