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

# Add a payer address

> Add a shipping address to a payer profile.

> [accordion] Details
>
> Its first address is its default, which a paying run ships to when it names no address; default: true moves the default to this one.
>
> * **Callers:** an API key, an MCP OAuth token or a Dashboard session.
> * **Permission:** `runs:create`.
> * **Effect:** Creates or changes something.
> * **Errors:** [`payer_profile_not_found`](https://docs.pomerado.ai/errors#payer_profile_not_found), and the [errors any request can get](https://docs.pomerado.ai/errors.md).


## OpenAPI

````yaml /api-reference/openapi.json post /v1/payer-profiles/{id}/addresses
openapi: 3.1.0
info:
  title: Pomerado API
  version: '1'
  description: >-
    Run and build website tools, follow their jobs, and manage logins, API keys
    and webhooks. Authenticate with a Pomerado API key (pom_…), an MCP OAuth
    token or a Dashboard session as a Bearer token.
servers:
  - url: https://api.pomerado.ai
security: []
tags:
  - name: account
    x-group: Account
  - name: api_keys
    x-group: API keys
  - name: connected_apps
    x-group: Connected apps
  - name: usage
    x-group: Usage
  - name: quota
    x-group: Quota
  - name: spend_controls
    x-group: Spend controls
  - name: usage_alerts
    x-group: Usage alerts
  - name: usage_summary
    x-group: Usage summary
  - name: billing
    x-group: Billing
  - name: integrations
    x-group: Integrations
  - name: connect
    x-group: Connect
  - name: code
    x-group: Code
  - name: logins
    x-group: Saved logins
  - name: two_factor
    x-group: 2FA
  - name: login_access
    x-group: Login access
  - name: tools
    x-group: Tools
  - name: shapes
    x-group: Shapes
  - name: webhooks
    x-group: Webhooks
  - name: payer_profiles
    x-group: Payer profiles
  - name: payer_addresses
    x-group: Payer addresses
  - name: payment_methods
    x-group: Payment methods
  - name: runs
    x-group: Runs
  - name: builds
    x-group: Builds
  - name: jobs
    x-group: Jobs
  - name: suggestions
    x-group: Suggestions
  - name: audit
    x-group: Audit
  - name: files
    x-group: Files
  - name: team
    x-group: Team
  - name: sso
    x-group: Single sign-on
  - name: issue_reports
    x-group: Problem reports
paths:
  /v1/payer-profiles/{id}/addresses:
    post:
      tags:
        - payer_addresses
      summary: Add a payer address
      description: Add a shipping address to a payer profile.
      operationId: payer_addresses.create
      parameters:
        - name: id
          in: path
          required: true
          description: payer_ and 32 lowercase hex digits
          schema:
            type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - line1
                - city
                - postal_code
                - country
              properties:
                name:
                  type: string
                  description: a string at most 200 character(s) long
                  minLength: 1
                  maxLength: 200
                line1:
                  type: string
                  description: a string at most 200 character(s) long
                  minLength: 1
                  maxLength: 200
                line2:
                  type: string
                  description: a string at most 200 character(s) long
                  minLength: 1
                  maxLength: 200
                city:
                  type: string
                  description: a string at most 100 character(s) long
                  minLength: 1
                  maxLength: 100
                region:
                  type: string
                  description: a string at most 100 character(s) long
                  minLength: 1
                  maxLength: 100
                postal_code:
                  type: string
                  description: a string at most 20 character(s) long
                  minLength: 1
                  maxLength: 20
                country:
                  type: string
                  description: the ISO 3166-1 alpha-2 country code, such as US
                  pattern: ^[A-Z]{2}$
                phone:
                  type: string
                  description: a phone number, at most 40 characters
                  minLength: 1
                  maxLength: 40
                default:
                  type: boolean
                  enum:
                    - true
                  description: >-
                    Make it the default address. A profile's first address is
                    its default
              additionalProperties: false
      responses:
        '201':
          description: The new address
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PayerAddress'
        '400':
          description: invalid_request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: unauthorized, reauthentication_required
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: forbidden
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: payer_profile_not_found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '413':
          description: request_too_large
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '500':
          description: internal_error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '503':
          description: temporarily_unavailable
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      security:
        - bearer: []
components:
  schemas:
    PayerAddress:
      type: object
      required:
        - id
        - default
        - name
        - line1
        - line2
        - city
        - region
        - postal_code
        - country
        - phone
        - created_at
        - updated_at
      properties:
        id:
          $ref: '#/components/schemas/payer_address_id'
        default:
          type: boolean
          description: The address a paying run ships to when it names none
        name:
          anyOf:
            - type: string
            - type: 'null'
        line1:
          type: string
        line2:
          anyOf:
            - type: string
            - type: 'null'
        city:
          type: string
        region:
          anyOf:
            - type: string
            - type: 'null'
        postal_code:
          type: string
        country:
          type: string
        phone:
          anyOf:
            - type: string
            - type: 'null'
        created_at:
          $ref: '#/components/schemas/Date'
        updated_at:
          $ref: '#/components/schemas/Date'
      additionalProperties: false
    Error:
      type: object
      required:
        - error
      properties:
        error:
          type: object
          required:
            - code
            - message
            - retryable
            - docs_url
          properties:
            code:
              type: string
            message:
              type: string
            retryable:
              type: boolean
            docs_url:
              type: string
            details:
              type: object
              required: []
              properties: {}
              additionalProperties:
                $id: /schemas/unknown
          additionalProperties: false
      additionalProperties: false
    payer_address_id:
      type: string
      description: addr_ and 32 lowercase hex digits
      pattern: ^addr_[0-9a-f]{32}$
    Date:
      type: string
      description: a string to be decoded into a Date
  securitySchemes:
    bearer:
      type: http
      scheme: bearer

````

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