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

# Get current authorization

> Returns the current token scopes and its exact grant policy without accepting a grant identifier.



## OpenAPI

````yaml /openapi.json get /v1/authorizations/current
openapi: 3.1.0
info:
  description: The public API for Perflo financial agents.
  license:
    identifier: LicenseRef-Perflo-Proprietary
    name: Proprietary
  title: Perflo Financial Agents API
  version: 1.0.0
servers:
  - url: https://api.perflo.ai
security: []
tags:
  - description: Existing fiat accounts and provider-stated withdrawal limits.
    name: accounts
  - description: Sanitized customer-wide cash activity without provider identifiers.
    name: activity
  - description: The current grant, delegated policy, and local confirmation controls.
    name: authorization
  - description: Safe beneficiary resources, payout schemas, and virtual-account economics.
    name: beneficiaries
  - description: Non-sensitive card lifecycle state and card activity.
    name: cards
  - description: Safe display preferences for the current pairwise subject.
    name: identity
  - description: >-
      Normalized verification state without identity evidence or provider
      details.
    name: kyc
  - description: >-
      Durable financial operation status owned by the current subject and
      client.
    name: operations
  - description: API-owned outbound notifications for durable operation transitions.
    name: operation-webhooks
  - description: Indicative service purchase quotes and released purchase state.
    name: purchases
  - description: Public asset and fiat-price reference data.
    name: reference-data
  - description: Services and capabilities available under the effective grant policy.
    name: services
  - description: Spending-account state and durable withdrawal operations.
    name: spending
  - description: Gateway health and public API metadata endpoints.
    name: system
  - description: Indicative transfer economics that cannot be executed.
    name: transfer-quotes
