const response = await api.coding.createBatchJob({ surveyIdentifier: 'CSAT-2024-Q1', surveyName: 'Customer Satisfaction', surveyDescription: 'Tracking customer satisfaction and loyalty', surveyResponses: [{ questionIdentifier: 'Q1', question: 'What did you like about our service?', responseEntries: [{ responseIdentifier: '12345', answer: 'The customer service representatives were very helpful.' }] }]});
response = api.coding.create_batch_job(
survey_identifier='CSAT-2024-Q1',
survey_name='Customer Satisfaction',
survey_description='Tracking customer satisfaction and loyalty',
survey_responses=[{
'question_identifier': 'Q1',
'question': 'What did you like about our service?',
'response_entries': [{
'response_identifier': '12345',
'answer': 'The customer service representatives were very helpful.'
}]
}]
)
curl --request POST \
--url https://surveys.getaftercare.com/api/v1/coding \
--header 'Content-Type: application/json' \
--header 'X-Aftercare-Key: <api-key>' \
--data '
{
"surveyIdentifier": "CSAT-2024-Q1",
"surveyName": "Customer Satisfaction",
"surveyDescription": "Tracking customer satisfaction and loyalty for the XYZ Company",
"surveyResponses": [
{
"questionIdentifier": "Q1",
"question": "What did you like about our service?",
"questionContext": "I want to understand what aspects of our customer experience are working well.",
"responseEntries": [
{
"responseIdentifier": "12345",
"answer": "The customer service representatives were very helpful and resolved my issue quickly."
},
{
"responseIdentifier": "12346",
"answer": "I liked the easy-to-use website and fast delivery."
}
],
"codingOptions": {
"maxLevels": 3,
"maxCodesPerLevel": [
8,
5,
3
],
"minResponsesPerCode": 2
}
}
]
}
'
<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://surveys.getaftercare.com/api/v1/coding",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'surveyIdentifier' => 'CSAT-2024-Q1',
'surveyName' => 'Customer Satisfaction',
'surveyDescription' => 'Tracking customer satisfaction and loyalty for the XYZ Company',
'surveyResponses' => [
[
'questionIdentifier' => 'Q1',
'question' => 'What did you like about our service?',
'questionContext' => 'I want to understand what aspects of our customer experience are working well.',
'responseEntries' => [
[
'responseIdentifier' => '12345',
'answer' => 'The customer service representatives were very helpful and resolved my issue quickly.'
],
[
'responseIdentifier' => '12346',
'answer' => 'I liked the easy-to-use website and fast delivery.'
]
],
'codingOptions' => [
'maxLevels' => 3,
'maxCodesPerLevel' => [
8,
5,
3
],
'minResponsesPerCode' => 2
]
]
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-Aftercare-Key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://surveys.getaftercare.com/api/v1/coding"
payload := strings.NewReader("{\n \"surveyIdentifier\": \"CSAT-2024-Q1\",\n \"surveyName\": \"Customer Satisfaction\",\n \"surveyDescription\": \"Tracking customer satisfaction and loyalty for the XYZ Company\",\n \"surveyResponses\": [\n {\n \"questionIdentifier\": \"Q1\",\n \"question\": \"What did you like about our service?\",\n \"questionContext\": \"I want to understand what aspects of our customer experience are working well.\",\n \"responseEntries\": [\n {\n \"responseIdentifier\": \"12345\",\n \"answer\": \"The customer service representatives were very helpful and resolved my issue quickly.\"\n },\n {\n \"responseIdentifier\": \"12346\",\n \"answer\": \"I liked the easy-to-use website and fast delivery.\"\n }\n ],\n \"codingOptions\": {\n \"maxLevels\": 3,\n \"maxCodesPerLevel\": [\n 8,\n 5,\n 3\n ],\n \"minResponsesPerCode\": 2\n }\n }\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-Aftercare-Key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}
HttpResponse<String> response = Unirest.post("https://surveys.getaftercare.com/api/v1/coding")
.header("X-Aftercare-Key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"surveyIdentifier\": \"CSAT-2024-Q1\",\n \"surveyName\": \"Customer Satisfaction\",\n \"surveyDescription\": \"Tracking customer satisfaction and loyalty for the XYZ Company\",\n \"surveyResponses\": [\n {\n \"questionIdentifier\": \"Q1\",\n \"question\": \"What did you like about our service?\",\n \"questionContext\": \"I want to understand what aspects of our customer experience are working well.\",\n \"responseEntries\": [\n {\n \"responseIdentifier\": \"12345\",\n \"answer\": \"The customer service representatives were very helpful and resolved my issue quickly.\"\n },\n {\n \"responseIdentifier\": \"12346\",\n \"answer\": \"I liked the easy-to-use website and fast delivery.\"\n }\n ],\n \"codingOptions\": {\n \"maxLevels\": 3,\n \"maxCodesPerLevel\": [\n 8,\n 5,\n 3\n ],\n \"minResponsesPerCode\": 2\n }\n }\n ]\n}")
.asString();
require 'uri'
require 'net/http'
url = URI("https://surveys.getaftercare.com/api/v1/coding")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-Aftercare-Key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"surveyIdentifier\": \"CSAT-2024-Q1\",\n \"surveyName\": \"Customer Satisfaction\",\n \"surveyDescription\": \"Tracking customer satisfaction and loyalty for the XYZ Company\",\n \"surveyResponses\": [\n {\n \"questionIdentifier\": \"Q1\",\n \"question\": \"What did you like about our service?\",\n \"questionContext\": \"I want to understand what aspects of our customer experience are working well.\",\n \"responseEntries\": [\n {\n \"responseIdentifier\": \"12345\",\n \"answer\": \"The customer service representatives were very helpful and resolved my issue quickly.\"\n },\n {\n \"responseIdentifier\": \"12346\",\n \"answer\": \"I liked the easy-to-use website and fast delivery.\"\n }\n ],\n \"codingOptions\": {\n \"maxLevels\": 3,\n \"maxCodesPerLevel\": [\n 8,\n 5,\n 3\n ],\n \"minResponsesPerCode\": 2\n }\n }\n ]\n}"
response = http.request(request)
puts response.read_body
{
"code": "GATEWAY_TIMEOUT",
"message": "The server took too long to respond"
}
AI Coding
Create AI Coding Batch Job
Analyze survey responses and code them into hierarchical categories
POST
/
api
/
v1
/
coding
JavaScript
const response = await api.coding.createBatchJob({ surveyIdentifier: 'CSAT-2024-Q1', surveyName: 'Customer Satisfaction', surveyDescription: 'Tracking customer satisfaction and loyalty', surveyResponses: [{ questionIdentifier: 'Q1', question: 'What did you like about our service?', responseEntries: [{ responseIdentifier: '12345', answer: 'The customer service representatives were very helpful.' }] }]});
response = api.coding.create_batch_job(
survey_identifier='CSAT-2024-Q1',
survey_name='Customer Satisfaction',
survey_description='Tracking customer satisfaction and loyalty',
survey_responses=[{
'question_identifier': 'Q1',
'question': 'What did you like about our service?',
'response_entries': [{
'response_identifier': '12345',
'answer': 'The customer service representatives were very helpful.'
}]
}]
)
curl --request POST \
--url https://surveys.getaftercare.com/api/v1/coding \
--header 'Content-Type: application/json' \
--header 'X-Aftercare-Key: <api-key>' \
--data '
{
"surveyIdentifier": "CSAT-2024-Q1",
"surveyName": "Customer Satisfaction",
"surveyDescription": "Tracking customer satisfaction and loyalty for the XYZ Company",
"surveyResponses": [
{
"questionIdentifier": "Q1",
"question": "What did you like about our service?",
"questionContext": "I want to understand what aspects of our customer experience are working well.",
"responseEntries": [
{
"responseIdentifier": "12345",
"answer": "The customer service representatives were very helpful and resolved my issue quickly."
},
{
"responseIdentifier": "12346",
"answer": "I liked the easy-to-use website and fast delivery."
}
],
"codingOptions": {
"maxLevels": 3,
"maxCodesPerLevel": [
8,
5,
3
],
"minResponsesPerCode": 2
}
}
]
}
'
<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://surveys.getaftercare.com/api/v1/coding",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'surveyIdentifier' => 'CSAT-2024-Q1',
'surveyName' => 'Customer Satisfaction',
'surveyDescription' => 'Tracking customer satisfaction and loyalty for the XYZ Company',
'surveyResponses' => [
[
'questionIdentifier' => 'Q1',
'question' => 'What did you like about our service?',
'questionContext' => 'I want to understand what aspects of our customer experience are working well.',
'responseEntries' => [
[
'responseIdentifier' => '12345',
'answer' => 'The customer service representatives were very helpful and resolved my issue quickly.'
],
[
'responseIdentifier' => '12346',
'answer' => 'I liked the easy-to-use website and fast delivery.'
]
],
'codingOptions' => [
'maxLevels' => 3,
'maxCodesPerLevel' => [
8,
5,
3
],
'minResponsesPerCode' => 2
]
]
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-Aftercare-Key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://surveys.getaftercare.com/api/v1/coding"
payload := strings.NewReader("{\n \"surveyIdentifier\": \"CSAT-2024-Q1\",\n \"surveyName\": \"Customer Satisfaction\",\n \"surveyDescription\": \"Tracking customer satisfaction and loyalty for the XYZ Company\",\n \"surveyResponses\": [\n {\n \"questionIdentifier\": \"Q1\",\n \"question\": \"What did you like about our service?\",\n \"questionContext\": \"I want to understand what aspects of our customer experience are working well.\",\n \"responseEntries\": [\n {\n \"responseIdentifier\": \"12345\",\n \"answer\": \"The customer service representatives were very helpful and resolved my issue quickly.\"\n },\n {\n \"responseIdentifier\": \"12346\",\n \"answer\": \"I liked the easy-to-use website and fast delivery.\"\n }\n ],\n \"codingOptions\": {\n \"maxLevels\": 3,\n \"maxCodesPerLevel\": [\n 8,\n 5,\n 3\n ],\n \"minResponsesPerCode\": 2\n }\n }\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-Aftercare-Key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}
HttpResponse<String> response = Unirest.post("https://surveys.getaftercare.com/api/v1/coding")
.header("X-Aftercare-Key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"surveyIdentifier\": \"CSAT-2024-Q1\",\n \"surveyName\": \"Customer Satisfaction\",\n \"surveyDescription\": \"Tracking customer satisfaction and loyalty for the XYZ Company\",\n \"surveyResponses\": [\n {\n \"questionIdentifier\": \"Q1\",\n \"question\": \"What did you like about our service?\",\n \"questionContext\": \"I want to understand what aspects of our customer experience are working well.\",\n \"responseEntries\": [\n {\n \"responseIdentifier\": \"12345\",\n \"answer\": \"The customer service representatives were very helpful and resolved my issue quickly.\"\n },\n {\n \"responseIdentifier\": \"12346\",\n \"answer\": \"I liked the easy-to-use website and fast delivery.\"\n }\n ],\n \"codingOptions\": {\n \"maxLevels\": 3,\n \"maxCodesPerLevel\": [\n 8,\n 5,\n 3\n ],\n \"minResponsesPerCode\": 2\n }\n }\n ]\n}")
.asString();
require 'uri'
require 'net/http'
url = URI("https://surveys.getaftercare.com/api/v1/coding")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-Aftercare-Key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"surveyIdentifier\": \"CSAT-2024-Q1\",\n \"surveyName\": \"Customer Satisfaction\",\n \"surveyDescription\": \"Tracking customer satisfaction and loyalty for the XYZ Company\",\n \"surveyResponses\": [\n {\n \"questionIdentifier\": \"Q1\",\n \"question\": \"What did you like about our service?\",\n \"questionContext\": \"I want to understand what aspects of our customer experience are working well.\",\n \"responseEntries\": [\n {\n \"responseIdentifier\": \"12345\",\n \"answer\": \"The customer service representatives were very helpful and resolved my issue quickly.\"\n },\n {\n \"responseIdentifier\": \"12346\",\n \"answer\": \"I liked the easy-to-use website and fast delivery.\"\n }\n ],\n \"codingOptions\": {\n \"maxLevels\": 3,\n \"maxCodesPerLevel\": [\n 8,\n 5,\n 3\n ],\n \"minResponsesPerCode\": 2\n }\n }\n ]\n}"
response = http.request(request)
puts response.read_body
The results structure depends on the status value. If the job is successful, the results will be a list of question codes with a hierarchical tree of codes and subcodes. If the job fails, the results will be the error details.
Success Response
Error Response
Show child attributes
{"docsConfig":{"$schema":"https://mintlify.com/docs.json","theme":"mint","name":"Starter Kit","colors":{"primary":"#0D9373","light":"#07C983","dark":"#0D9373"},"favicon":"/favicon.svg","logo":{"light":"https://mintcdn.com/aftercare/e1mHkmMes6jz1ugc/logo/logo.png?fit=max\u0026auto=format\u0026n=e1mHkmMes6jz1ugc\u0026q=85\u0026s=30ff22f1cb78b1ef23d5d22b8bb02d36","dark":"https://mintcdn.com/aftercare/e1mHkmMes6jz1ugc/logo/logo-white.png?fit=max\u0026auto=format\u0026n=e1mHkmMes6jz1ugc\u0026q=85\u0026s=d718f8b2f395079a8cd8f01bf7ac370b"},"navbar":{"links":[{"label":"Support","href":"mailto:anand@getaftercare.com"}],"primary":{"type":"button","label":"Dashboard","href":"https://surveys.getaftercare.com"}},"footer":{"socials":{"x":"https://x.com/mintlify","github":"https://github.com/mintlify","linkedin":"https://linkedin.com/company/mintlify"}},"styling":{"latex":false},"navigation":{"global":{"anchors":[{"anchor":"Discord","href":"https://discord.gg/Rn2yZ3He","icon":"discord"},{"anchor":"Slack","href":"https://join.slack.com/t/aftercareusers/shared_invite/zt-30ezqu0sy-0YybIITmOcx5BEpdR3mWCQ","icon":"slack"}]},"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"aftercare","hasAudioNarration":false,"actualSubdomain":"aftercare","customDomains":["docs.getaftercare.com"],"gitSource":{"type":"github","owner":"kontractify","repo":"docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"chroma":{"liveDeploymentHistoryId":"6a21e67691916e8ce404ee89","collectionId":"9a8164fe-a47e-4866-83ed-e69959ac3202","schemaVersion":"v2"},"entitlements":{},"buildId":"6a21e67691916e8ce404ee89:success","clientVersion":"0.0.4044","searchFilterCounts":[{"language":"default","tag":"Documentation","count":12},{"language":"default","tag":"Get Started","count":8},{"language":"default","tag":"API Reference","count":8},{"language":"default","tag":"Integrations","count":5},{"language":"default","tag":"Core Products","count":4},{"language":"default","tag":"AI Coding","count":3},{"language":"default","tag":"AI Data Quality Evaluation","count":3},{"language":"default","tag":"AI Followup Generation","count":1},{"language":"default","tag":"API Documentation","count":1}]},"assistantConfig":{},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"byok-sep-25","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"vite-origin","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-updated-9-15","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[],"page":{"pagePath":"api-reference/coding/create","slug":"/api-reference/coding/create","pageMetadata":{"title":"Create AI Coding Batch Job","openapi":"POST /api/v1/coding","description":"Analyze survey responses and code them into hierarchical categories","href":"/api-reference/coding/create","hidden":false},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Analyze survey responses and code them into hierarchical categories\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){return _jsx(_Fragment,{})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Create AI Coding Batch Job","openapi":"POST /api/v1/coding","description":"Analyze survey responses and code them into hierarchical categories","href":"/api-reference/coding/create","hidden":false}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"tags":["Coding"],"summary":"Create a batch coding job","description":"Analyze survey responses and code them into hierarchical categories","operationId":"createBatchCodingJob","security":["b97ebb17-358a-436e-a9c6-dbd5b45b628c"],"x-codeSamples":[{"lang":"JavaScript","source":"const response = await api.coding.createBatchJob({\n surveyIdentifier: 'CSAT-2024-Q1',\n surveyName: 'Customer Satisfaction',\n surveyDescription: 'Tracking customer satisfaction and loyalty',\n surveyResponses: [{\n questionIdentifier: 'Q1',\n question: 'What did you like about our service?',\n responseEntries: [{\n responseIdentifier: '12345',\n answer: 'The customer service representatives were very helpful.'\n }]\n }]\n});"},{"lang":"Python","source":"response = api.coding.create_batch_job(\n survey_identifier='CSAT-2024-Q1',\n survey_name='Customer Satisfaction',\n survey_description='Tracking customer satisfaction and loyalty',\n survey_responses=[{\n 'question_identifier': 'Q1',\n 'question': 'What did you like about our service?',\n 'response_entries': [{\n 'response_identifier': '12345',\n 'answer': 'The customer service representatives were very helpful.'\n }]\n }]\n)"}],"requestBody":"6a57f812-833e-4b75-a63c-84b998a174e6","responses":{"202":"eaecd97c-bc14-4913-b313-200579a15e8d","400":"3def8ef4-9033-4f23-88ef-439ac4190159","403":"0863a172-4a20-4987-8218-0219ca8a0c57","500":"668aa35f-f9f5-4e03-9354-1b5e95107280","504":"a4bb84b7-a92e-4ffc-9e5c-ca3f075a01fe"},"method":"post","type":"path","servers":["e7cb3cb4-2e43-4c33-aa9b-d8ac8fd02c5c","7e3bd66b-b069-43c1-a556-b9b888563097"],"path":"/api/v1/coding","baseUrlOptions":["https://surveys.getaftercare.com","https://staging.aftercareai.com"],"title":"Create a batch coding job","codeSamples":[{"lang":"JavaScript","source":"const response = await api.coding.createBatchJob({\n surveyIdentifier: 'CSAT-2024-Q1',\n surveyName: 'Customer Satisfaction',\n surveyDescription: 'Tracking customer satisfaction and loyalty',\n surveyResponses: [{\n questionIdentifier: 'Q1',\n question: 'What did you like about our service?',\n responseEntries: [{\n responseIdentifier: '12345',\n answer: 'The customer service representatives were very helpful.'\n }]\n }]\n});"},{"lang":"Python","source":"response = api.coding.create_batch_job(\n survey_identifier='CSAT-2024-Q1',\n survey_name='Customer Satisfaction',\n survey_description='Tracking customer satisfaction and loyalty',\n survey_responses=[{\n 'question_identifier': 'Q1',\n 'question': 'What did you like about our service?',\n 'response_entries': [{\n 'response_identifier': '12345',\n 'answer': 'The customer service representatives were very helpful.'\n }]\n }]\n)"}],"requiredOnlyExamples":false,"requestExampleType":"codeSamples","responseExampleType":"generated"},"dependencies":{"parameters":{},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["surveyIdentifier","surveyResponses"],"properties":{"surveyIdentifier":{"type":"string","description":"Unique string to identify the survey.","example":"CSAT-2024-Q1","isRequired":true,"uniqueKey":"surveyIdentifier","typeLabel":"string"},"surveyResponses":{"type":"array","description":"Full collection of survey responses by question.","items":{"type":"object","required":["questionIdentifier","question","brandContext","responseEntries"],"properties":{"questionIdentifier":{"type":"string","description":"Unique identifier for the question","example":"q1","isRequired":true,"uniqueKey":"surveyResponses.items.[INDEX].questionIdentifier","typeLabel":"string"},"question":{"type":"string","description":"The question that was asked","example":"What do you like about our product?","isRequired":true,"uniqueKey":"surveyResponses.items.[INDEX].question","typeLabel":"string"},"brandContext":{"type":"object","required":["industryDescription","brands"],"properties":{"industryDescription":{"type":"string","description":"Description of the industry the brand is in","example":"Consumer electronics","isRequired":true,"uniqueKey":"surveyResponses.items.[INDEX].brandContext.industryDescription","typeLabel":"string"},"brands":{"type":"array","description":"Common names for the brand and any variations","items":{"type":"object","required":["name"],"properties":{"name":{"type":"string","description":"Canonical brand name","example":"Acme Corp","isRequired":true,"uniqueKey":"surveyResponses.items.[INDEX].brandContext.brands.items.[INDEX].name","typeLabel":"string"},"variations":{"type":"array","items":{"type":"string","uniqueKey":"surveyResponses.items.[INDEX].brandContext.brands.items.[INDEX].variations.items.[INDEX]","typeLabel":"string"},"description":"Alternative names or spellings","example":["ACME","Acme Corporation"],"uniqueKey":"surveyResponses.items.[INDEX].brandContext.brands.items.[INDEX].variations","typeLabel":"string[]"}},"uniqueKey":"surveyResponses.items.[INDEX].brandContext.brands.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"surveyResponses.items.[INDEX].brandContext.brands","typeLabel":"object[]"}},"description":"Additional context about the brands for this question","isRequired":true,"uniqueKey":"surveyResponses.items.[INDEX].brandContext","typeLabel":"object"},"responseEntries":{"type":"array","items":{"type":"object","required":["responseIdentifier","answer"],"properties":{"responseIdentifier":{"type":"string","description":"Unique identifier for this response entry","example":"resp-123","isRequired":true,"uniqueKey":"surveyResponses.items.[INDEX].responseEntries.items.[INDEX].responseIdentifier","typeLabel":"string"},"answer":{"type":"string","description":"The respondent's answer to the question","example":"I really enjoy the battery life.","isRequired":true,"uniqueKey":"surveyResponses.items.[INDEX].responseEntries.items.[INDEX].answer","typeLabel":"string"},"followupResponses":{"type":"array","description":"Any follow-up question/answer pairs for this response","items":{"type":"object","required":["question","answer"],"properties":{"question":{"type":"string","description":"The follow-up question that was asked","example":"What features of our product stood out most?","isRequired":true,"uniqueKey":"surveyResponses.items.[INDEX].responseEntries.items.[INDEX].followupResponses.items.[INDEX].question","typeLabel":"string"},"answer":{"type":"string","description":"The answer provided to the follow-up","example":"I loved the night-vision mode.","isRequired":true,"uniqueKey":"surveyResponses.items.[INDEX].responseEntries.items.[INDEX].followupResponses.items.[INDEX].answer","typeLabel":"string"}},"uniqueKey":"surveyResponses.items.[INDEX].responseEntries.items.[INDEX].followupResponses.items.[INDEX]","typeLabel":"object"},"uniqueKey":"surveyResponses.items.[INDEX].responseEntries.items.[INDEX].followupResponses","typeLabel":"object[]"}},"uniqueKey":"surveyResponses.items.[INDEX].responseEntries.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"surveyResponses.items.[INDEX].responseEntries","typeLabel":"object[]"}},"uniqueKey":"surveyResponses.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"surveyResponses","typeLabel":"object[]"},"surveyName":{"type":"string","description":"Optional name for the survey. This is used to identify the survey in the Aftercare platform.","example":"Customer Satisfaction","uniqueKey":"surveyName","typeLabel":"string"},"surveyDescription":{"type":"string","description":"An optional description of the survey's purpose, used to help the AI understand the context behind thesurvey better.","example":"Quarterly survey tracking customer satisfaction and loyalty for the XYZ Company which sells xyz products","uniqueKey":"surveyDescription","typeLabel":"string"}},"uniqueKey":"","typeLabel":"object"},"example":{"surveyIdentifier":"CSAT-2024-Q1","surveyName":"Customer Satisfaction","surveyDescription":"Tracking customer satisfaction and loyalty for the XYZ Company","surveyResponses":[{"questionIdentifier":"Q1","question":"What did you like about our service?","questionContext":"I want to understand what aspects of our customer experience are working well.","responseEntries":[{"responseIdentifier":"12345","answer":"The customer service representatives were very helpful and resolved my issue quickly."},{"responseIdentifier":"12346","answer":"I liked the easy-to-use website and fast delivery."}],"codingOptions":{"maxLevels":3,"maxCodesPerLevel":[8,5,3],"minResponsesPerCode":2}}]},"examples":{"Example":{"title":"Example","value":{"surveyIdentifier":"CSAT-2024-Q1","surveyName":"Customer Satisfaction","surveyDescription":"Tracking customer satisfaction and loyalty for the XYZ Company","surveyResponses":[{"questionIdentifier":"Q1","question":"What did you like about our service?","questionContext":"I want to understand what aspects of our customer experience are working well.","responseEntries":[{"responseIdentifier":"12345","answer":"The customer service representatives were very helpful and resolved my issue quickly."},{"responseIdentifier":"12346","answer":"I liked the easy-to-use website and fast delivery."}],"codingOptions":{"maxLevels":3,"maxCodesPerLevel":[8,5,3],"minResponsesPerCode":2}}]}}},"exampleType":"examples"}},"exampleType":"examples"},"responses":{"eaecd97c-bc14-4913-b313-200579a15e8d":{"description":"Batch coding job accepted","content":{"application/json":{"schema":{"type":"object","required":["batchJobId","surveyIdentifier","status"],"properties":{"batchJobId":{"type":"string","description":"Unique identifier for the coding job","example":"123e4567-e89b-12d3-a456-426614174000","isRequired":true,"uniqueKey":"batchJobId","typeLabel":"string"},"surveyIdentifier":{"type":"string","description":"Unique identifier for the survey","example":"CSAT-2024-Q1","isRequired":true,"uniqueKey":"surveyIdentifier","typeLabel":"string"},"status":{"type":"string","enum":["queued","processing","completed","partial_failure","total_failure"],"description":"Status of the batch job that determines the structure of results","isRequired":true,"uniqueKey":"status","typeLabel":"enum\u003cstring>"},"results":{"oneOf":[{"type":"object","title":"Success Response","description":"The results structure depends on the status value. If the job is successful, the results will be a list of question codes with a hierarchical tree of codes and subcodes. If the job fails, the results will be the error details.","required":["completedAt","questionCodes"],"properties":{"completedAt":{"type":"string","format":"date-time","description":"When the batch job completed processing","example":"2024-03-12T15:30:45Z","isRequired":true,"uniqueKey":"results.oneOf.0.completedAt","typeLabel":"string\u003cdate-time>"},"questionCodes":{"type":"array","description":"Coding results organized by question identifier. Each question will have its own hierarchical category tree.","items":{"type":"object","required":["questionIdentifier","question","responseCodes"],"properties":{"questionIdentifier":{"type":"string","description":"Unique identifier for the question.","example":"Q1","isRequired":true,"uniqueKey":"results.oneOf.0.questionCodes.items.[INDEX].questionIdentifier","typeLabel":"string"},"question":{"type":"string","description":"The question text.","example":"What did you like about our service?","isRequired":true,"uniqueKey":"results.oneOf.0.questionCodes.items.[INDEX].question","typeLabel":"string"},"responseCodes":{"type":"array","description":"Hierarchical code tree for this specific question. Codes can have subcodes forming a tree structure.","items":{"type":"object","required":["id","label","responses","subCodes"],"properties":{"id":{"type":"integer","description":"Unique identifier for this code","example":1,"isRequired":true,"uniqueKey":"results.oneOf.0.questionCodes.items.[INDEX].responseCodes.items.[INDEX].id","typeLabel":"integer"},"label":{"type":"string","description":"Label of the code","example":"Customer Service Quality","isRequired":true,"uniqueKey":"results.oneOf.0.questionCodes.items.[INDEX].responseCodes.items.[INDEX].label","typeLabel":"string"},"responses":{"type":"array","description":"The responses that were classified into this code","items":{"type":"object","required":["responseIdentifier","answer"],"properties":{"responseIdentifier":{"type":"string","description":"Unique identifier for this response entry","example":"resp-123","isRequired":true,"uniqueKey":"results.oneOf.0.questionCodes.items.[INDEX].responseCodes.items.[INDEX].responses.items.[INDEX].responseIdentifier","typeLabel":"string"},"answer":{"type":"string","description":"The respondent's answer to the question","example":"I really enjoy the battery life.","isRequired":true,"uniqueKey":"results.oneOf.0.questionCodes.items.[INDEX].responseCodes.items.[INDEX].responses.items.[INDEX].answer","typeLabel":"string"},"followupResponses":{"type":"array","description":"Any follow-up question/answer pairs for this response","items":{"type":"object","required":["question","answer"],"properties":{"question":{"type":"string","description":"The follow-up question that was asked","example":"What features of our product stood out most?","isRequired":true,"uniqueKey":"results.oneOf.0.questionCodes.items.[INDEX].responseCodes.items.[INDEX].responses.items.[INDEX].followupResponses.items.[INDEX].question","typeLabel":"string"},"answer":{"type":"string","description":"The answer provided to the follow-up","example":"I loved the night-vision mode.","isRequired":true,"uniqueKey":"results.oneOf.0.questionCodes.items.[INDEX].responseCodes.items.[INDEX].responses.items.[INDEX].followupResponses.items.[INDEX].answer","typeLabel":"string"}},"uniqueKey":"results.oneOf.0.questionCodes.items.[INDEX].responseCodes.items.[INDEX].responses.items.[INDEX].followupResponses.items.[INDEX]","typeLabel":"object"},"uniqueKey":"results.oneOf.0.questionCodes.items.[INDEX].responseCodes.items.[INDEX].responses.items.[INDEX].followupResponses","typeLabel":"object[]"}},"uniqueKey":"results.oneOf.0.questionCodes.items.[INDEX].responseCodes.items.[INDEX].responses.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"results.oneOf.0.questionCodes.items.[INDEX].responseCodes.items.[INDEX].responses","typeLabel":"object[]"},"subCodes":{"type":"array","description":"More specific codes classified under this code that can be used to further classify the responses","items":{"$circularRef":"7a07e527-c9a4-4a01-86dc-dbef6cd1ef60"},"isRequired":true,"uniqueKey":"results.oneOf.0.questionCodes.items.[INDEX].responseCodes.items.[INDEX].subCodes","typeLabel":"array"}},"uniqueKey":"results.oneOf.0.questionCodes.items.[INDEX].responseCodes.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"results.oneOf.0.questionCodes.items.[INDEX].responseCodes","typeLabel":"object[]"}},"uniqueKey":"results.oneOf.0.questionCodes.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"results.oneOf.0.questionCodes","typeLabel":"object[]"},"nextCursor":{"oneOf":[{"type":"string","description":"Cursor for the next page of results. Null if there are no more results.","example":null,"uniqueKey":"results.oneOf.0.nextCursor.oneOf.0","typeLabel":"string"},{"type":"null","description":"Cursor for the next page of results. Null if there are no more results.","example":null,"uniqueKey":"results.oneOf.0.nextCursor.oneOf.1","typeLabel":"null"}],"uniqueKey":"results.oneOf.0.nextCursor","typeLabel":"string | null"}},"uniqueKey":"results.oneOf.0","typeLabel":"Success Response · object"},{"type":"object","title":"Error Response","description":"The results structure depends on the status value. If the job is successful, the results will be a list of question codes with a hierarchical tree of codes and subcodes. If the job fails, the results will be the error details.","required":["code","message"],"properties":{"code":{"type":"string","description":"Error code identifying the type of failure","example":"PROCESSING_ERROR","isRequired":true,"uniqueKey":"results.oneOf.1.code","typeLabel":"string"},"message":{"type":"string","description":"Description of the error","example":"Failed to process survey responses","isRequired":true,"uniqueKey":"results.oneOf.1.message","typeLabel":"string"}},"uniqueKey":"results.oneOf.1","typeLabel":"Error Response · object"}],"uniqueKey":"results","typeLabel":"Success Response · object | Error Response · object"}},"uniqueKey":"","typeLabel":"object"},"example":{"batchJobId":"123e4567-e89b-12d3-a456-426614174000","surveyIdentifier":"CSAT-2024-Q1","status":"queued","results":null},"examples":{"Example":{"title":"Example","value":{"batchJobId":"123e4567-e89b-12d3-a456-426614174000","surveyIdentifier":"CSAT-2024-Q1","status":"queued","results":null}}},"exampleType":"examples"}},"exampleType":"examples"},"3def8ef4-9033-4f23-88ef-439ac4190159":{"description":"Bad request - invalid input parameters","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Error code","example":"INVALID_REQUEST","isRequired":true,"uniqueKey":"code","typeLabel":"string"},"message":{"type":"string","description":"Error message","example":"Invalid request parameters","isRequired":true,"uniqueKey":"message","typeLabel":"string"},"details":{"type":"object","description":"Additional error details","example":{"question":"Question is required"},"uniqueKey":"details","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"example":{"code":"INVALID_REQUEST","message":"Invalid request parameters","details":{"surveyIdentifier":"Survey identifier is required"}},"examples":{"Example":{"title":"Example","value":{"code":"INVALID_REQUEST","message":"Invalid request parameters","details":{"surveyIdentifier":"Survey identifier is required"}}}},"exampleType":"examples"}},"exampleType":"examples"},"0863a172-4a20-4987-8218-0219ca8a0c57":{"description":"Forbidden - Missing or invalid API key","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Error code","example":"INVALID_REQUEST","isRequired":true,"uniqueKey":"code","typeLabel":"string"},"message":{"type":"string","description":"Error message","example":"Invalid request parameters","isRequired":true,"uniqueKey":"message","typeLabel":"string"},"details":{"type":"object","description":"Additional error details","example":{"question":"Question is required"},"uniqueKey":"details","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"example":{"code":"INVALID_API_KEY","message":"Invalid or missing API key"},"examples":{"Example":{"title":"Example","value":{"code":"INVALID_API_KEY","message":"Invalid or missing API key"}}},"exampleType":"examples"}},"exampleType":"examples"},"668aa35f-f9f5-4e03-9354-1b5e95107280":{"description":"Internal server error","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Error code","example":"INVALID_REQUEST","isRequired":true,"uniqueKey":"code","typeLabel":"string"},"message":{"type":"string","description":"Error message","example":"Invalid request parameters","isRequired":true,"uniqueKey":"message","typeLabel":"string"},"details":{"type":"object","description":"Additional error details","example":{"question":"Question is required"},"uniqueKey":"details","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"example":{"code":"INTERNAL_ERROR","message":"An unexpected error occurred"},"examples":{"Example":{"title":"Example","value":{"code":"INTERNAL_ERROR","message":"An unexpected error occurred"}}},"exampleType":"examples"}},"exampleType":"examples"},"a4bb84b7-a92e-4ffc-9e5c-ca3f075a01fe":{"description":"Gateway timeout","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Error code","example":"INVALID_REQUEST","isRequired":true,"uniqueKey":"code","typeLabel":"string"},"message":{"type":"string","description":"Error message","example":"Invalid request parameters","isRequired":true,"uniqueKey":"message","typeLabel":"string"},"details":{"type":"object","description":"Additional error details","example":{"question":"Question is required"},"uniqueKey":"details","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"example":{"code":"GATEWAY_TIMEOUT","message":"The server took too long to respond"},"examples":{"Example":{"title":"Example","value":{"code":"GATEWAY_TIMEOUT","message":"The server took too long to respond"}}},"exampleType":"examples"}},"exampleType":"examples"}},"security":{"b97ebb17-358a-436e-a9c6-dbd5b45b628c":{"ApiKeyAuth":{"type":"apiKey","in":"header","name":"X-Aftercare-Key","description":"API key for authentication","scopes":[]}}},"servers":{"e7cb3cb4-2e43-4c33-aa9b-d8ac8fd02c5c":{"url":"https://surveys.getaftercare.com","description":"Production server"},"7e3bd66b-b069-43c1-a556-b9b888563097":{"url":"https://staging.aftercareai.com","description":"Staging server"}},"schemas":{"7a07e527-c9a4-4a01-86dc-dbef6cd1ef60":{"type":"object","required":["id","label","responses","subCodes"],"properties":{"id":{"type":"integer","description":"Unique identifier for this code","example":1,"isRequired":true},"label":{"type":"string","description":"Label of the code","example":"Customer Service Quality","isRequired":true},"responses":{"type":"array","description":"The responses that were classified into this code","items":{"type":"object","required":["responseIdentifier","answer"],"properties":{"responseIdentifier":{"type":"string","description":"Unique identifier for this response entry","example":"resp-123","isRequired":true},"answer":{"type":"string","description":"The respondent's answer to the question","example":"I really enjoy the battery life.","isRequired":true},"followupResponses":{"type":"array","description":"Any follow-up question/answer pairs for this response","items":{"type":"object","required":["question","answer"],"properties":{"question":{"type":"string","description":"The follow-up question that was asked","example":"What features of our product stood out most?","isRequired":true},"answer":{"type":"string","description":"The answer provided to the follow-up","example":"I loved the night-vision mode.","isRequired":true}}}}}},"isRequired":true},"subCodes":{"type":"array","description":"More specific codes classified under this code that can be used to further classify the responses","items":{"$circularRef":"7a07e527-c9a4-4a01-86dc-dbef6cd1ef60"},"isRequired":true}}}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"apiKey","in":"header","name":"X-Aftercare-Key","description":"API key for authentication","scopes":[]},"schema":{"title":"X-Aftercare-Key","type":"string","description":"API key for authentication","isRequired":true,"typeLabel":"string","deprecated":false},"schemeName":"ApiKeyAuth","name":"X-Aftercare-Key"}],"title":"ApiKeyAuth"}]},"originalFileLocation":"api-reference/openapi.json"},"subdomain":"aftercare","siteName":"Starter Kit","title":"Create AI Coding Batch Job - Starter Kit","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-01-07T05:43:31.554Z","originalFileLocation":"api-reference/coding/create.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Analyze survey responses and code them into hierarchical categories\">\u003cmeta data-mint-head name=\"application-name\" content=\"Starter Kit\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/aftercare/IkN8yax3vlOiM3z-/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/aftercare/IkN8yax3vlOiM3z-/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/aftercare/IkN8yax3vlOiM3z-/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/aftercare/IkN8yax3vlOiM3z-/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/aftercare/IkN8yax3vlOiM3z-/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/aftercare/IkN8yax3vlOiM3z-/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/aftercare/IkN8yax3vlOiM3z-/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/aftercare/IkN8yax3vlOiM3z-/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/aftercare/IkN8yax3vlOiM3z-/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Create AI Coding Batch Job - Starter Kit\">\u003cmeta data-mint-head property=\"og:description\" content=\"Analyze survey responses and code them into hierarchical categories\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Starter Kit\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.getaftercare.com/api-reference/coding/create\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://aftercare.mintlify.app/_mintlify/api/og/v2?division=AI+Coding\u0026amp;title=Create+AI+Coding+Batch+Job\u0026amp;description=Analyze+survey+responses+and+code+them+into+hierarchical+categories\u0026amp;theme=c059d748de58519dea85b6a7\u0026amp;signature=8abc163945b3a0a7a1ddf601f2d56a86b9784963f103566378194bf36caafc45\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Create AI Coding Batch Job - Starter Kit\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Analyze survey responses and code them into hierarchical categories\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://aftercare.mintlify.app/_mintlify/api/og/v2?division=AI+Coding\u0026amp;title=Create+AI+Coding+Batch+Job\u0026amp;description=Analyze+survey+responses+and+code+them+into+hierarchical+categories\u0026amp;theme=c059d748de58519dea85b6a7\u0026amp;signature=8abc163945b3a0a7a1ddf601f2d56a86b9784963f103566378194bf36caafc45\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/aftercare/IkN8yax3vlOiM3z-/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Starter Kit\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#0D9373\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.getaftercare.com/api-reference/coding/create\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/coding/create.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.getaftercare.com/#organization\",\"name\":\"Starter Kit\",\"url\":\"https://docs.getaftercare.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/aftercare/e1mHkmMes6jz1ugc/logo/logo.png?fit=max\u0026auto=format\u0026n=e1mHkmMes6jz1ugc\u0026q=85\u0026s=30ff22f1cb78b1ef23d5d22b8bb02d36\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.getaftercare.com#website\",\"name\":\"Starter Kit\",\"url\":\"https://docs.getaftercare.com\",\"publisher\":{\"@id\":\"https://docs.getaftercare.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.getaftercare.com/api-reference/coding/create#webpage\",\"url\":\"https://docs.getaftercare.com/api-reference/coding/create\",\"name\":\"Create AI Coding Batch Job\",\"description\":\"Analyze survey responses and code them into hierarchical categories\",\"dateModified\":\"2026-01-07T05:43:31.554Z\",\"isPartOf\":{\"@id\":\"https://docs.getaftercare.com#website\"},\"breadcrumb\":{\"@id\":\"https://docs.getaftercare.com/api-reference/coding/create#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.getaftercare.com/api-reference/coding/create#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Starter Kit\",\"item\":\"https://docs.getaftercare.com\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Create AI Coding Batch Job\",\"item\":\"https://docs.getaftercare.com/api-reference/coding/create\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.getaftercare.com/api-reference/coding/create#apireference\",\"headline\":\"Create AI Coding Batch Job\",\"name\":\"Create AI Coding Batch Job\",\"description\":\"Analyze survey responses and code them into hierarchical categories\",\"url\":\"https://docs.getaftercare.com/api-reference/coding/create\",\"mainEntityOfPage\":{\"@id\":\"https://docs.getaftercare.com/api-reference/coding/create#webpage\"},\"dateModified\":\"2026-01-07T05:43:31.554Z\",\"publisher\":{\"@id\":\"https://docs.getaftercare.com/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.getaftercare.com#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Starter Kit\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"Starter Kit","nav":{"global":{"anchors":[{"anchor":"Discord","href":"https://discord.gg/Rn2yZ3He","icon":"discord"},{"anchor":"Slack","href":"https://join.slack.com/t/aftercareusers/shared_invite/zt-30ezqu0sy-0YybIITmOcx5BEpdR3mWCQ","icon":"slack"}]},"tabs":[{"tab":"Documentation","pages":[{"title":"Documentation","href":"/introduction"}]},{"tab":"API Reference","groups":[{"group":"API Documentation","pages":[{"title":"Get Started","icon":"square-terminal","href":"/api-reference/introduction"}]},{"group":"AI Followup Generation","pages":[{"title":"Create AI Followup Question","openapi":"POST /api/v1/followups","href":"/api-reference/followups/create"}]},{"group":"AI Data Quality Evaluation","pages":[{"title":"Evaluate Data Quality","openapi":"POST /api/v1/data-quality","href":"/api-reference/data-quality/evaluate"},{"title":"Evaluate Data Quality Batch","openapi":"POST /api/v1/data-quality/batch","href":"/api-reference/data-quality/batch"},{"title":"Get Data Quality Batch Job Status","openapi":"GET /api/v1/data-quality/batch/{batchJobId}","description":"Retrieves the current status and results of a batch evaluation job","href":"/api-reference/data-quality/get"}]},{"group":"AI Coding","pages":[{"title":"Create AI Coding Batch Job","openapi":"POST /api/v1/coding","href":"/api-reference/coding/create"},{"title":"Get AI Coding Batch Job Results","openapi":"GET /api/v1/coding/{batchJobId}","description":"Retrieves the current status and results of a batch coding job","href":"/api-reference/coding/get"},{"title":"Create AI Brand Coding Job","openapi":"POST /api/v1/brand-coding","href":"/api-reference/brand-coding/create"}]}]}]},"basePath":"","title":"Create AI Coding Batch Job - Starter Kit","buildId":"dpl_DeHjVRGfFnhYQwHnfC2pjeXXv8h9","deploymentId":"dpl_DeHjVRGfFnhYQwHnfC2pjeXXv8h9","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-CS552b7R.js","utils-DDTCYAF2.js","cloneDeep-izs3Hzxb.js","_Uint8Array-BVIqJ90l.js","isObjectLike-C8vmzPEN.js","isArray-Dcu1dQ5t.js","utils-De8ttokP.js","toString-BX-iyh8G.js","isSymbol-CSH9U2Gm.js","addUniqueKeysToSchema-DrwRDvAh.js","snippetPresets-DtAN0nWx.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","ApiExamples-D5rWArI6.js","isEqual-BfaiBbcl.js","usePlaygroundInputsStore-O2i12wsz.js","shallow-DV8xABTt.js","getApiPlaygroundDisplay-DBZ0B5Jx.js","CodeSnippet-BVi0tPUX.js","CodeSnippets-CqASbIwY.js","Page-m07pfKpT.js","getPastedJson-DG9vsMS8.js","icon-CXzRSCr8.js","MethodPill-BdKVtEuX.js","DuplicateIcon-CZlmBrJI.js","createIcon-biFEUKPL.js","DynamicMarkdown-B54_zNBF.js","SectionHeading-DwwHK3Pt.js","axios-vUo_bRtp.js","Markdown-DfhCTwyA.js","clsx-xpJZXxdP.js","lib-DuNMoZ05.js","lib-B8HbPgcC.js","html-void-elements-mCSPHezU.js","dist-BTZUMDnx.js","katex-YMM-FMeD.js","marked.esm-CZWythHk.js","AssistantPageLink-DqdKa2R4.js"]}