openapi: 3.1.1 info: title: Receptiviti API description: | The Receptiviti API measures the psychological and behavioral signals in language. It analyzes text and returns scores for personality, emotions, motivations, thinking styles, interpersonal dynamics, and other psychological characteristics, grouped into frameworks such as Big 5, DISC Dimensions, Drives, and LIWC. Scores are deterministic: the same text, analyzed with the same context and API version, always produces the same scores. To analyze text, send one or more samples to `POST /v2/analyze/{context}`. Use `written` as the context for written text, or `spoken` for transcribed speech. Authenticate every request with HTTP Basic authentication, using your API key as the username and your API secret as the password. To check your setup, call [`GET /v2/ping`](https://docs.receptiviti.com/api-reference/v2/ping). To see the response format without using your word allotment, use [the sandbox endpoint](https://docs.receptiviti.com/api-reference/v2/analyze-sandbox). version: 2.0.0 servers: - url: https://api.receptiviti.com/v2 description: Receptiviti API v2 security: - basicAuth: [] tags: - name: Authentication description: Check that your API credentials work. - name: Analysis description: Analyze text and get scores for each framework. - name: Norming description: List norming contexts, and create and manage custom ones. See [About norming](https://docs.receptiviti.com/norming-and-base-rates/norming). externalDocs: description: "About norming" url: "https://docs.receptiviti.com/norming-and-base-rates/norming" - name: Usage description: Check your plan's word usage for the current billing cycle. paths: /ping: get: tags: - Authentication summary: Test API authentication description: > Checks that your API credentials are valid. Returns `{"ping": "pong"}` if authentication succeeds, or a 401 error if it fails. Use it to confirm your setup before sending text for analysis. operationId: ping x-codeSamples: - lang: cURL source: | curl 'https://api.receptiviti.com/v2/ping' \ -u ':' - lang: Python source: | import requests api_key = '' api_secret = '' response = requests.get( 'https://api.receptiviti.com/v2/ping', auth=(api_key, api_secret), ) print(response.json()) - lang: R source: | library(httr) api_key <- "" api_secret <- "" response <- GET( "https://api.receptiviti.com/v2/ping", authenticate(api_key, api_secret) ) print(content(response)) responses: "200": description: Authentication successful content: application/json: schema: type: object properties: ping: type: string description: A pong response example: { "ping": "pong" } "401": $ref: "#/components/responses/Unauthenticated" "500": $ref: "#/components/responses/InternalServerError" /analyze/{context}: post: tags: - Analysis summary: Analyze text description: > Analyzes one or more text samples and returns scores for every framework enabled on your account, such as Big 5, DISC Dimensions, and LIWC. Send an array of samples; each needs a `text` field and can include your own `request_id` for matching results. Set the context in the path to `written` or `spoken` to [score against norms for that kind of language](https://docs.receptiviti.com/norming-and-base-rates/norming). The response also includes your plan's current word usage. Analyzed words count against your plan's word allotment. operationId: analyze parameters: - $ref: "#/components/parameters/contextParam" - $ref: "#/components/parameters/outputParam" - $ref: "#/components/parameters/frameworksParam" requestBody: description: Text samples to be analyzed required: true content: application/json: schema: type: array items: $ref: "#/components/schemas/sample" example: [ { "request_id": "req-1", "text": "This is some text to analyze..." }, ] x-codeSamples: - lang: cURL source: | curl --request POST 'https://api.receptiviti.com/v2/analyze/written' \ -u ':' \ --header 'Content-Type: application/json' \ --data-raw '[{"text": "This is my text sample"}]' - lang: Python source: | import requests api_key = '' api_secret = '' response = requests.post( 'https://api.receptiviti.com/v2/analyze/written', auth=(api_key, api_secret), json=[{'text': 'This is my text sample'}], ) print(response.json()) - lang: R source: | library(httr) api_key <- "" api_secret <- "" response <- POST( "https://api.receptiviti.com/v2/analyze/written", authenticate(api_key, api_secret), body = list(list(text = "This is my text sample")), encode = "json" ) print(content(response)) responses: "200": $ref: "#/components/responses/Analyze" "400": $ref: "#/components/responses/BadRequestAnalyze" "401": $ref: "#/components/responses/Unauthenticated" "404": $ref: "#/components/responses/NotFoundNormingContext" "413": $ref: "#/components/responses/RequestEntityTooLarge" "429": $ref: "#/components/responses/TooManyRequests" "500": $ref: "#/components/responses/InternalServerError" /analyze/custom/{customContext}: post: tags: - Analysis summary: Analyze text with a custom norming context description: > Scores one or more text samples against a custom norming context you've created. Works the same way as `POST /analyze/{context}`, and analyzed words count against your allotment. The context must have completed both norming passes; otherwise the request returns a 400 error (`custom_norming_context_incomplete`). See the [custom norming guide](https://docs.receptiviti.com/norming-and-base-rates/custom-norming/). externalDocs: description: "Custom norming guide" url: "https://docs.receptiviti.com/norming-and-base-rates/custom-norming/" operationId: analyzeWithCustomContext parameters: - $ref: "#/components/parameters/customContextParam" - $ref: "#/components/parameters/outputParam" - $ref: "#/components/parameters/frameworksParam" requestBody: description: Text samples to be analyzed required: true content: application/json: schema: type: array items: $ref: "#/components/schemas/sample" example: [ { "request_id": "req-1", "text": "This is some text to analyze..." }, ] x-codeSamples: - lang: cURL source: | curl --request POST 'https://api.receptiviti.com/v2/analyze/custom/my-context' \ -u ':' \ --header 'Content-Type: application/json' \ --data-raw '[{"text": "This is my text sample"}]' - lang: Python source: | import requests api_key = '' api_secret = '' response = requests.post( 'https://api.receptiviti.com/v2/analyze/custom/my-context', auth=(api_key, api_secret), json=[{'text': 'This is my text sample'}], ) print(response.json()) - lang: R source: | library(httr) api_key <- "" api_secret <- "" response <- POST( "https://api.receptiviti.com/v2/analyze/custom/my-context", authenticate(api_key, api_secret), body = list(list(text = "This is my text sample")), encode = "json" ) print(content(response)) responses: "200": $ref: "#/components/responses/Analyze" "400": $ref: "#/components/responses/BadRequestAnalyzeCustom" "401": $ref: "#/components/responses/Unauthenticated" "404": $ref: "#/components/responses/NotFoundCustomNormingContext" "409": $ref: "#/components/responses/ConflictContextNeedsUpdate" "413": $ref: "#/components/responses/RequestEntityTooLarge" "429": $ref: "#/components/responses/TooManyRequests" "500": $ref: "#/components/responses/InternalServerError" /sandbox/{context}: post: tags: - Analysis summary: Analyze text (sandbox) description: > Returns a response in the same format as `POST /analyze/{context}`, with every score set to 0. Use it to test your integration and see the output format without using your word allotment. operationId: analyzeSandbox parameters: - $ref: "#/components/parameters/contextParam" - $ref: "#/components/parameters/outputParam" - $ref: "#/components/parameters/frameworksParam" requestBody: description: Text samples to be analyzed required: true content: application/json: schema: type: array items: $ref: "#/components/schemas/sample" example: [ { "request_id": "req-1", "text": "This is some text to analyze..." }, ] x-codeSamples: - lang: cURL source: | curl --request POST 'https://api.receptiviti.com/v2/sandbox/written' \ -u ':' \ --header 'Content-Type: application/json' \ --data-raw '[{"text": "This is my text sample"}]' - lang: Python source: | import requests api_key = '' api_secret = '' response = requests.post( 'https://api.receptiviti.com/v2/sandbox/written', auth=(api_key, api_secret), json=[{'text': 'This is my text sample'}], ) print(response.json()) - lang: R source: | library(httr) api_key <- "" api_secret <- "" response <- POST( "https://api.receptiviti.com/v2/sandbox/written", authenticate(api_key, api_secret), body = list(list(text = "This is my text sample")), encode = "json" ) print(content(response)) responses: "200": $ref: "#/components/responses/Analyze" "400": $ref: "#/components/responses/BadRequestAnalyze" "401": $ref: "#/components/responses/Unauthenticated" "404": $ref: "#/components/responses/NotFoundNormingContext" "413": $ref: "#/components/responses/RequestEntityTooLarge" "500": $ref: "#/components/responses/InternalServerError" /norming: get: tags: - Norming summary: Get a list of available norming contexts description: A list of both Receptiviti and custom norming contexts operationId: listNormingContexts x-codeSamples: - lang: cURL source: | curl 'https://api.receptiviti.com/v2/norming' \ -u ':' - lang: Python source: | import requests api_key = '' api_secret = '' response = requests.get( 'https://api.receptiviti.com/v2/norming', auth=(api_key, api_secret), ) print(response.json()) - lang: R source: | library(httr) api_key <- "" api_secret <- "" response <- GET( "https://api.receptiviti.com/v2/norming", authenticate(api_key, api_secret) ) print(content(response)) responses: "200": description: A list of strings indicating available contexts content: application/json: schema: type: array items: type: string example: ["spoken", "written", "custom/survey"] "401": $ref: "#/components/responses/Unauthenticated" "500": $ref: "#/components/responses/InternalServerError" /norming/custom: get: tags: - Norming summary: Get a list of all custom norming contexts description: > A list of custom norming contexts including both in-progress and completed contexts along with details about the number of samples, number of words, etc. operationId: listCustomNormingContexts x-codeSamples: - lang: cURL source: | curl 'https://api.receptiviti.com/v2/norming/custom' \ -u ':' - lang: Python source: | import requests api_key = '' api_secret = '' response = requests.get( 'https://api.receptiviti.com/v2/norming/custom', auth=(api_key, api_secret), ) print(response.json()) - lang: R source: | library(httr) api_key <- "" api_secret <- "" response <- GET( "https://api.receptiviti.com/v2/norming/custom", authenticate(api_key, api_secret) ) print(content(response)) responses: "200": description: A list of custom norming contexts with their details content: application/json: schema: type: array items: $ref: "#/components/schemas/context" example: [ { "id": "dd5c86cf-9362-4961-8f2e-1f094d7fb0de", "name": "custom/survey", "version": "2.0", "min_word_count": 350, "max_punctuation": null, "status": "created", "pass_one": { "submitted_samples": 0, "analyzed_samples": 0, "analyzed_word_count": 0, "filtered_blank": 0, "filtered_word_count": 0, "filtered_punctuation": 0, }, "pass_two": { "submitted_samples": 0, "analyzed_samples": 0, "analyzed_word_count": 0, "filtered_blank": 0, "filtered_word_count": 0, "filtered_punctuation": 0, }, "user": "John Doe", "created": "2025-01-07T15:28:45.433435Z", "modified": "2025-01-07T15:28:45.433435Z", }, ] "401": $ref: "#/components/responses/Unauthenticated" "500": $ref: "#/components/responses/InternalServerError" post: tags: - Norming summary: Create a new custom norming context description: > Creates a new, empty custom norming context. To build it, send your samples to pass one, then send the same samples to pass two. After both passes, you can use the context with `POST /analyze/custom/{customContext}`. Optional settings exclude samples with too few words (`min_word_count`, default 350) or too much punctuation (`max_punctuation`). See the [custom norming guide](https://docs.receptiviti.com/norming-and-base-rates/custom-norming/). externalDocs: description: "Custom norming guide" url: "https://docs.receptiviti.com/norming-and-base-rates/custom-norming/" operationId: createCustomNormingContext requestBody: description: Requirements for the new custom norming context required: true content: application/json: schema: type: object properties: name: type: string description: > Name for the new context Must be unique within the account min_word_count: type: integer description: Minimum required word count default: 350 max_punctuation: type: number format: float description: Maximum allowed punctuation proportion default: null required: - name example: { "name": "test", "min_word_count": 500, "max_punctuation": 0.5, } x-codeSamples: - lang: cURL source: | curl --request POST 'https://api.receptiviti.com/v2/norming/custom' \ -u ':' \ --header 'Content-Type: application/json' \ --data-raw '{"name": "my-context"}' - lang: Python source: | import requests api_key = '' api_secret = '' response = requests.post( 'https://api.receptiviti.com/v2/norming/custom', auth=(api_key, api_secret), json={'name': 'my-context'}, ) print(response.json()) - lang: R source: | library(httr) api_key <- "" api_secret <- "" response <- POST( "https://api.receptiviti.com/v2/norming/custom", authenticate(api_key, api_secret), body = list(name = "my-context"), encode = "json" ) print(content(response)) responses: "200": description: Metadata about the created context content: application/json: schema: $ref: "#/components/schemas/context" example: { "id": "dd5c86cf-9362-4961-8f2e-1f094d7fb0de", "name": "custom/survey", "version": "2.0", "min_word_count": 350, "max_punctuation": null, "status": "created", "pass_one": { "submitted_samples": 0, "analyzed_samples": 0, "analyzed_word_count": 0, "filtered_blank": 0, "filtered_word_count": 0, "filtered_punctuation": 0, }, "pass_two": { "submitted_samples": 0, "analyzed_samples": 0, "analyzed_word_count": 0, "filtered_blank": 0, "filtered_word_count": 0, "filtered_punctuation": 0, }, "user": "John Doe", "created": "2025-01-07T15:28:45.433435Z", "modified": "2025-01-07T15:28:45.433435Z", } "400": $ref: "#/components/responses/BadRequestCreateCustomContext" "401": $ref: "#/components/responses/Unauthenticated" "500": $ref: "#/components/responses/InternalServerError" /norming/custom/{customContext}/one: patch: tags: - Norming summary: First-pass custom norming endpoint description: > First of two passes for building a custom norming context. Send all the samples that should define the context. Samples that are blank or fail the context's word-count or punctuation filters are excluded, and the response reports how many were analyzed and how many were filtered. Then send the same samples to pass two. See the [custom norming guide](https://docs.receptiviti.com/norming-and-base-rates/custom-norming/). externalDocs: description: "Custom norming guide" url: "https://docs.receptiviti.com/norming-and-base-rates/custom-norming/" operationId: submitCustomNormingPassOne parameters: - $ref: "#/components/parameters/customContextParam" requestBody: description: Text samples to be included in the context required: true content: application/json: schema: type: array items: $ref: "#/components/schemas/sample" example: [ { "request_id": "req-1", "text": "This is some text to analyze..." }, ] x-codeSamples: - lang: cURL source: | curl --request PATCH 'https://api.receptiviti.com/v2/norming/custom/my-context/one' \ -u ':' \ --header 'Content-Type: application/json' \ --data-raw '[{"text": "This is some text to analyze..."}]' - lang: Python source: | import requests api_key = '' api_secret = '' response = requests.patch( 'https://api.receptiviti.com/v2/norming/custom/my-context/one', auth=(api_key, api_secret), json=[{'text': 'This is some text to analyze...'}], ) print(response.json()) - lang: R source: | library(httr) api_key <- "" api_secret <- "" response <- PATCH( "https://api.receptiviti.com/v2/norming/custom/my-context/one", authenticate(api_key, api_secret), body = list(list(text = "This is some text to analyze...")), encode = "json" ) print(content(response)) responses: "200": $ref: "#/components/responses/CustomNormingPass" "400": $ref: "#/components/responses/BadRequestCustomNormingPass" "401": $ref: "#/components/responses/Unauthenticated" "404": $ref: "#/components/responses/NotFoundCustomNormingContext" "413": $ref: "#/components/responses/RequestEntityTooLarge" "500": $ref: "#/components/responses/InternalServerError" /norming/custom/{customContext}/two: patch: tags: - Norming summary: Second-pass custom norming endpoint description: > Second pass for building a custom norming context. Send the same samples you sent in pass one. When this pass finishes, the context is ready to use with `POST /analyze/custom/{customContext}`. If pass one hasn't been called, this returns a 400 error (`custom_norming_out_of_sequence`). If pass one didn't analyze any samples or words, it returns a 400 error (`custom_norming_insufficient_data`). See the [custom norming guide](https://docs.receptiviti.com/norming-and-base-rates/custom-norming/). externalDocs: description: "Custom norming guide" url: "https://docs.receptiviti.com/norming-and-base-rates/custom-norming/" operationId: submitCustomNormingPassTwo parameters: - $ref: "#/components/parameters/customContextParam" requestBody: description: Text samples to be included in the context required: true content: application/json: schema: type: array items: $ref: "#/components/schemas/sample" example: [ { "request_id": "req-1", "text": "This is some text to analyze..." }, ] x-codeSamples: - lang: cURL source: | curl --request PATCH 'https://api.receptiviti.com/v2/norming/custom/my-context/two' \ -u ':' \ --header 'Content-Type: application/json' \ --data-raw '[{"text": "This is some text to analyze..."}]' - lang: Python source: | import requests api_key = '' api_secret = '' response = requests.patch( 'https://api.receptiviti.com/v2/norming/custom/my-context/two', auth=(api_key, api_secret), json=[{'text': 'This is some text to analyze...'}], ) print(response.json()) - lang: R source: | library(httr) api_key <- "" api_secret <- "" response <- PATCH( "https://api.receptiviti.com/v2/norming/custom/my-context/two", authenticate(api_key, api_secret), body = list(list(text = "This is some text to analyze...")), encode = "json" ) print(content(response)) responses: "200": $ref: "#/components/responses/CustomNormingPass" "400": $ref: "#/components/responses/BadRequestCustomNormingPassTwo" "401": $ref: "#/components/responses/Unauthenticated" "404": $ref: "#/components/responses/NotFoundCustomNormingContext" "413": $ref: "#/components/responses/RequestEntityTooLarge" "500": $ref: "#/components/responses/InternalServerError" /norming/custom/{customContext}: delete: tags: - Norming summary: Delete a custom norming context description: > Permanently deletes a custom norming context. Requests that use it afterwards return a 404 error. operationId: deleteCustomNormingContext parameters: - $ref: "#/components/parameters/customContextParam" x-codeSamples: - lang: cURL source: | curl --request DELETE 'https://api.receptiviti.com/v2/norming/custom/my-context' \ -u ':' - lang: Python source: | import requests api_key = '' api_secret = '' response = requests.delete( 'https://api.receptiviti.com/v2/norming/custom/my-context', auth=(api_key, api_secret), ) print(response.json()) - lang: R source: | library(httr) api_key <- "" api_secret <- "" response <- DELETE( "https://api.receptiviti.com/v2/norming/custom/my-context", authenticate(api_key, api_secret) ) print(content(response)) responses: "200": description: A success message content: application/json: schema: type: object properties: message: type: string description: A success message example: { "message": "Custom norming context deleted successfully" } "401": $ref: "#/components/responses/Unauthenticated" "404": $ref: "#/components/responses/NotFoundCustomNormingContext" "500": $ref: "#/components/responses/InternalServerError" /usage: get: tags: - Usage summary: Get account usage statistics description: | The usage endpoint allows you to obtain usage details of your account, including word limits, words used, and billing cycle information. operationId: getUsage x-codeSamples: - lang: cURL source: | curl 'https://api.receptiviti.com/v2/usage' \ -u ':' - lang: Python source: | import requests api_key = '' api_secret = '' response = requests.get( 'https://api.receptiviti.com/v2/usage', auth=(api_key, api_secret), ) print(response.json()) - lang: R source: | library(httr) api_key <- "" api_secret <- "" response <- GET( "https://api.receptiviti.com/v2/usage", authenticate(api_key, api_secret) ) print(content(response)) responses: "200": description: Account usage statistics content: application/json: schema: type: object properties: word_limit: type: integer description: The number of words available in a subscription's billing cycle words_used: type: integer description: The number of words used for the current billing cycle words_remaining: type: integer description: The number of words remaining for the current billing cycle percent_used: type: number format: float description: The percentage of words used based on the amount of words available in a subscription's billing cycle start_date: type: string format: date-time description: The first day of the current billing cycle in UTC end_date: type: string format: date-time description: The last day of the current billing cycle in UTC example: { "word_limit": 250000, "words_used": 125000, "words_remaining": 125000, "percent_used": 50.0, "start_date": "2024-12-30T00:00:00Z", "end_date": "2025-01-29T23:59:59Z" } "401": $ref: "#/components/responses/Unauthenticated" "500": $ref: "#/components/responses/InternalServerError" components: securitySchemes: basicAuth: type: http scheme: basic description: HTTP Basic authentication. Use your API key as the username and your API secret as the password. schemas: error: type: object description: An error response properties: error: type: object properties: code: type: string description: A code string that classifies the type of error message: type: string description: A human-friendly message describing the nature of the error sample: type: object description: A text sample with optional ID properties: request_id: type: string description: User-defined ID for this sample (optional) text: type: string description: A text sample to be analyzed required: - text analysis: type: object description: Analyzed scores for a single text sample properties: response_id: type: string description: The Receptiviti-defined UUID for this analysis request_id: type: string description: The optional user-defined ID for this analysis norming: type: string description: The norming context used for the analysis version: type: string description: The API version code summary: type: object description: High-level details about the sample, such as word count big_5: type: object description: Big 5 scores social_dynamics: type: object description: Social Dynamics scores drives: type: object description: Drives scores cognition: type: object description: Cognition scores thinking_fast_slow: type: object description: Thinking Fast and Slow scores temporal_and_orientation: type: object description: Temporal and Orientation scores time_focus: type: object description: Time Focus scores sallee: type: object description: SALLEE scores sparse_sallee: type: object description: Sparse SALLEE scores normed_sallee: type: object description: Normed SALLEE scores liwc15: type: object description: LIWC15 scores liwc_extension: type: object description: LIWC Extension scores disc_dimensions: type: object description: DISC Dimensions scores needs: type: object description: Needs scores values: type: object description: Values scores interpersonal_circumplex: type: object description: Interpersonal Circumplex scores context: type: object description: Custom norming context metadata parameters: contextParam: in: path name: context required: true schema: type: string description: The context name. Must be either spoken or written. example: "written" customContextParam: in: path name: customContext required: true schema: type: string description: The custom context name. Must be a valid custom norm name that you have created and is saved in your account. outputParam: in: query name: output schema: type: string enum: - json - csv default: "json" description: The output format frameworksParam: in: query name: frameworks required: false description: > The frameworks to include in the results, as a comma-separated list (for example, `big_5,needs`). Names match the framework keys in the analysis response. Which frameworks you can request depends on your account; if omitted, results include every framework enabled for your account. Requesting a framework that isn't enabled for your account, or an unrecognized name, returns a 400 error (`query_unavailable_framework`). style: form explode: false schema: type: array items: type: string example: [big_5, needs] responses: Unauthenticated: description: Authentication failed content: application/json: schema: $ref: "#/components/schemas/error" examples: auth_invalid_credentials: summary: Invalid credentials value: { "error": { "code": "auth_invalid_credentials", "message": "Invalid credentials", }, } auth_missing_header: summary: Missing Basic Auth header value: { "error": { "code": "auth_missing_header", "message": "Missing Basic Auth header", }, } account_disabled: summary: Your plan has ended value: { "error": { "code": "account_disabled", "message": "Your plan has ended", }, } BadRequestAnalyze: description: Bad request when analyzing text samples content: application/json: schema: $ref: "#/components/schemas/error" examples: json_missing_text_field: summary: Each sample must contain a 'text' field value: { "error": { "code": "json_missing_text_field", "message": "Each sample must contain a 'text' field", }, } request_body_empty: summary: Request body must not be empty value: { "error": { "code": "request_body_empty", "message": "Request body must not be empty", }, } request_array_empty: summary: Request must contain at least one sample value: { "error": { "code": "request_array_empty", "message": "Request must contain at least one sample", }, } norming_context_missing: summary: A norming context must be specified value: { "error": { "code": "norming_context_missing", "message": "A norming context must be specified", }, } json_invalid_field: summary: Request body contains an invalid value for the 'request_id' field (at position 31) value: { "error": { "code": "json_invalid_field", "message": "Request body contains an invalid value for the 'request_id' field (at position 31)", }, } json_unknown_field: summary: Request body contains unknown field 'foo' value: { "error": { "code": "json_unknown_field", "message": "Request body contains unknown field 'foo'", }, } json_malformed: summary: Request body contains malformed JSON value: { "error": { "code": "json_malformed", "message": "Request body contains malformed JSON", }, } json_malformed_with_position: summary: Request body contains malformed JSON (at position 34) value: { "error": { "code": "json_malformed", "message": "Request body contains malformed JSON (at position 34)", }, } query_unavailable_framework: summary: "Invalid query: unavailable value(s) for 'frameworks': bug_5" value: { "error": { "code": "query_unavailable_framework", "message": "Invalid query: unavailable value(s) for 'frameworks': bug_5", }, } query_unrecognized_output: summary: "Invalid query: unrecognized value for 'output'" value: { "error": { "code": "query_unrecognized_output", "message": "Invalid query: unrecognized value for 'output'", }, } BadRequestAnalyzeCustom: description: Bad request when analyzing text with a custom norming context content: application/json: schema: $ref: "#/components/schemas/error" examples: json_missing_text_field: summary: Each sample must contain a 'text' field value: { "error": { "code": "json_missing_text_field", "message": "Each sample must contain a 'text' field", }, } request_body_empty: summary: Request body must not be empty value: { "error": { "code": "request_body_empty", "message": "Request body must not be empty", }, } request_array_empty: summary: Request must contain at least one sample value: { "error": { "code": "request_array_empty", "message": "Request must contain at least one sample", }, } norming_context_missing: summary: A norming context must be specified value: { "error": { "code": "norming_context_missing", "message": "A norming context must be specified", }, } json_invalid_field: summary: Request body contains an invalid value for the 'request_id' field (at position 31) value: { "error": { "code": "json_invalid_field", "message": "Request body contains an invalid value for the 'request_id' field (at position 31)", }, } json_unknown_field: summary: Request body contains unknown field 'foo' value: { "error": { "code": "json_unknown_field", "message": "Request body contains unknown field 'foo'", }, } json_malformed: summary: Request body contains malformed JSON value: { "error": { "code": "json_malformed", "message": "Request body contains malformed JSON", }, } json_malformed_with_position: summary: Request body contains malformed JSON (at position 34) value: { "error": { "code": "json_malformed", "message": "Request body contains malformed JSON (at position 34)", }, } query_unavailable_framework: summary: "Invalid query: unavailable value(s) for 'frameworks': bug_5" value: { "error": { "code": "query_unavailable_framework", "message": "Invalid query: unavailable value(s) for 'frameworks': bug_5", }, } query_unrecognized_output: summary: "Invalid query: unrecognized value for 'output'" value: { "error": { "code": "query_unrecognized_output", "message": "Invalid query: unrecognized value for 'output'", }, } custom_norming_context_incomplete: summary: "The requested custom norming context is incomplete" value: { "error": { "code": "custom_norming_context_incomplete", "message": "The requested custom norming context is incomplete", }, } BadRequestCreateCustomContext: description: Bad request when creating a custom norming context content: application/json: schema: $ref: "#/components/schemas/error" examples: custom_norming_invalid_payload: summary: "Invalid payload: 'name' must be provided" value: { "error": { "code": "custom_norming_invalid_payload", "message": "Invalid payload: 'name' must be provided", }, } json_invalid_field: summary: Request body contains an invalid value for the 'name' field (at position 10) value: { "error": { "code": "json_invalid_field", "message": "Request body contains an invalid value for the 'name' field (at position 10)", }, } json_unknown_field: summary: Request body contains unknown field 'foo' value: { "error": { "code": "json_unknown_field", "message": "Request body contains unknown field 'foo'", }, } json_malformed: summary: Request body contains malformed JSON value: { "error": { "code": "json_malformed", "message": "Request body contains malformed JSON", }, } json_malformed_with_position: summary: Request body contains malformed JSON (at position 34) value: { "error": { "code": "json_malformed", "message": "Request body contains malformed JSON (at position 34)", }, } BadRequestCustomNormingPass: description: Bad request when performing a custom norming pass content: application/json: schema: $ref: "#/components/schemas/error" examples: json_missing_text_field: summary: Each sample must contain a 'text' field value: { "error": { "code": "json_missing_text_field", "message": "Each sample must contain a 'text' field", }, } request_body_empty: summary: Request body must not be empty value: { "error": { "code": "request_body_empty", "message": "Request body must not be empty", }, } request_array_empty: summary: Request must contain at least one sample value: { "error": { "code": "request_array_empty", "message": "Request must contain at least one sample", }, } json_invalid_field: summary: Request body contains an invalid value for the 'text' field (at position 25) value: { "error": { "code": "json_invalid_field", "message": "Request body contains an invalid value for the 'text' field (at position 25)", }, } json_unknown_field: summary: Request body contains unknown field 'foo' value: { "error": { "code": "json_unknown_field", "message": "Request body contains unknown field 'foo'", }, } json_malformed: summary: Request body contains malformed JSON value: { "error": { "code": "json_malformed", "message": "Request body contains malformed JSON", }, } json_malformed_with_position: summary: Request body contains malformed JSON (at position 34) value: { "error": { "code": "json_malformed", "message": "Request body contains malformed JSON (at position 34)", }, } BadRequestCustomNormingPassTwo: description: Bad request when submitting pass two of a custom norming context content: application/json: schema: $ref: "#/components/schemas/error" examples: json_missing_text_field: summary: Each sample must contain a 'text' field value: { "error": { "code": "json_missing_text_field", "message": "Each sample must contain a 'text' field", }, } request_body_empty: summary: Request body must not be empty value: { "error": { "code": "request_body_empty", "message": "Request body must not be empty", }, } request_array_empty: summary: Request must contain at least one sample value: { "error": { "code": "request_array_empty", "message": "Request must contain at least one sample", }, } json_invalid_field: summary: Request body contains an invalid value for the 'text' field (at position 25) value: { "error": { "code": "json_invalid_field", "message": "Request body contains an invalid value for the 'text' field (at position 25)", }, } json_unknown_field: summary: Request body contains unknown field 'foo' value: { "error": { "code": "json_unknown_field", "message": "Request body contains unknown field 'foo'", }, } json_malformed: summary: Request body contains malformed JSON value: { "error": { "code": "json_malformed", "message": "Request body contains malformed JSON", }, } json_malformed_with_position: summary: Request body contains malformed JSON (at position 34) value: { "error": { "code": "json_malformed", "message": "Request body contains malformed JSON (at position 34)", }, } custom_norming_out_of_sequence: summary: "Pass two cannot be called before pass one" value: { "error": { "code": "custom_norming_out_of_sequence", "message": "Pass two cannot be called before pass one", }, } custom_norming_insufficient_data_samples: summary: "Pass one did not analyze any samples" value: { "error": { "code": "custom_norming_insufficient_data", "message": "Pass one did not analyze any samples, so pass two cannot be performed", }, } custom_norming_insufficient_data_words: summary: "Pass one did not analyze any words" value: { "error": { "code": "custom_norming_insufficient_data", "message": "Pass one did not analyze any words, so pass two cannot be performed", }, } ConflictContextNeedsUpdate: description: Norming context needs to be updated content: application/json: schema: $ref: "#/components/schemas/error" example: { "error": { "code": "norming_context_missing_framework", "message": "The requested context needs to be updated to include all of the requested frameworks" } } NotFoundNormingContext: description: Norming context not found content: application/json: schema: $ref: "#/components/schemas/error" example: { "error": { "code": "norming_context_not_found", "message": "The requested norming context was not found", }, } NotFoundCustomNormingContext: description: Custom norming context not found content: application/json: schema: $ref: "#/components/schemas/error" example: { "error": { "code": "custom_norming_context_not_found", "message": "The requested custom norming context was not found", }, } RequestEntityTooLarge: description: Request exceeded the payload size limit content: application/json: schema: $ref: "#/components/schemas/error" example: { "error": { "code": "request_body_too_large", "message": "Request body exceeds maximum allowance of 10MB", }, } TooManyRequests: description: Request rate limit exceeded content: application/json: schema: $ref: "#/components/schemas/error" example: { "error": { "code": "account_rate_limit_exceeded", "message": "Rate limit exceeded. Retry in 542.587995ms.", }, } InternalServerError: description: Internal Server Error content: application/json: schema: $ref: "#/components/schemas/error" example: { "error": { "code": "internal_server_error", "message": "An internal server error has occurred", }, } Analyze: description: Analysis of submitted text samples content: application/json: schema: type: object properties: plan_usage: type: object description: Plan usage details properties: word_limit: type: integer description: Word limit for this billing cycle words_used: type: integer description: Words used this billing cycle words_remaining: type: integer description: Words remaining this billing cycle percent_used: type: number format: float description: Percentage of the word limit used this billing cycle start_date: type: string description: Start date of this billing cycle end_date: type: string description: End date of this billing cycle example: { "word_limit": 250000, "words_used": 0, "words_remaining": 250000, "percent_used": 0, "start_date": "2024-12-30T00:00:00Z", "end_date": "2025-01-29T23:59:59Z", } results: type: array description: Analysis results items: $ref: "#/components/schemas/analysis" example: { "plan_usage": { "word_limit": 250000, "words_used": 0, "words_remaining": 250000, "percent_used": 0, "start_date": "2024-12-30T00:00:00Z", "end_date": "2025-01-29T23:59:59Z", }, "results": [ { "response_id": "de687036-7a48-4243-b541-2b983605ebab", "request_id": "req-1", "norming": "written", "version": "2.0", "summary": {}, "big_5": {}, "social_dynamics": {}, "drives": {}, "cognition": {}, "thinking_fast_slow": {}, "temporal_and_orientation": {}, "time_focus": {}, "sallee": {}, "sparse_sallee": {}, "normed_sallee": {}, "liwc15": {}, "liwc_extension": {}, "disc_dimensions": {}, "needs": {}, "values": {}, "interpersonal_circumplex": {}, }, ], } text/csv: schema: type: string format: csv example: | response_id,request_id,context,version,... 8ad721b8-ebb8-4a9a-a830-b75fb5d061d5,req-1,written,2.0,... 0f4bb886-7e09-489a-b152-3dec5ef3fc5d,req-2,written,2.0,... CustomNormingPass: description: Results of a custom norming pass content: application/json: schema: type: object properties: submitted_samples: type: integer description: The number of samples submitted filtered_blank: type: integer description: The number of samples filtered due to being blank filtered_word_count: type: integer description: The number of samples filtered due to word count filtered_punctuation: type: integer description: The number of samples filtered due to punctuation analyzed_samples: type: integer description: The number of samples analyzed analyzed_word_count: type: integer description: The number of words in the samples submitted example: { "submitted_samples": 500, "analyzed_samples": 470, "analyzed_word_count": 238290, "filtered_blank": 1, "filtered_word_count": 27, "filtered_punctuation": 2, }