Behavioral Science API

Bearer-key JSON REST API on phoslabs.io. The provider-published OpenAPI 3.0.3 (verbatim in openapi/) declares seven operations — six metered POST tools (audit 0 credits, diagnose 10, fixCheckout 30, copy 20, pricing 25, detectBiases 8; 1 credit = EUR 0.01) and an anonymous GET /api/v1/tools (listTools) that returns the live inventory with prices and input fields. Keys are issued by POST /api/trial or by buying credits. Every response carries credits_remaining; errors are {"error": string}; no Idempotency-Key, no reversal path, rate limits unpublished. The provider README lists nine further tools the contract does not serve.

Operations 7

POST /api/v1/audit Full behavioral audit #
POST /api/v1/diagnose Diagnose funnel dropoff #
POST /api/v1/fix-checkout Redesign checkout flow #
POST /api/v1/copy Behavioral copywriting #
POST /api/v1/pricing Pricing optimization #
POST /api/v1/detect-biases Detect cognitive biases #
GET /api/v1/tools List available tools #

Documentation

Specifications

Other Resources

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • 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.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/behavioral-science-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

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.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

phoslabs-io-openapi.yml Raw ↑
openapi: 3.0.3
info:
  title: Behavioral Science API
  description: Apply behavioral science to products, funnels, copy, and pricing. Credit-based billing.
  version: 1.0.0
  contact:
    url: https://phoslabs.io
servers:
- url: https://phoslabs.io
  description: Production
security:
- BearerAuth: []
components:
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      description: API key from /api/trial or purchased at /credits
  schemas:
    SuccessResponse:
      type: object
      properties:
        success:
          type: boolean
          example: true
        result:
          type: object
          description: Tool-specific result
        credits_remaining:
          type: integer
          nullable: true
    ErrorResponse:
      type: object
      properties:
        error:
          type: string
        credits_remaining:
          type: integer
          nullable: true
paths:
  /api/v1/audit:
    post:
      summary: Full behavioral audit
      description: 'Run a comprehensive behavioral science audit on a product or service. Free: this call costs
        0 credits.'
      operationId: audit
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                product_description:
                  type: string
                  description: Description of the product or service to audit
                url:
                  type: string
                  description: URL of the product (optional)
                industry:
                  type: string
                goal:
                  type: string
              required:
              - product_description
      responses:
        '200':
          description: Audit results
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SuccessResponse'
        '401':
          description: Invalid API key
        '402':
          description: Insufficient credits
  /api/v1/diagnose:
    post:
      summary: Diagnose funnel dropoff
      description: Identify behavioral reasons for funnel dropoff. 10 credits.
      operationId: diagnose
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                funnel_description:
                  type: string
                  description: Description of the funnel or journey
                data:
                  type: object
                  description: Optional analytics data
                industry:
                  type: string
              required:
              - funnel_description
      responses:
        '200':
          description: Diagnosis results
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SuccessResponse'
        '401':
          description: Invalid API key
        '402':
          description: Insufficient credits
  /api/v1/fix-checkout:
    post:
      summary: Redesign checkout flow
      description: Behavioral science redesign of a checkout or decision flow. 30 credits.
      operationId: fixCheckout
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                checkout_flow:
                  type: string
                  description: Current checkout flow description
              required:
              - checkout_flow
      responses:
        '200':
          description: Redesigned flow
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SuccessResponse'
        '401':
          description: Invalid API key
        '402':
          description: Insufficient credits
  /api/v1/copy:
    post:
      summary: Behavioral copywriting
      description: Rewrite copy using social proof, scarcity, framing, and other behavioral principles. 20 credits.
      operationId: copy
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                draft:
                  type: string
                  description: Draft copy to rewrite
                goal:
                  type: string
                  description: Goal of the copy (e.g. increase signups)
              required:
              - draft
              - goal
      responses:
        '200':
          description: Rewritten copy
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SuccessResponse'
        '401':
          description: Invalid API key
        '402':
          description: Insufficient credits
  /api/v1/pricing:
    post:
      summary: Pricing optimization
      description: Optimize pricing strategy using anchoring, decoy effects, and behavioral economics. 25 credits.
      operationId: pricing
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                product:
                  type: string
                  description: Product or service to optimize pricing for
                context:
                  type: string
                persona:
                  type: string
              required:
              - product
      responses:
        '200':
          description: Pricing strategy
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SuccessResponse'
        '401':
          description: Invalid API key
        '402':
          description: Insufficient credits
  /api/v1/detect-biases:
    post:
      summary: Detect cognitive biases
      description: Identify cognitive biases in decision text or recommendations. 8 credits.
      operationId: detectBiases
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                text:
                  type: string
                  description: Text to analyze for biases
              required:
              - text
      responses:
        '200':
          description: Detected biases
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SuccessResponse'
        '401':
          description: Invalid API key
        '402':
          description: Insufficient credits
  /api/v1/tools:
    get:
      summary: List available tools
      description: List all REST API tools with descriptions, pricing, and input schemas.
      operationId: listTools
      security: []
      responses:
        '200':
          description: Tool listing