Discovery needs no key. Ratings and market analysis are Pro.
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. See our Privacy Policy and
Terms.
openapi: 3.2.0
info:
title: Astrocal Test Data API
version: 1.0.0
description: Scheduling API for AI agents and developers
servers:
- url: https://api.astrocal.dev
description: Production
- url: https://api.astrocal.dev
description: Local development
security:
- BearerAuth: []
tags:
- name: Test Data
paths:
/v1/test-data:
delete:
tags:
- Test Data
summary: Delete all test data
description: Deletes all test event types, availability rules, and bookings for the authenticated organization. Only works with test API keys (ac_test_*). Returns 400 if called with a live key.
responses:
'200':
description: Test data deleted
content:
application/json:
schema:
type: object
properties:
deleted:
type: object
properties:
bookings:
type: integer
availability_rules:
type: integer
event_types:
type: integer
required:
- bookings
- availability_rules
- event_types
required:
- deleted
'400':
description: Bad request — must use a test API key
content:
application/json:
schema:
type: object
properties:
error:
type: object
properties:
code:
type: string
message:
type: string
details:
type: object
additionalProperties:
nullable: true
required:
- code
- message
required:
- error
'401':
description: Unauthorized
content:
application/json:
schema:
type: object
properties:
error:
type: object
properties:
code:
type: string
message:
type: string
details:
type: object
additionalProperties:
nullable: true
required:
- code
- message
required:
- error
operationId: deleteV1TestData
x-operation-id-source: derived
components:
securitySchemes:
BearerAuth:
type: http
scheme: bearer
description: API key authentication. Use your API key as the bearer token.