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

# Create Audience Property

Audience properties define server-owned contact data that can be used for
audience targeting and personalization.

Properties are authoritative by default. Set `sdk_writable: true` only when the
mobile SDK is allowed to manage that value as a client-sourced tag. Keep account,
billing, lifecycle, compliance, and verified profile data server-owned.


## OpenAPI

````yaml api-reference/openapi.json POST /audiences-properties
openapi: 3.0.1
info:
  title: Sendrealm API
  description: >-
    API for email, push, audience resources, domains, campaign drafts,
    templates, events, topics, and automations
  license:
    name: MIT
  version: 1.0.0
servers:
  - url: https://api.sendrealm.com
security:
  - bearerAuth: []
paths:
  /audiences-properties:
    post:
      summary: Create an audience property
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateAudienceProperty'
      responses:
        '201':
          description: Audience property created
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AudiencePropertyResponse'
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '409':
          $ref: '#/components/responses/Conflict'
components:
  schemas:
    CreateAudienceProperty:
      type: object
      required:
        - type
      properties:
        key:
          type: string
          maxLength: 100
          description: Property key. Either key or name is accepted.
        name:
          type: string
          maxLength: 100
          description: Alias for key.
        type:
          type: string
          enum:
            - string
            - number
        sdk_writable:
          type: boolean
          description: Allow SDK tag writes for this property. Defaults to false.
    AudiencePropertyResponse:
      allOf:
        - $ref: '#/components/schemas/Envelope'
        - type: object
          properties:
            data:
              $ref: '#/components/schemas/AudienceProperty'
    Envelope:
      type: object
      required:
        - status
      properties:
        status:
          type: integer
          description: HTTP response status code
    AudienceProperty:
      type: object
      properties:
        id:
          type: string
          format: uuid
        key:
          type: string
        type:
          type: string
          enum:
            - string
            - number
        created_at:
          type: string
          format: date-time
        updated_at:
          type: string
          format: date-time
        source:
          type: string
          enum:
            - api
            - sdk
            - import
            - system
            - automation
        sdk_writable:
          type: boolean
    Error:
      type: object
      required:
        - status
        - error
      properties:
        status:
          type: integer
        error:
          type: object
          required:
            - code
            - message
          properties:
            code:
              type: string
            message:
              type: string
            details:
              $ref: '#/components/schemas/JsonValue'
            issues:
              type: array
              items:
                $ref: '#/components/schemas/ValidationIssue'
    JsonValue:
      oneOf:
        - type: string
          nullable: true
        - type: number
        - type: boolean
        - type: object
          additionalProperties:
            $ref: '#/components/schemas/JsonValue'
        - type: array
          items:
            $ref: '#/components/schemas/JsonValue'
    ValidationIssue:
      type: object
      required:
        - code
        - path
        - message
      properties:
        code:
          type: string
        path:
          type: string
          nullable: true
        message:
          type: string
  responses:
    BadRequest:
      description: Bad request
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    Unauthorized:
      description: Invalid or missing API key
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    Conflict:
      description: Resource conflict
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer

````