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

# List RSAs for an ad group

> List all RSAs for a specific ad group.



## OpenAPI

````yaml https://dev-api.cattix.com/openapi.json get /api/v1/campaigns/drafts/{draft_id}/ad-groups/{ad_group_id}/rsas
openapi: 3.1.0
info:
  title: CATTIX API
  description: CATTIX Backend API
  version: 0.107.0
servers:
  - url: http://localhost:8000
    description: Local
  - url: https://dev-api.cattix.com
    description: Development
  - url: https://staging-api.cattix.com
    description: Staging
  - url: https://api.cattix.com
    description: Production
security: []
paths:
  /api/v1/campaigns/drafts/{draft_id}/ad-groups/{ad_group_id}/rsas:
    get:
      tags:
        - Campaigns
      summary: List RSAs for an ad group
      description: List all RSAs for a specific ad group.
      operationId: >-
        list_ad_group_rsas_api_v1_campaigns_drafts__draft_id__ad_groups__ad_group_id__rsas_get
      parameters:
        - name: draft_id
          in: path
          required: true
          schema:
            type: integer
            title: Draft Id
        - name: ad_group_id
          in: path
          required: true
          schema:
            type: integer
            title: Ad Group Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ListRSAsResponseSchema'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - OAuth2PasswordBearer: []
components:
  schemas:
    ListRSAsResponseSchema:
      properties:
        rsas:
          items:
            $ref: '#/components/schemas/CampaignDraftRSASchema'
          type: array
          title: Rsas
      type: object
      required:
        - rsas
      title: ListRSAsResponseSchema
      description: Response for listing RSAs.
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    CampaignDraftRSASchema:
      properties:
        id:
          type: integer
          title: Id
        ad_group_id:
          type: integer
          title: Ad Group Id
        headlines:
          items:
            $ref: '#/components/schemas/GeneratedHeadlineSchema'
          type: array
          title: Headlines
        descriptions:
          items:
            $ref: '#/components/schemas/GeneratedDescriptionSchema'
          type: array
          title: Descriptions
        final_url:
          anyOf:
            - type: string
              maxLength: 2083
              minLength: 1
              format: uri
            - type: 'null'
          title: Final Url
        final_mobile_url:
          anyOf:
            - type: string
              maxLength: 2083
              minLength: 1
              format: uri
            - type: 'null'
          title: Final Mobile Url
        display_path_1:
          anyOf:
            - type: string
            - type: 'null'
          title: Display Path 1
        display_path_2:
          anyOf:
            - type: string
            - type: 'null'
          title: Display Path 2
        tracking_url_template:
          anyOf:
            - type: string
            - type: 'null'
          title: Tracking Url Template
        generation_status:
          $ref: '#/components/schemas/TaskGenerationStatus'
          default: pending
        generation_task_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Generation Task Id
        generation_error:
          anyOf:
            - type: string
            - type: 'null'
          title: Generation Error
      type: object
      required:
        - id
        - ad_group_id
      title: CampaignDraftRSASchema
      description: RSA within a campaign draft ad group.
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
    GeneratedHeadlineSchema:
      properties:
        text:
          type: string
          maxLength: 30
          title: Text
          description: Headline text (max 30 chars)
        pinned_field:
          anyOf:
            - $ref: '#/components/schemas/PinnedField'
            - type: 'null'
          description: Optional pinning position
        reason:
          anyOf:
            - type: string
            - type: 'null'
          title: Reason
          description: Gemini's reasoning for this headline
      type: object
      required:
        - text
      title: GeneratedHeadlineSchema
      description: A generated headline for RSA.
    GeneratedDescriptionSchema:
      properties:
        text:
          type: string
          maxLength: 90
          title: Text
          description: Description text (max 90 chars)
        pinned_field:
          anyOf:
            - $ref: '#/components/schemas/PinnedField'
            - type: 'null'
          description: Optional pinning position
        reason:
          anyOf:
            - type: string
            - type: 'null'
          title: Reason
          description: Gemini's reasoning for this description
      type: object
      required:
        - text
      title: GeneratedDescriptionSchema
      description: A generated description for RSA.
    TaskGenerationStatus:
      type: string
      enum:
        - not_started
        - pending
        - in_progress
        - completed
        - failed
      title: TaskGenerationStatus
      description: Status of background task generation (ad groups, RSAs).
    PinnedField:
      type: string
      enum:
        - HEADLINE_1
        - HEADLINE_2
        - HEADLINE_3
        - DESCRIPTION_1
        - DESCRIPTION_2
      title: PinnedField
      description: Pinned position fields for RSA assets.
  securitySchemes:
    OAuth2PasswordBearer:
      type: oauth2
      flows:
        password:
          scopes: {}
          tokenUrl: api/v1/users/authorization/token

````