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: Sourcepost Interest API
version: '1.0'
description: 'Operations tagged interest across 2 of this provider''s published API definitions: sourcepost-openapi.json, sourcepost-openapi.yml. Each path carries the servers of the definition it was published in.'
servers:
- url: https://sourcepost.dev
tags:
- name: interest
paths:
/v1/interest:
post:
tags:
- interest
summary: Tell the hub what you offer or what you could not find
description: 'Free text, in English or Spanish. `kind`: `offer` (you or your owner provide something that fits this hub) or `missing` (you searched and did not find it). The message is stored for the hub team and is NOT published; it does not create a listing. Do not include personal data.'
operationId: postInterest
parameters:
- name: lang
in: query
required: false
schema:
anyOf:
- type: string
- type: 'null'
description: 'Response language (en, es). Overrides Accept-Language. Default: en.'
title: Lang
description: 'Response language (en, es). Overrides Accept-Language. Default: en.'
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/InterestIn'
responses:
'201':
description: Stored (not published).
content:
application/json:
schema:
$ref: '#/components/schemas/InterestOut'
headers:
Content-Language:
description: Language of the response (en, es).
schema:
type: string
'422':
description: 'Invalid body: unknown field, wrong `kind`, text too short or long, `contact_url` not http(s), or the example text sent as is (`example_text`).'
'429':
description: Too many requests from this client. Wait `Retry-After` seconds.
headers:
Retry-After:
description: Seconds to wait before the next request.
schema:
type: integer
content:
application/json:
schema:
$ref: '#/components/schemas/RateLimitedOut'
servers:
- url: https://sourcepost.dev
components:
schemas:
InterestOut:
type: object
description: Referenced by this document but never defined in it. API Evangelist added this empty placeholder so the document resolves; the shape is unknown and is NOT a claim about the API.
x-ae-placeholder: true
RateLimitedOut:
type: object
description: Referenced by this document but never defined in it. API Evangelist added this empty placeholder so the document resolves; the shape is unknown and is NOT a claim about the API.
x-ae-placeholder: true
InterestIn:
type: object
description: Referenced by this document but never defined in it. API Evangelist added this empty placeholder so the document resolves; the shape is unknown and is NOT a claim about the API.
x-ae-placeholder: true
InterestOut_2:
properties:
id:
type: string
title: Id
description: Id of the stored message.
kind:
$ref: '#/components/schemas/InterestKind'
description: The `kind` you sent.
published:
type: boolean
const: false
title: Published
description: 'Always false: messages are never published.'
lang:
type: string
title: Lang
description: Language of `message`.
message:
type: string
title: Message
description: Confirmation for you, in `lang`.
type: object
required:
- id
- kind
- published
- lang
- message
title: InterestOut
RateLimitedOut_2:
properties:
error:
type: string
const: rate_limited
title: Error
description: Always rate_limited.
retry_after:
type: integer
title: Retry After
description: Seconds to wait before the next request.
type: object
required:
- error
- retry_after
title: RateLimitedOut
InterestKind:
type: string
enum:
- offer
- missing
title: InterestKind
InterestIn_2:
properties:
kind:
$ref: '#/components/schemas/InterestKind'
description: '''offer'': you or your owner provide something that fits this hub. ''missing'': you searched the hub and did not find what you needed.'
text:
type: string
maxLength: 2000
minLength: 10
title: Text
description: What you offer or what you were looking for. Free text, English or Spanish, 10 to 2000 characters. No personal data.
contact_url:
anyOf:
- type: string
maxLength: 2048
minLength: 1
format: uri
- type: 'null'
title: Contact Url
description: Optional public page where the hub team can follow up.
additionalProperties: false
type: object
required:
- kind
- text
title: InterestIn
examples:
- kind: offer
text: We sell refurbished smartphones wholesale and ship across the EU.
- kind: missing
text: Wholesale suppliers of bicycle spare parts that ship to Portugal.
x-refined-from:
- sourcepost-openapi.json
- sourcepost-openapi.yml