> ## 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 a service

> Returns one marketplace service when allowed by the current grant policy.



## OpenAPI

````yaml /openapi.json get /v1/services/{id}
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/services/{id}:
    get:
      tags:
        - services
      summary: Get a service
      description: >-
        Returns one marketplace service when allowed by the current grant
        policy.
      operationId: getService
      parameters:
        - in: path
          name: id
          schema:
            type: string
            minLength: 1
            maxLength: 255
            pattern: ^[A-Za-z0-9][A-Za-z0-9._-]*$
            description: Stable public marketplace service identifier.
          required: true
          description: Stable public marketplace service identifier.
        - $ref: '#/components/parameters/PerfloRequestId'
      responses:
        '200':
          description: The matching service.
          headers:
            X-Request-Id:
              $ref: '#/components/headers/PerfloRequestId'
            DPoP-Nonce:
              $ref: '#/components/headers/PerfloDpopNonce'
          content:
            application/json:
              schema:
                type: object
                properties:
                  available:
                    type: boolean
                    description: Whether the service is currently routable.
                  capabilities:
                    minItems: 1
                    maxItems: 100
                    type: array
                    items:
                      type: string
                      minLength: 1
                      maxLength: 255
                      pattern: ^[A-Za-z0-9][A-Za-z0-9._:-]*$
                      description: Stable public service capability.
                    description: Capabilities exposed by this service.
                  description:
                    type: string
                    minLength: 1
                    maxLength: 2048
                    description: Service description.
                  id:
                    type: string
                    minLength: 1
                    maxLength: 255
                    pattern: ^[A-Za-z0-9][A-Za-z0-9._-]*$
                    description: Stable public marketplace service identifier.
                  name:
                    type: string
                    minLength: 1
                    maxLength: 256
                    description: Service display name.
                  price:
                    anyOf:
                      - type: object
                        properties:
                          asset:
                            type: string
                            minLength: 1
                            maxLength: 64
                            pattern: ^[A-Z][A-Z0-9._-]*$
                            description: Asset used to price the service.
                          minor_units:
                            type: string
                            pattern: ^(?:0|[1-9]\d*)$
                            description: >-
                              Nonnegative service price in provider-defined
                              minor units.
                        required:
                          - asset
                          - minor_units
                        additionalProperties: false
                        description: Normalized service price.
                      - type: 'null'
                    description: Current service price when available.
                required:
                  - available
                  - capabilities
                  - description
                  - id
                  - name
                  - price
                additionalProperties: false
                description: A privacy-safe service marketplace entry.
        '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'
        '404':
          description: No matching allowed service was found.
          headers:
            X-Request-Id:
              $ref: '#/components/headers/PerfloRequestId'
            DPoP-Nonce:
              $ref: '#/components/headers/PerfloDpopNonce'
          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: Service marketplace data 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:
            - services: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

````