---
title: "Fetch one subject's profile + consent"
method: GET
path: "/api/subjects/{subjectId}"
tags: ["Subjects"]
---

# Fetch one subject's profile + consent

`GET /api/subjects/{subjectId}`

## Request

- Base URL: `http://localhost:38200`
- URL: `http://localhost:38200/api/subjects/{subjectId}`
- Auth: one of:
  - HTTP bearer
  - API key in cookie `token`

## Path parameters

- `subjectId` string, required

## Response `200`

The subject.

- Subject
  - `subjectId` string
  - `tenantId` integer
  - `profile` object
  - `consent` object
  - `createdAt` string, date-time
  - `updatedAt` string, date-time

## Other responses

- `401`: Missing or invalid credentials.
- `404`: Resource not found (or not visible to the caller).

---

[API](https://skmtc.dev/contextq/apis/contextq-api.md) · [All operations](https://skmtc.dev/contextq/apis/contextq-api/llms.txt) · [OpenAPI document](https://skmtc.dev/contextq/apis/contextq-api/revisions/7afc44056a22?raw)
