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.
openapi: 3.2.0
info:
title: Drop2Run.Api | v1 Announcements API
version: 1.0.0
servers:
- description: Production
url: https://dropto.run
tags:
- name: Announcements
paths:
/api/announcement:
get:
operationId: GetAnnouncement
responses:
'200':
content:
application/json:
schema:
$ref: '#/components/schemas/AnnouncementResponse'
description: OK
security:
- session: []
- accessToken: []
summary: Reads the announcement bar every page shows right now, if any
tags:
- Announcements
components:
schemas:
CurrentAnnouncement:
description: The bar a page shows.
properties:
icon:
description: 'The mark drawn before it — `ProductHunt`, `Gift`, `Sparkles` or `Megaphone` — or
null for none. A page that does not know a value draws no mark.'
type:
- 'null'
- string
id:
description: Which bar this is.
type: string
linkLabel:
description: The link's words, or null for no link.
type:
- 'null'
- string
linkUrl:
description: Where the link goes — an https URL or a path on this site — or null.
type:
- 'null'
- string
message:
description: The sentence, plain text.
type: string
required:
- id
- message
- icon
- linkLabel
- linkUrl
type: object
AnnouncementResponse:
description: Body of `GET /api/announcement`.
properties:
announcement:
oneOf:
- type: 'null'
- $ref: '#/components/schemas/CurrentAnnouncement'
description: The bar to show, or null when there is none.
__uniqueRefKey: '#/components/schemas/CurrentAnnouncement__0'
required:
- announcement
type: object
securitySchemes:
accessToken:
description: 'A personal access token, created at /account/tokens. Sent as `Authorization: Bearer d2r_...`. A rejected token answers 401 with `invalid_token`, which is deliberately distinct from the 403 a valid credential gets for something it may not do.'
scheme: bearer
type: http
claimToken:
description: Returned once when an anonymous site is created, and the only credential that site has until somebody signs in and claims it.
in: header
name: X-Claim-Token
type: apiKey
session:
description: The browser session, set by signing in with Google. HttpOnly, so a script cannot read it and a client outside a browser cannot send it.
in: cookie
name: d2r_session
type: apiKey