DEV Community Billboards API

The billboards API from DEV Community — 3 operation(s) for billboards.

GitHub OpenAPI

Operations 5

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

GET /api/billboards List all billboards · Billboards #
Ask an LLM
“Which promotional billboards are configured on the site?”
“Can I see every banner or ad that is set up?”
Tell an agent
List all billboards.
Show every configured banner and call-to-action.
POST /api/billboards Create a billboard · Create a billboard #
Ask an LLM
“How do I add a new promotional banner to the site?”
“Can I target a billboard at logged-in users or a specific country?”
Tell an agent
Create a new billboard.
Add a promotional banner with its own placement area and target audience.
GET /api/billboards/{id} Get a billboard · A billboard (by id) #
Ask an LLM
“What are the full settings of one billboard?”
“Can I look up a single banner by its ID?”
Tell an agent
Show billboard {id}.
Get the full configuration of banner {id}.
PUT /api/billboards/{id} Update a billboard · Update a billboard by ID #
Ask an LLM
“Can I change the text or placement of an existing billboard?”
“Does editing a live banner take effect right away?”
Tell an agent
Update billboard {id}.
Change the placement area or target segments of banner {id}.
PUT /api/billboards/{id}/unpublish Unpublish a billboard · Unpublish a billboard #
Ask an LLM
“How do I stop a banner from showing without deleting it?”
“Is there a way to pause a billboard and keep its settings?”
Tell an agent destructive · confirm first
Unpublish billboard {id}.
Stop banner {id} from rotating across the site.

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/dev-to:dev-to-billboards-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

dev-to-billboards-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Forem API V1 Billboards API
  version: 1.0.0
  description: Access Forem articles, users and other resources via API.
servers:
- url: https://dev.to
  description: Production server
security:
- api-key: []
- bearer_auth: []
tags:
- name: billboards
paths:
  /api/billboards:
    get:
      summary: Billboards
      tags:
      - billboards
      description: 'Retrieve a list of all billboards configured in the system.


        ### Billboards Overview:

        - Billboards are custom promotional ads, notification banners, or call-to-actions shown on the Forem website.

        - Requires administrative privileges.

        - Returned objects include layout code, scheduling parameters, geo-targeting configurations, and custom target audience segment associations.'
      responses:
        '200':
          description: successful
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/Billboard'
        '401':
          description: unauthorized
      operationId: getApiBillboards
      x-operation-id-source: derived
    post:
      summary: Create a billboard
      tags:
      - billboards
      description: 'Create a new billboard.


        ### Parameter Options & Tips:

        - **body_markdown**: The HTML/Markdown advertisement copy.

        - **placement_area**: Target region in layouts (e.g. `post_comments` below comments, `sidebar` in sidebars, `home_feed` between posts).

        - **display_to**: Cohort target rules (e.g. `all` for everyone, `logged_in`, `guests`, or customized segments).

        - **target_geolocations**: Comma-separated ISO codes for country/region targeting.

        - **approved** & **published**: Set to `true` to activate billboard rotation instantly.'
      parameters: []
      responses:
        '201':
          description: A billboard
          content:
            application/json:
              schema:
                type: object
                items:
                  $ref: '#/components/schemas/Billboard'
        '401':
          description: unauthorized
        '422':
          description: unprocessable
      requestBody:
        content:
          application/json:
            schema:
              type: object
              items:
                $ref: '#/components/schemas/Billboard'
        description: Billboard parameters.
      operationId: postApiBillboards
      x-operation-id-source: derived
  /api/billboards/{id}:
    get:
      summary: A billboard (by id)
      tags:
      - billboards
      description: Retrieve full configurations of a single billboard by ID. Requires admin credentials.
      parameters:
      - name: id
        in: path
        required: true
        description: The ID of the billboard.
        schema:
          type: integer
          format: int32
          minimum: 1
        example: 123
      responses:
        '200':
          description: successful
        '401':
          description: unauthorized
        '404':
          description: Unknown Billboard ID
      operationId: getApiBillboardsById
      x-operation-id-source: derived
    put:
      summary: Update a billboard by ID
      tags:
      - billboards
      description: 'Update an existing billboard''s configurations.


        ### Integration Guidance:

        - Allows changing placement area, geolocations, target segments, or text copy.

        - Updating an active billboard takes effect instantly in the layout delivery cache.'
      parameters:
      - name: id
        in: path
        required: true
        description: The ID of the billboard to update.
        schema:
          type: integer
          format: int32
          minimum: 1
        example: 123
      responses:
        '200':
          description: successful
          content:
            application/json:
              schema:
                type: object
                items:
                  $ref: '#/components/schemas/Billboard'
        '404':
          description: not found
        '401':
          description: unauthorized
      requestBody:
        content:
          application/json:
            schema:
              type: object
              items:
                $ref: '#/components/schemas/Billboard'
        description: Billboard updated attributes.
      operationId: putApiBillboardsById
      x-operation-id-source: derived
  /api/billboards/{id}/unpublish:
    put:
      summary: Unpublish a billboard
      tags:
      - billboards
      description: 'Remove a billboard from active rotation by unpublishing it.


        ### Usage:

        - Instantly disables display across all pages while keeping the configuration stored in the database for later reactivations or historical reporting.'
      parameters:
      - name: id
        in: path
        required: true
        description: The ID of the billboard to unpublish.
        schema:
          type: integer
          format: int32
          minimum: 1
        example: 123
      responses:
        '204':
          description: no content
        '404':
          description: not found
        '401':
          description: unauthorized
      operationId: putApiBillboardsByIdUnpublish
      x-operation-id-source: derived
