---
title: "GET /v1/credential-requests"
method: GET
path: "/v1/credential-requests"
tags: ["Credential requests"]
---

# GET /v1/credential-requests

`GET /v1/credential-requests`

## Request

- Base URL: `https://api.shardflux.dev`
- URL: `https://api.shardflux.dev/v1/credential-requests`
- Auth: HTTP bearer

## Query parameters

- `project_id` string, uuid
- `workspace_id` string, uuid
- `state` union
  - 'pending'
  - 'fulfilled'
  - 'denied'
  - 'expired'
  - 'filled'
  - 'failed'
- `limit` integer
- `cursor` string

## Response `200`

Default Response

- object
  - `data` object[], required
    - `id` string, uuid, required: UUIDv7, lowercase canonical form.
    - `workspace_id` string, uuid, required: UUIDv7, lowercase canonical form.
    - `project_id` string, uuid, required: UUIDv7, lowercase canonical form.
    - `site` string, required
    - `fields` union[], required
      - union
        - 'username'
        - 'password'
        - 'totp'
    - `public_key` string, required
    - `state` union, required
      - 'pending'
      - 'fulfilled'
      - 'denied'
      - 'expired'
      - 'filled'
      - 'failed'
    - `created_at` string, date-time, required: RFC 3339 UTC timestamp with Z.
    - `expires_at` string, date-time, required: RFC 3339 UTC timestamp with Z.
    - `finished_at` string, date-time, nullable, required: RFC 3339 UTC timestamp with Z.
  - `next_cursor` string, nullable, required

## Other responses

- `4XX`: Default Response
- `5XX`: Default Response

---

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