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

# Generate a service-of-notice attachment

> Takes a screenshot of the provided URL and returns it as a PNG image sized for the specified mail type. Use this to programmatically generate the optional image that appears on a service-of-notice mailing.




## OpenAPI

````yaml /api-reference/api.yaml post /service-of-notice/attachments/create
openapi: 3.0.3
info:
  title: api
  description: >-
    The API service is the secure public gateway to our platform, letting people
    access features without touching our private internal APIs. It authenticates
    clients with its own internal tokens and then routes their requests to the
    right internal services behind the scenes.
  version: 1.0.0
servers:
  - url: https://api.platform.arb.inc
security: []
tags:
  - name: cases
  - name: docket
  - name: evidence
  - name: filings
  - name: organization
  - name: participants
  - name: schemas
  - name: service-of-notice
paths:
  /service-of-notice/attachments/create:
    post:
      tags:
        - service-of-notice
      summary: Generate a service-of-notice attachment
      description: >
        Takes a screenshot of the provided URL and returns it as a PNG image
        sized for the specified mail type. Use this to programmatically generate
        the optional image that appears on a service-of-notice mailing.
      operationId: createServiceOfNoticeAttachment
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - mailType
                - url
              properties:
                mailType:
                  type: string
                  description: The mail type identifier. Must support attachments.
                  example: pressureSealed
                url:
                  type: string
                  description: >
                    URL of the webpage to screenshot. The page will be captured
                    and returned as a PNG image sized to fit the attachment area
                    of the specified mail type.
                  maxLength: 500
                  example: https://www.example.com/notice-image
      responses:
        '200':
          description: Screenshot captured successfully. Returns raw PNG image data.
          content:
            image/png:
              schema:
                type: string
                format: binary
        '400':
          description: >
            Validation error. Possible reasons: missing fields, mail type not
            found, or mail type does not support attachments.
          content:
            text/plain:
              schema:
                type: string
                example: mailType not found
        '410':
          description: Failed to load the provided URL.
          content:
            text/plain:
              schema:
                type: string
                example: Failed to load webpage URL
      security:
        - bearerAuth: []
components:
  securitySchemes:
    bearerAuth:
      type: http
      description: access token
      scheme: bearer
      bearerFormat: JWT

````