Cookiy AI Studies / Checkout API
The Studies / Checkout API from Cookiy AI — 1 operation(s) for studies / checkout.
The Studies / Checkout API from Cookiy AI — 1 operation(s) for studies / checkout.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
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.curl "https://apis.io/api/v1/apis/cookiy-ai:cookiy-ai-studies-checkout-api"
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.
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: 3.2.0
info:
title: Cookiy Ai Studies / Checkout API
version: '1.0'
contact: {}
description: 'Operations tagged Studies / Checkout across 2 of this provider''s published API definitions: cookiy-ai-openapi-original.json, cookiy-ai-openapi.yml. Each path carries the servers of the definition it was published in.'
servers:
- url: /api
description: Current environment
- url: https://s-api.cookiy.ai/api
description: Production
- url: https://preview-api.cookiy.ai/api
description: Preview
- url: https://dev-api.cookiy.ai/api
description: Development
tags:
- name: Studies / Checkout
paths:
/v1/studies/{id}/checkout:
post:
operationId: studyCheckout
parameters:
- name: authorization
required: true
in: header
schema:
type: string
- name: id
required: true
in: path
schema:
pattern: ^[0-9a-f]{8}-[0-9a-f]{4}-7[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$
type: string
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/V1StudyCheckoutBodyDto'
responses:
'200':
description: ''
content:
application/json:
schema:
type: object
required:
- ok
- data
properties:
ok:
type: boolean
enum:
- true
data:
$ref: '#/components/schemas/V1StudyCheckoutResponseDto'
'401':
description: ''
content:
application/json:
schema:
type: object
required:
- ok
- error
properties:
ok:
type: boolean
enum:
- false
error:
type: object
required:
- message
properties:
code:
type: string
description: Predefined public error code.
message:
type: string
description: Human-readable message safe to show to users.
details: {}
'402':
description: ''
content:
application/json:
schema:
type: object
required:
- ok
- error
properties:
ok:
type: boolean
enum:
- false
error:
type: object
required:
- message
properties:
code:
type: string
description: Predefined public error code.
message:
type: string
description: Human-readable message safe to show to users.
details: {}
'403':
description: ''
content:
application/json:
schema:
type: object
required:
- ok
- error
properties:
ok:
type: boolean
enum:
- false
error:
type: object
required:
- message
properties:
code:
type: string
description: Predefined public error code.
message:
type: string
description: Human-readable message safe to show to users.
details: {}
security:
- bearer: []
summary: Start selected synthetic interviews and live recruitment
tags:
- Studies / Checkout
servers:
- url: /api
description: Current environment
- url: https://s-api.cookiy.ai/api
description: Production
- url: https://preview-api.cookiy.ai/api
description: Preview
- url: https://dev-api.cookiy.ai/api
description: Development
components:
schemas:
V1StudyCheckoutResponseDto:
type: object
properties:
study_id:
type: string
x-nestjs_zod-uses-3-point-1-syntax: true
outcome:
type: string
enum:
- started
- partially_started
x-nestjs_zod-uses-3-point-1-syntax: true
quote:
type: object
properties:
balance_cents_before:
type: integer
minimum: -9007199254740991
maximum: 9007199254740991
real_cost_cents:
type: integer
minimum: -9007199254740991
maximum: 9007199254740991
synthetic_cost_cents:
type: integer
minimum: -9007199254740991
maximum: 9007199254740991
total_cost_cents:
type: integer
minimum: -9007199254740991
maximum: 9007199254740991
required:
- balance_cents_before
- real_cost_cents
- synthetic_cost_cents
- total_cost_cents
x-nestjs_zod-uses-3-point-1-syntax: true
x-nestjs_zod-self-required: true
synthetic:
type: object
properties:
status:
type: string
enum:
- skipped
- queued
- failed
result:
anyOf:
- type: object
properties:
study_id:
type: string
status:
type: string
enum:
- queued
- running
- ready
- failed
batch_target:
anyOf:
- type: integer
minimum: -9007199254740991
maximum: 9007199254740991
- type: 'null'
batch_completed:
type: integer
minimum: -9007199254740991
maximum: 9007199254740991
recruit_progress_webpage_url:
type: string
format: uri
required:
- study_id
- status
- batch_target
- batch_completed
- recruit_progress_webpage_url
- type: 'null'
error:
anyOf:
- type: object
properties:
status_code:
type: integer
minimum: -9007199254740991
maximum: 9007199254740991
code:
anyOf:
- type: string
- type: 'null'
message:
type: string
details:
anyOf:
- {}
- type: 'null'
required:
- status_code
- code
- message
- details
- type: 'null'
required:
- status
- result
- error
x-nestjs_zod-uses-3-point-1-syntax: true
x-nestjs_zod-self-required: true
real:
type: object
properties:
status:
type: string
enum:
- skipped
- started
- failed
result:
anyOf:
- type: object
properties:
status:
anyOf:
- type: string
- type: 'null'
workflow_state:
type: string
target_participants:
anyOf:
- type: integer
minimum: -9007199254740991
maximum: 9007199254740991
- type: 'null'
incremental_participants:
anyOf:
- type: integer
minimum: -9007199254740991
maximum: 9007199254740991
- type: 'null'
total_participants_after:
anyOf:
- type: integer
minimum: -9007199254740991
maximum: 9007199254740991
- type: 'null'
launched:
anyOf:
- type: boolean
- type: 'null'
recruit_progress_webpage_url:
anyOf:
- type: string
format: uri
- type: 'null'
required:
- status
- workflow_state
- target_participants
- total_participants_after
- launched
- type: 'null'
error:
anyOf:
- type: object
properties:
status_code:
type: integer
minimum: -9007199254740991
maximum: 9007199254740991
code:
anyOf:
- type: string
- type: 'null'
message:
type: string
details:
anyOf:
- {}
- type: 'null'
required:
- status_code
- code
- message
- details
- type: 'null'
required:
- status
- result
- error
x-nestjs_zod-uses-3-point-1-syntax: true
x-nestjs_zod-self-required: true
required:
- study_id
- outcome
- quote
- synthetic
- real
V1StudyCheckoutBodyDto:
type: object
properties:
idempotency_key:
type: string
minLength: 1
maxLength: 200
real_participants:
type: integer
minimum: 0
maximum: 99
synthetic_participants:
type: integer
minimum: 0
maximum: 50
payment_confirmation:
type: boolean
required:
- real_participants
- synthetic_participants
securitySchemes:
bearer:
scheme: bearer
bearerFormat: JWT
type: http
cookie:
type: apiKey
in: cookie
name: Authentication
x-refined-from:
- cookiy-ai-openapi-original.json
- cookiy-ai-openapi.yml