paths:
  /v1/authorizations/current:
    get:
      tags:
        - authorization
      summary: Get current authorization
      description: >-
        Returns the current token scopes and its exact grant policy without
        accepting a grant identifier.
      operationId: getCurrentAuthorization
      parameters:
        - $ref: '#/components/parameters/PerfloRequestId'
      responses:
        '200':
          description: The current effective authorization.
          headers:
            X-Request-Id:
              $ref: '#/components/headers/PerfloRequestId'
            DPoP-Nonce:
              $ref: '#/components/headers/PerfloDpopNonce'
          content:
            application/json:
              schema:
                type: object
                properties:
                  granted_scopes:
                    minItems: 1
                    maxItems: 32
                    type: array
                    items:
                      type: string
                      enum:
                        - accounts:read
                        - activity:read
                        - authorization:read
                        - beneficiaries:read
                        - beneficiaries:write
                        - cards:manage
                        - cards:read
                        - identity:read
                        - kyc:read
                        - offline_access
                        - openid
                        - operations:read
                        - purchases:read
                        - services:read
                        - spending:read
                        - spending:withdraw
                        - transfers:quote
                      description: >-
                        A released OAuth scope supported by the authorization
                        server.
                    description: >-
                      Scopes granted to the current access token and OAuth
                      grant.
                  spend_policy:
                    anyOf:
                      - type: object
                        properties:
                          allowed_capabilities:
                            maxItems: 256
                            type: array
                            items:
                              type: string
                              minLength: 1
                              maxLength: 255
                            description: Capabilities allowed by the effective policy.
                          allowed_service_ids:
                            maxItems: 256
                            type: array
                            items:
                              type: string
                              minLength: 1
                              maxLength: 255
                            description: >-
                              Service identifiers allowed by the effective
                              policy.
                          expires_at:
                            type: string
                            format: date-time
                            pattern: >-
                              ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z|([+-](?:[01]\d|2[0-3]):[0-5]\d)))$
                            description: Policy expiry time.
                          headroom:
                            type: object
                            properties:
                              count:
                                type: integer
                                minimum: 0
                                maximum: 9007199254740991
                                description: A nonnegative count.
                              per_purchase:
                                type: string
                                pattern: ^(?:0|[1-9]\d*)(?:\.\d{1,18})?$
                                description: A nonnegative decimal amount in USD.
                              rolling_24_hour:
                                type: string
                                pattern: ^(?:0|[1-9]\d*)(?:\.\d{1,18})?$
                                description: A nonnegative decimal amount in USD.
                              rolling_30_day:
                                type: string
                                pattern: ^(?:0|[1-9]\d*)(?:\.\d{1,18})?$
                                description: A nonnegative decimal amount in USD.
                              rolling_7_day:
                                type: string
                                pattern: ^(?:0|[1-9]\d*)(?:\.\d{1,18})?$
                                description: A nonnegative decimal amount in USD.
                              total:
                                type: string
                                pattern: ^(?:0|[1-9]\d*)(?:\.\d{1,18})?$
                                description: A nonnegative decimal amount in USD.
                            required:
                              - count
                              - per_purchase
                              - rolling_24_hour
                              - rolling_30_day
                              - rolling_7_day
                              - total
                            additionalProperties: false
                            description: >-
                              Remaining capacity under each effective policy
                              limit.
                          policy_version:
                            type: integer
                            exclusiveMinimum: 0
                            maximum: 9007199254740991
                            description: Current policy revision.
                          state:
                            type: string
                            enum:
                              - active
                              - revoked
                              - expired
                              - exhausted
                            description: Current policy state.
                          usage:
                            type: object
                            properties:
                              count:
                                type: integer
                                minimum: 0
                                maximum: 9007199254740991
                                description: A nonnegative count.
                              rolling_24_hour:
                                type: string
                                pattern: ^(?:0|[1-9]\d*)(?:\.\d{1,18})?$
                                description: A nonnegative decimal amount in USD.
                              rolling_30_day:
                                type: string
                                pattern: ^(?:0|[1-9]\d*)(?:\.\d{1,18})?$
                                description: A nonnegative decimal amount in USD.
                              rolling_7_day:
                                type: string
                                pattern: ^(?:0|[1-9]\d*)(?:\.\d{1,18})?$
                                description: A nonnegative decimal amount in USD.
                              total:
                                type: string
                                pattern: ^(?:0|[1-9]\d*)(?:\.\d{1,18})?$
                                description: A nonnegative decimal amount in USD.
                            required:
                              - count
                              - rolling_24_hour
                              - rolling_30_day
                              - rolling_7_day
                              - total
                            additionalProperties: false
                            description: >-
                              Settled and still-reserved usage under the current
                              policy.
                        required:
                          - allowed_capabilities
                          - allowed_service_ids
                          - expires_at
                          - headroom
                          - policy_version
                          - state
                          - usage
                        additionalProperties: false
                        description: >-
                          Current delegated purchase policy, usage, and
                          remaining headroom.
                      - type: 'null'
                    description: >-
                      Current delegated purchase policy, or null when the grant
                      has no policy.
                required:
                  - granted_scopes
                  - spend_policy
                additionalProperties: false
                description: >-
                  Effective authorization for the current access token and
                  grant.
        '401':
          description: The access token or DPoP proof is invalid.
          headers:
            X-Request-Id:
              $ref: '#/components/headers/PerfloRequestId'
            DPoP-Nonce:
              $ref: '#/components/headers/PerfloDpopNonce'
            WWW-Authenticate:
              $ref: '#/components/headers/PerfloAuthenticate'
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ProblemDetails'
        '403':
          description: The current grant does not authorize this read.
          headers:
            X-Request-Id:
              $ref: '#/components/headers/PerfloRequestId'
            DPoP-Nonce:
              $ref: '#/components/headers/PerfloDpopNonce'
            WWW-Authenticate:
              $ref: '#/components/headers/PerfloAuthenticate'
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ProblemDetails'
        '409':
          description: The connected provider is unavailable.
          headers:
            X-Request-Id:
              $ref: '#/components/headers/PerfloRequestId'
            DPoP-Nonce:
              $ref: '#/components/headers/PerfloDpopNonce'
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ProblemDetails'
        '422':
          description: The request shape is invalid.
          headers:
            X-Request-Id:
              $ref: '#/components/headers/PerfloRequestId'
            DPoP-Nonce:
              $ref: '#/components/headers/PerfloDpopNonce'
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ProblemDetails'
        '429':
          description: The shared request limit was exceeded.
          headers:
            X-Request-Id:
              $ref: '#/components/headers/PerfloRequestId'
            Retry-After:
              $ref: '#/components/headers/PerfloRetryAfter'
            DPoP-Nonce:
              $ref: '#/components/headers/PerfloDpopNonce'
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ProblemDetails'
        '500':
          description: The response contract failed.
          headers:
            X-Request-Id:
              $ref: '#/components/headers/PerfloRequestId'
            DPoP-Nonce:
              $ref: '#/components/headers/PerfloDpopNonce'
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ProblemDetails'
        '503':
          description: Authorization state is unavailable.
          headers:
            X-Request-Id:
              $ref: '#/components/headers/PerfloRequestId'
            DPoP-Nonce:
              $ref: '#/components/headers/PerfloDpopNonce'
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ProblemDetails'
      security:
        - PerfloDPoPProof: []
          PerfloOAuth:
            - authorization:read
