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: Astroclaw Xyz Webhooks API
version: 2.0.0
description: 'Operations tagged Webhooks across 2 of this provider''s published API definitions: astroclaw-xyz-openapi.yaml, astroclaw-xyz.yaml. Each path carries the servers of the definition it was published in.'
servers:
- url: https://www.astroclaw.xyz
tags:
- name: Webhooks
paths:
/api/webhooks/subscribe:
post:
operationId: subscribeWebhook
summary: Receive each new forecast for a sign as a signed POST
description: 'Astroclaw first sends a `webhook.ping` event to the URL; it must answer 2xx. Save the returned management_token: it is shown once and is needed to test or remove the subscription.'
requestBody:
required: true
content:
application/json:
schema:
type: object
required:
- webhook_url
- sign
properties:
webhook_url:
type: string
format: uri
description: Public HTTPS endpoint.
sign:
$ref: '#/components/schemas/SignName'
secret:
type: string
maxLength: 256
description: Used to sign deliveries with HMAC-SHA256.
responses:
'201':
description: Subscription created.
content:
application/json:
schema:
type: object
properties:
subscription_id:
type: string
management_token:
type: string
sign:
$ref: '#/components/schemas/SignName'
webhook_url:
type: string
format: uri
created_at:
type: string
format: date-time
'400':
description: Invalid input, or the endpoint did not acknowledge the ping.
'503':
description: Webhook delivery is unavailable; use the feeds instead.
tags:
- Webhooks
servers:
- url: https://www.astroclaw.xyz
/api/webhooks/trigger:
post:
operationId: testWebhook
summary: Send a test delivery to your own subscription
security:
- managementToken: []
requestBody:
required: true
content:
application/json:
schema:
type: object
required:
- subscription_id
properties:
subscription_id:
type: string
date:
type: string
format: date
responses:
'200':
description: Delivery attempted; see success and status_code.
'404':
description: Unknown subscription or wrong token.
tags:
- Webhooks
servers:
- url: https://www.astroclaw.xyz
/api/webhooks/unsubscribe:
post:
operationId: unsubscribeWebhook
summary: Remove a subscription
security:
- managementToken: []
requestBody:
required: true
content:
application/json:
schema:
type: object
required:
- subscription_id
properties:
subscription_id:
type: string
responses:
'200':
description: Removed.
'404':
description: Unknown subscription or wrong token.
tags:
- Webhooks
servers:
- url: https://www.astroclaw.xyz
components:
schemas:
SignName:
type: string
enum:
- aries
- taurus
- gemini
- cancer
- leo
- virgo
- libra
- scorpio
- sagittarius
- capricorn
- aquarius
- pisces
securitySchemes:
managementToken:
type: http
scheme: bearer
description: The management_token returned when the subscription was created.
externalDocs:
description: Agent guide
url: https://www.astroclaw.xyz/llms.txt
x-refined-from:
- astroclaw-xyz-openapi.yaml
- astroclaw-xyz.yaml