InnerLayer
API Reference/Decision Intelligence
Request Access
Decision Intelligence API

Analyse Conversations.
Surface What Matters.

InnerLayer detects psychological state, behavioural patterns, and intent signals in real time — transforming raw conversation into structured, actionable intelligence.

Authentication

All requests require an API key passed as a request header. Keys are scoped to your organisation and deployment context.

Header
# Include with every request
x-api-key: il_live_xxxxxxxxxxxxxxxxxxxx
ℹ️

Getting your key: API keys are issued on request. Visit innerlayer.ai or contact api@innerlayer.ai to request access.


Analyse

Submit a conversation as raw text or a structured transcript. Returns a full behavioural analysis including psychological state, intent, risk signal, and recommended response type.

POSThttps://api.innerlayer.ai/v1/analyse

Body Parameters

conversationstringrequired

The conversation to analyse. Accepts plain text or a full transcript. Maximum 50,000 characters.

modestring · enumoptional

Processing mode. sync returns immediately (default). batch accepts file upload for post-call analysis.

Allowed:syncbatch
contextstring · enumoptional

Deployment context. Shapes how behavioural markers are weighted and how commercial_translation is phrased. Defaults to general.

Allowed:saleshealthcarehrinsurancegeneral
turnsarrayoptional

Structured turn-by-turn format. Each object requires speaker and text fields. Use instead of conversation for multi-speaker transcripts.

Request Examples

Response

200— Successful analysis
200 Response
{
  "session_id": "il_9f3a2c7e4d",
  "psychological_state": "Controlled Withdrawal",
  "persona": "LINGUISTIC WITHDRAWAL",
  "intent": "disengaging without explicit objection",
  "risk_signal": "high",
  "behavioural_markers": [
    "shortened responses",
    "hedging language",
    "internal escalation deflection",
    "social proof seeking"
  ],
  "response_type": "ANCHOR",
  "commercial_translation": "Deal at risk of silent loss — intervene now",
  "dominant_pattern": "Agreeable Deflection",
  "session_label": "Breakthrough",
  "follow_through_delta": {
    "from": 50,
    "to": 92,
    "direction": "positive"
  },
  "turns_detected": {
    "flagged": 6,
    "total": 9
  },
  "confidence": 0.87,
  "processed_at": "2026-04-04T11:18:00Z"
}

Response Fields

FieldTypeDescription
session_idstringUnique identifier for this analysis session.
psychological_statestringHuman-readable emotional and behavioural state label.
personastringNamed behavioural archetype from InnerLayer's taxonomy (e.g. LINGUISTIC WITHDRAWAL, THE DOER, FEAR OF BECOMING).
intentstringDetected underlying intent, distinct from stated intent.
risk_signalenumlow · medium · high · critical
behavioural_markersarrayDetected strings from InnerLayer's 861-marker behavioural taxonomy.
response_typeenumRecommended conversational action. See Response Types section.
commercial_translationstringPlain-language operational directive adapted to your deployment context.
dominant_patternstringThe primary behavioural pattern detected across the conversation.
session_labelstringTop-level session classification (e.g. Breakthrough, At Risk, Stalled).
follow_through_deltaobjectPredicted follow-through shift. Includes from, to, and direction.
confidencefloatModel confidence score (0.0–1.0).

Batch

Submit a TXT or CSV file containing one or more transcripts for asynchronous post-call analysis. Results are returned as a structured report per session.

POSThttps://api.innerlayer.ai/v1/batch
filefilerequired

Transcript file. Accepted formats: .txt, .csv. Maximum 10MB per request.

contextstring · enumoptional

Deployment context applied to all sessions in the batch.

Allowed:saleshealthcarehrinsurancegeneral

Response Types

Every analysis returns a response_type — a recommended conversational action adapted to your deployment context.

OPTIMISE

Conversation is tracking well. Maintain current approach.

DIRECT

Reduce complexity. State the ask clearly and stop.

ANCHOR

Re-establish commitment. Risk of silent exit is elevated.

QUESTION

Surface the real objection. Do not move to close yet.

CONFIRM

Validate mutual understanding before proceeding.

RELEASE

Reduce pressure. The speaker needs space to decide.

WAIT

Do not respond yet. Let the behavioural pattern complete.

+ context-adapted

All types are adapted to the context parameter in each request.


Behavioural Personas

InnerLayer classifies speakers into named behavioural archetypes. Each persona reflects a distinct psychological state pattern detected across 31,000+ hours of clinical observation.

LINGUISTIC WITHDRAWAL

Disengaging through language reduction. Responses shorten, hedging increases, commitment language disappears.

THE DOER

Action-oriented, impatient with process. High follow-through intent. Respond with directness and decisional clarity.

FEAR OF BECOMING

Ambivalence about change. High surface engagement masking deep resistance. Requires anchoring to desired future state.

AGREEABLE DEFLECTION

Agrees readily but defers consistently. High risk of silent non-conversion. Intervene before the window closes.


Error Codes

400Bad request — conversation field is missing or empty.
401Unauthorised — invalid or missing API key. Check your x-api-key header.
429Rate limit exceeded. Throttle requests or contact us to increase limits.
500Internal server error. Retry with exponential backoff.