components:
  parameters:
    PerfloRequestId:
      description: >-
        Optional caller request identifier. Unsafe values are replaced with a
        generated UUID.
      in: header
      name: X-Request-Id
      required: false
      schema:
        pattern: ^[A-Za-z0-9._~-]{8,128}$
        type: string
  headers:
    PerfloRequestId:
      description: Request identifier echoed on every API response.
      schema:
        pattern: ^[A-Za-z0-9._~-]{8,128}$
        type: string
    PerfloDpopNonce:
      description: >-
        Current protected-resource nonce for the next DPoP proof. Replace any
        previously stored resource nonce.
      schema:
        pattern: ^[A-Za-z0-9_-]{43}$
        type: string
    PerfloAuthenticate:
      description: >-
        OAuth DPoP authentication challenge. Inspect the challenge before
        deciding whether to request a new token or proof.
      schema:
        type: string
    PerfloRetryAfter:
      description: Whole seconds to wait before sending another request to this endpoint.
      schema:
        minimum: 1
        type: integer
  schemas:
    ProblemDetails:
      type: object
      properties:
        type:
          type: string
          format: uri
          description: Stable URL identifying the problem class.
        title:
          type: string
          minLength: 1
          description: Short human-readable problem title.
        status:
          type: integer
          minimum: 400
          maximum: 599
          description: HTTP status code for this occurrence.
        detail:
          type: string
          minLength: 1
          description: Human-readable occurrence detail.
        instance:
          type: string
          pattern: ^\/.*
          description: Request path identifying this problem occurrence.
        code:
          type: string
          pattern: ^[a-z][a-z0-9_]*$
          description: Stable machine-readable Perflo error code.
        fields:
          anyOf:
            - type: array
              items:
                $ref: '#/components/schemas/ProblemField'
            - type: 'null'
          description: >-
            Field-level failures, or null when the problem is not
            field-specific.
        request_id:
          type: string
          pattern: ^[A-Za-z0-9._~-]{8,128}$
          description: Request identifier used to correlate API responses with server logs.
        retryable:
          type: boolean
          description: Whether repeating the identical request can safely succeed.
        submission_uncertain:
          type: boolean
          description: >-
            Whether an upstream write may have landed and must not be
            resubmitted.
      required:
        - type
        - title
        - status
        - detail
        - instance
        - code
        - fields
        - request_id
        - retryable
        - submission_uncertain
      additionalProperties: false
      description: >-
        RFC 9457 problem details with stable Perflo correlation and retry
        semantics.
    ProblemField:
      type: object
      properties:
        message:
          type: string
          minLength: 1
          description: Human-readable validation failure.
        path:
          type: string
          minLength: 1
          description: Dot-delimited path to the invalid field.
      required:
        - message
        - path
      additionalProperties: false
      description: One field-level request validation failure.
  securitySchemes:
    PerfloDPoPProof:
      description: >-
        Per-request RFC 9449 DPoP proof signed with ES256. Protected requests
        use `Authorization: DPoP your_access_token_here`. Create a new proof for
        the exact method and normalized target URI, and include the server nonce
        when challenged.
      in: header
      name: DPoP
      type: apiKey
    PerfloOAuth:
      description: >-
        OAuth 2.0 with RFC 9700 security practices. Discover exact environment
        endpoints from `/.well-known/openid-configuration` and
        `/.well-known/oauth-authorization-server`, and discover the resource
        from `/.well-known/oauth-protected-resource`. Authorization-code clients
        use PKCE `S256`, the exact environment resource, `nonce` with `openid`,
        and DPoP binding. Confidential clients also require PAR and
        `private_key_jwt`. Access and refresh tokens are sender-constrained with
        DPoP. `purchases:execute` is unavailable and omitted from this scope
        registry.
      flows:
        authorizationCode:
          authorizationUrl: https://api.perflo.ai/oauth/authorize
          scopes:
            accounts:read: >-
              Read the resource owner’s financial accounts and withdrawal
              limits.
            activity:read: Read the resource owner’s sanitized financial activity.
            authorization:read: Read the current OAuth grant and effective delegated policy.
            beneficiaries:read: Read beneficiaries and beneficiary reference data.
            beneficiaries:write: Create beneficiaries through durable operations.
            cards:manage: Create and manage non-sensitive card lifecycle state.
            cards:read: Read non-sensitive card state and activity.
            identity:read: Read the resource owner’s safe display preferences.
            kyc:read: Read the resource owner’s normalized verification status.
            operations:read: Read operations owned by the same subject and client.
            purchases:read: Read quote-bound service purchase state.
            services:read: Read services available under the effective grant policy.
            spending:read: Read the resource owner’s spending account.
            spending:withdraw: Create spending-account withdrawals through durable operations.
            transfers:quote: Create non-executable transfer estimates.
          tokenUrl: https://api.perflo.ai/oauth/token
        clientCredentials:
          scopes:
            accounts:read: >-
              Read the resource owner’s financial accounts and withdrawal
              limits.
            activity:read: Read the resource owner’s sanitized financial activity.
            authorization:read: Read the current OAuth grant and effective delegated policy.
            beneficiaries:read: Read beneficiaries and beneficiary reference data.
            beneficiaries:write: Create beneficiaries through durable operations.
            cards:manage: Create and manage non-sensitive card lifecycle state.
            cards:read: Read non-sensitive card state and activity.
            identity:read: Read the resource owner’s safe display preferences.
            kyc:read: Read the resource owner’s normalized verification status.
            operations:read: Read operations owned by the same subject and client.
            purchases:read: Read quote-bound service purchase state.
            services:read: Read services available under the effective grant policy.
            spending:read: Read the resource owner’s spending account.
            spending:withdraw: Create spending-account withdrawals through durable operations.
            transfers:quote: Create non-executable transfer estimates.
          tokenUrl: https://api.perflo.ai/oauth/token
      type: oauth2
      x-token-type: DPoP

````