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

# Retrieve credit pricing

> Returns the credit cost of each paid operation. Use it to set `max_credits`.



## OpenAPI

````yaml /api/openapi.yaml get /pricing
openapi: 3.1.0
info:
  title: LocalAds API
  version: 1.0.0
  description: Public API for LocalAds customer integrations.
servers:
  - url: https://makelocalads.com/api/v1
security:
  - apiKey: []
paths:
  /pricing:
    get:
      summary: Retrieve credit pricing
      description: >-
        Returns the credit cost of each paid operation. Use it to set
        `max_credits`.
      operationId: getPricing
      responses:
        '200':
          description: Pricing.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Pricing'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '429':
          $ref: '#/components/responses/RateLimited'
components:
  schemas:
    Pricing:
      type: object
      required:
        - unit
        - operations
      properties:
        unit:
          type: string
          enum:
            - credits
        operations:
          type: array
          items:
            type: object
            required:
              - operation
              - endpoint
              - credits
              - per
            properties:
              operation:
                type: string
                example: campaign_creative
              endpoint:
                type: string
                example: POST /v1/campaigns
              credits:
                type: integer
              per:
                type: string
                example: creative
    Problem:
      type: object
      required:
        - type
        - title
        - status
        - detail
        - code
        - request_id
      properties:
        type:
          type: string
          format: uri
        title:
          type: string
        status:
          type: integer
        detail:
          type: string
        code:
          type: string
        request_id:
          type: string
  responses:
    Unauthorized:
      description: Missing or invalid API key.
      content:
        application/problem+json:
          schema:
            $ref: '#/components/schemas/Problem'
    Forbidden:
      description: >-
        The API key lacks the required permission (`insufficient_permission`),
        the organization's plan does not include API access
        (`plan_upgrade_required`; Pro and Enterprise only), or the organization
        is suspended (`org_suspended`).
      content:
        application/problem+json:
          schema:
            $ref: '#/components/schemas/Problem'
    RateLimited:
      description: API key rate limit exceeded.
      headers:
        Retry-After:
          schema:
            type: integer
      content:
        application/problem+json:
          schema:
            $ref: '#/components/schemas/Problem'
  securitySchemes:
    apiKey:
      type: http
      scheme: bearer
      bearerFormat: lads_...

````