components:
  schemas:
    Billboard:
      description: Billboard, aka Widget, ex. Display Ad
      type: object
      properties:
        id:
          type: integer
          description: The ID of the Billboard
        name:
          type: string
          description: For internal use, helps distinguish ads from one another
        body_markdown:
          type: string
          description: The text (in markdown) of the ad (required)
        approved:
          type: boolean
          description: Ad must be both published and approved to be in rotation
        published:
          type: boolean
          description: Ad must be both published and approved to be in rotation
        expires_at:
          type:
          - string
          - 'null'
          format: date-time
          description: Timestamp when the billboard expires. After this time, the billboard will automatically be marked as not approved.
        organization_id:
          type:
          - integer
          - 'null'
          description: Identifies the organization to which the ad belongs
        creator_id:
          type:
          - integer
          - 'null'
          description: Identifies the user who created the ad.
        placement_area:
          type: string
          enum:
          - sidebar_left
          - sidebar_left_2
          - sidebar_right
          - sidebar_right_second
          - sidebar_right_third
          - feed_first
          - feed_second
          - feed_third
          - home_hero
          - footer
          - page_fixed_bottom
          - post_fixed_bottom
          - post_body_bottom
          - post_sidebar
          - post_comments
          - post_comments_mid
          - digest_first
          - digest_second
          description: Identifies which area of site layout the ad can appear in
        tag_list:
          type: string
          description: Tags on which this ad can be displayed (blank is all/any tags)
        exclude_article_ids:
          type:
          - string
          - 'null'
          description: Articles this ad should *not* appear on (blank means no articles are disallowed, and this ad can appear next to any/all articles). Comma-separated list of integer Article IDs
        audience_segment_id:
          type: integer
          description: Specifies a specific audience segment who will see this billboard
        audience_segment_type:
          type: string
          enum:
          - manual
          - trusted
          - posted
          - no_posts_yet
          - dark_theme
          - light_theme
          - no_experience
          - experience1
          - experience2
          - experience3
          - experience4
          - experience5
          description: Specifies a group of users who will see this billboard (must match audience_segment_id if both provided)
        target_geolocations:
          type: array
          items:
            type: string
          description: Locations to show this billboard in (blank means it will be shown in all locations). Specified as a comma-separated list or array of ISO 3166-2 country and optionally region codes)
        display_to:
          type: string
          enum:
          - all
          - logged_in
          - logged_out
          default: all
          description: Potentially limits visitors to whom the ad is visible
        type_of:
          type: string
          enum:
          - in_house
          - community
          - external
          default: in_house
          description: 'Types of the billboards:

            in_house (created by admins),

            community (created by an entity, appears on entity''s content),

            external ( created by an entity, or a non-entity, can appear everywhere)

            '
      required:
      - name
      - body_markdown
      - placement_area
  securitySchemes:
    api-key:
      type: apiKey
      name: api-key
      in: header
      description: "API Key authentication.\n\nAuthentication for some endpoints, like write operations on the\nArticles API require a DEV API key.\n\nAll authenticated endpoints are CORS disabled, the API key is intended for non-browser scripts.\n\n### Getting an API key\n\nTo obtain one, please follow these steps:\n\n  - visit https://dev.to/settings/extensions\n  - in the \"DEV API Keys\" section create a new key by adding a\n    description and clicking on \"Generate API Key\"\n\n    ![obtain a DEV API Key](https://user-images.githubusercontent.com/37842/172718105-bd93664e-76e0-477d-99c4-265dda0b06c5.png)\n\n  - You'll see the newly generated key in the same view\n    ![generated DEV API Key](https://user-images.githubusercontent.com/37842/172718151-e7fe26a0-9937-42e8-96c6-333acdab9e49.png)"
    bearer_auth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: Short-lived RS256 RFC 9068 access token issued by the configured delegation service and verified against its configured JWKS. The issuer authorizes the client and requested operation before minting the token; Forem validates the token and resolves its subject and owner to a local user. An invalid token returns 401; an unavailable trust dependency with no usable cached key returns 503.
x-provenance:
  method: harvested
  publisher: DEV Community
  source: https://raw.githubusercontent.com/forem/forem/main/swagger/v1/api_v1.json
  note: split by refine-openapis from the provider's own published document, verified by fetch (openapi/_original/*.fetch.json);
    stamped by stamp-openapi-provenance.py (roadmap#793)