> ## Documentation Index
> Fetch the complete documentation index at: https://docs.niadra.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Ask for a shadow report

> Runs the space's policy over the outbound messages of a period, in the background; the report is listed when it is done.



## OpenAPI

````yaml openapi/en/cell.json POST /v1/coordination/shadow
openapi: 3.1.0
info:
  title: Niadra data API
  version: '1'
  description: >-
    Writing, context, history, objects, identity, privacy and governance of one
    space. Every space has a stable address, with the space and the region in
    its name.
servers:
  - url: https://{space}.{region}.api.niadra.com
    variables:
      space:
        default: acme-prod
        description: The space, which comes in the source key.
      region:
        default: us-east-2
        description: The region of the space, which also comes in the key.
security: []
paths:
  /v1/coordination/shadow:
    post:
      tags:
        - coordination
      summary: Ask for a shadow report
      description: >-
        Asks for a shadow report over a period: the space's policy applied to
        the outbound messages already ingested, with nothing enforced. The run
        reads the period in the background, and the report is listed when it is
        done.


        **Authentication.** Console person token with the `analysis`, `security`
        role (or admin), or a source key with the `admin` scope. It answers only
        in a space with the `coordination` feature on (the `features` document);
        in a space without it, 404.
      operationId: shadow_v1_coordination_shadow_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ShadowRequest'
        required: true
      responses:
        '202':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ShadowRun'
          description: >-
            The run was accepted; the report appears in the list when it
            finishes.
        '422':
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
          description: The request does not match the contract.
      security:
        - sourceKey: []
        - personToken: []
components:
  schemas:
    ShadowRequest:
      additionalProperties: false
      properties:
        days:
          default: 30
          maximum: 90
          minimum: 1
          title: Days
          type: integer
      title: ShadowRequest
      type: object
    ShadowRun:
      additionalProperties: false
      properties:
        report_id:
          maxLength: 512
          minLength: 1
          title: Report Id
          type: string
        status:
          enum:
            - pending
            - done
          title: Status
          type: string
      required:
        - report_id
        - status
      title: ShadowRun
      type: object
    Problem:
      additionalProperties: false
      description: RFC 9457 problem details; `code` comes from the versioned error catalog.
      properties:
        code:
          title: Code
          type: string
        detail:
          anyOf:
            - type: string
            - type: 'null'
          default: null
          title: Detail
        request_id:
          anyOf:
            - type: string
            - type: 'null'
          default: null
          title: Request Id
        status:
          title: Status
          type: integer
        title:
          title: Title
          type: string
        type:
          default: about:blank
          title: Type
          type: string
      required:
        - title
        - status
        - code
      title: Problem
      type: object
  securitySchemes:
    sourceKey:
      type: http
      scheme: bearer
      description: nia_sk_...
    personToken:
      type: http
      scheme: bearer
      bearerFormat: JWT

````