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

# Resolved Profile

> Which regime applies here, and WHY it was chosen.

"Which laws did this deployment believe applied to this decision, at the
moment it was made?" — answerable, with the resolution level attached.

**Who may call it:** any role. A workspace API key is refused here: this is an act that belongs to a named person.



## OpenAPI

````yaml /api/openapi.json get /v1/market-profile
openapi: 3.1.0
info:
  title: RotaGrant API
  version: 0.1.0
  description: >-
    The HTTP API of a RotaGrant deployment, made from the product's own route
    definitions at the commit named in `x-rotascale-source`. Nothing here is
    written by hand.


    There is no shared endpoint. RotaGrant runs in your environment, and your
    deployment serves its own copy of this description at `/api/docs`. That copy
    is the authority on what your version has and which features are switched
    on; this one is the reference for one commit of the main line. The version
    is 0.1.0: routes and shapes can still change.


    Every route says who may call it. Most need a bearer token from the identity
    provider your deployment uses, held by a person with the role named. The
    routes an SDK calls also accept a workspace API key. A few are open, and say
    why.
servers:
  - url: https://{deployment}
    description: Your own deployment. There is no shared endpoint.
    variables:
      deployment:
        default: rotagrant.internal.example
        description: The host your deployment answers on.
security: []
paths:
  /v1/market-profile:
    get:
      tags:
        - Market
      summary: Resolved Profile
      description: >-
        Which regime applies here, and WHY it was chosen.


        "Which laws did this deployment believe applied to this decision, at the

        moment it was made?" — answerable, with the resolution level attached.


        **Who may call it:** any role. A workspace API key is refused here: this
        is an act that belongs to a named person.
      operationId: resolved_profile_v1_market_profile_get
      parameters:
        - name: agent_id
          in: query
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: Agent Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MarketProfileOut'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - bearerToken: []
components:
  schemas:
    MarketProfileOut:
      properties:
        code:
          type: string
          title: Code
        name:
          type: string
          title: Name
        jurisdictions:
          items:
            type: string
          type: array
          title: Jurisdictions
        clause_maps:
          items:
            type: string
          type: array
          title: Clause Maps
        locale:
          type: string
          title: Locale
        currency:
          type: string
          title: Currency
        jurisdiction_packs:
          items:
            type: string
          type: array
          title: Jurisdiction Packs
        retention_days:
          type: integer
          title: Retention Days
        fairness_attributes:
          items:
            $ref: '#/components/schemas/FairnessAttributeOut'
          type: array
          title: Fairness Attributes
        incident_regimes:
          items:
            $ref: '#/components/schemas/IncidentRegimeOut'
          type: array
          title: Incident Regimes
        disclosure_regimes:
          items:
            type: string
          type: array
          title: Disclosure Regimes
        forbidden_capabilities:
          additionalProperties:
            type: string
          type: object
          title: Forbidden Capabilities
        resolved_from:
          anyOf:
            - type: string
            - type: 'null'
          title: Resolved From
      type: object
      required:
        - code
        - name
        - jurisdictions
        - clause_maps
        - locale
        - currency
        - jurisdiction_packs
        - retention_days
        - fairness_attributes
        - incident_regimes
        - disclosure_regimes
        - forbidden_capabilities
      title: MarketProfileOut
      description: The regime in force, and what it decides.
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    FairnessAttributeOut:
      properties:
        name:
          type: string
          title: Name
        source:
          type: string
          title: Source
        categories:
          items:
            type: string
          type: array
          title: Categories
        legal_basis:
          anyOf:
            - type: string
            - type: 'null'
          title: Legal Basis
        enforced_conditions:
          items:
            type: string
          type: array
          title: Enforced Conditions
      type: object
      required:
        - name
        - source
        - categories
        - enforced_conditions
      title: FairnessAttributeOut
    IncidentRegimeOut:
      properties:
        code:
          type: string
          title: Code
        authority:
          type: string
          title: Authority
        clocks_hours:
          additionalProperties:
            type: integer
          type: object
          title: Clocks Hours
        note:
          anyOf:
            - type: string
            - type: 'null'
          title: Note
      type: object
      required:
        - code
        - authority
        - clocks_hours
      title: IncidentRegimeOut
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    bearerToken:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: >-
        A token from the identity provider your deployment federates with. It
        identifies a person; their roles in the workspace decide what they may
        do.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.