> This page is for API Reference & Tools.

> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.moveworks.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.moveworks.com/_mcp/server.

# Create response

POST https://api.moveworks.ai/assistant/v1/conversations/{conversation_id}/responses
Content-Type: application/json

Creates a response object for processing. Returns immediately with the response object. Use `GetResponse` by `response_id` to poll for the complete result.

Reference: https://docs.moveworks.com/api-reference/conversations-api/deprecated-conversations-api/responses/create-response

## Authentication

- `Authorization` header (bearer token, required) — JWT bearer token authentication. Obtain an access token from the Moveworks auth endpoint and include it in the Authorization header as 'Bearer \<token>'.

## Request

### Path parameters

- `conversation_id` (string, required) — A base-62 identifier prefixed by a short resource type

### Headers

- `Assistant-Name` (string, required) — The Moveworks assistant identifier that was configured for your organization.

### Body (application/json)

This endpoint expects a CreateResponseRequest.

- `input` (UserInput, required) — User input message

## Response

### 202

Response accepted for processing (acknowledgement)

- `response_id` (string, required) — A base-62 identifier prefixed by a short resource type
- `conversation_id` (string, required) — A base-62 identifier prefixed by a short resource type
- `status` (enum, required) — Response processing status
  - Allowed values: `CREATED`, `IN_PROGRESS`, `COMPLETED`, `FAILED`
- `created_at` (datetime, required) — Creation timestamp (ISO 8601)
- `completed_at` (datetime, optional, nullable) — Completion timestamp (ISO 8601), null if not completed
- `outputs` (list of OutputItem, optional) — Output items

## Errors

### 400 Bad Request Error

Bad request - Invalid input parameters

- `error` (InputRequiredErrorResponseError, required)

### 401 Unauthorized Error

Unauthorized - Invalid or missing authentication

- `error` (UnauthorizedErrorResponseError, required)

### 403 Forbidden Error

Forbidden - Invalid assistant

- `error` (ForbiddenErrorResponseError, required)

### 404 Not Found Error

Not found - Resource does not exist

- `error` (NotFoundErrorResponseError, required)

### 429 Too Many Requests Error

Rate limit exceeded

- `error` (RateLimitExceededErrorResponseError, required)

### 500 Internal Server Error

Internal server error

- `error` (InternalErrorResponseError, required)

## Types

### UserInput

User input for a response. Exactly one of `text` or `callback_id` must be provided.

- Text: Text
- Callback: Callback

### OutputItem

Output item wrapper with type discriminator

- `type`: `MESSAGE` (MESSAGE)
  - `message` (Message, required)
- `type`: `REASONING_MESSAGE` (REASONING_MESSAGE)
  - `reasoning_message` (ReasoningMessage, required)

### InputRequiredErrorResponseError

- `code` (enum, required)
  - Allowed values: `INVALID_INPUT`
- `message` (string, required)

### UnauthorizedErrorResponseError

- `code` (enum, required)
  - Allowed values: `UNAUTHORIZED`
- `message` (string, required)

### ForbiddenErrorResponseError

- `code` (enum, required)
  - Allowed values: `FORBIDDEN`
- `message` (string, required)

### NotFoundErrorResponseError

- `code` (enum, required)
  - Allowed values: `NOT_FOUND`
- `message` (string, required)

### RateLimitExceededErrorResponseError

- `code` (enum, required)
  - Allowed values: `RATE_LIMIT_EXCEEDED`
- `message` (string, required)

### InternalErrorResponseError

- `code` (enum, required)
  - Allowed values: `INTERNAL_ERROR`
- `message` (string, required)

### Text

- `text` (string, required) — User message text

### Callback

- `callback_id` (string, required) — Opaque callback id for an action the user triggered (e.g. clicking a button rendered in a prior assistant message).

### Message

- `message_id` (string, required) — A base-62 identifier prefixed by a short resource type
- `conversation_id` (string, required) — A base-62 identifier prefixed by a short resource type
- `response_id` (string, required) — A base-62 identifier prefixed by a short resource type
- `actor` (enum, required) — Message actor type
  - Allowed values: `USER`, `ASSISTANT`
- `content` (Content, required) — Message content with type discriminator
- `created_at` (datetime, required) — Creation timestamp (ISO 8601)
- `citations` (list of Citation, optional, nullable) — Unique citation references in the assistant message. Use `content_references` to determine where in the message text each citation is referenced.
- `content_references` (list of CitationContentReference, optional, nullable) — Ordered positions in the message text where citations appear (ascending by offset). Each entry references a `Citation` via `citation_id`. Only populated on assistant messages.
- `feedback` (MessageFeedback, optional, nullable) — Feedback options for this message. Present only on final assistant messages that support feedback. Use the callback IDs to submit a rating via the feedback endpoint.
- `actions` (list of Action, optional) — Actions a user can take in response to this message (e.g. buttons or links). Absent on messages with no actions.

### ReasoningMessage

- `reasoning_message_id` (string, required) — A base-62 identifier prefixed by a short resource type
- `conversation_id` (string, required) — A base-62 identifier prefixed by a short resource type
- `response_id` (string, required) — A base-62 identifier prefixed by a short resource type
- `content` (Content, required) — Message content with type discriminator
- `created_at` (datetime, required) — Creation timestamp (ISO 8601)

### Content

Message content with type discriminator

- `type`: `PLAIN_TEXT` (PLAIN_TEXT)
  - `plain_text` (PlainTextContent, required)
- `type`: `COMMONMARK_TEXT` (COMMONMARK_TEXT)
  - `commonmark_text` (CommonmarkTextContent, required)
- `type`: `MARKDOWN_TEXT` (MARKDOWN_TEXT)
  - `markdown_text` (MarkdownTextContent, required)
- `type`: `CALLBACK_ACTION_CONTENT` (CALLBACK_ACTION_CONTENT)
  - `callback_action` (CallbackActionContent, required)

### Citation

- `citation_id` (string, optional) — Unique citation identifier (format: `cite_<base62>`). Use this to join with `content_references` on the Message object.
- `url` (string, optional) — URL to the entity
- `display` (Display, optional)

### CitationContentReference

- `citation_id` (string, required) — References `Citation.citation_id` to link this position to a citation entity.
- `offset` (integer, required) — Zero-based character position in the assistant message where the citation appears.

### MessageFeedback

Feedback options available on an assistant message. When present, this message supports feedback and the callback IDs can be used to submit a rating.

- `helpful` (FeedbackOption, optional) — Positive feedback option. Use this callback_id to rate the response as helpful.
- `unhelpful` (FeedbackOption, optional) — Negative feedback option. Use this callback_id to rate the response as unhelpful.

### Action

An action a user can take in response to a message. The `type` field determines which action payload is present.

- `type`: `CALLBACK_ACTION` (CALLBACK_ACTION)
  - `callback_action` (CallbackAction, required)
  - `label` (string, required) — Label associated with the action (e.g., button text).
- `type`: `URL_ACTION` (URL_ACTION)
  - `label` (string, required) — Label associated with the action (e.g., link text).
  - `url_action` (URLAction, required)

### PlainTextContent

- `text` (string, required) — Plain text content

### CommonmarkTextContent

- `text` (string, required) — Commonmark-formatted text content

### MarkdownTextContent

- `text` (string, required) — Raw markdown text content. Used when Minerva's chat response `is_commonmark` is not set.

### CallbackActionContent

- `callback_id` (string, required) — Opaque callback id for the action the user triggered. Submit this via `input.callback_id` on the create response endpoint to trigger the action.

### Display

- `title` (Content, optional) — Primary heading/identifier with type discriminator
- `body` (Content, optional) — Body/description content with type discriminator
- `attributes` (list of Attribute, optional) — Opaque key-value metadata for citation display. These attributes contain implementation-specific rendering hints and should be treated as a black-box by clients. The structure and values may vary between citations and should not be relied upon for business logic.

### FeedbackOption

- `callback_id` (string, required) — Opaque callback identifier. Pass this value to the feedback endpoint to submit this rating.

### CallbackAction

- `callback_id` (string, required) — Opaque callback identifier for the action. Submit this via `input.callback_id` on the create response endpoint to trigger the action.

### URLAction

- `url` (string, required) — URL to open when the action is triggered.

### Attribute

Key-value pair for citation display metadata. This is an opaque structure that contains rendering hints specific to each citation. Clients should not make assumptions about the keys or values present, as they may vary based on citation type and context.

- `key` (string, required) — Attribute name
- `value` (string, required) — Attribute value

## Examples

**Request**

```json
{
  "input": {
    "text": "Who does John Doe report to?"
  }
}
```

**Response**

```json
{
  "response_id": "resp_32bt7rXXugeJjvE3pQzOk",
  "conversation_id": "conv_32bt7BMLhLyVzTUjfi35N",
  "status": "CREATED",
  "created_at": "2025-01-20T10:00:00Z"
}
```

**SDK Code**

```python Responses_createResponse_example
import requests

url = "https://api.moveworks.ai/assistant/v1/conversations/conv_32bt7BMLhLyVzTUjfi35N/responses"

payload = { "input": { "text": "Who does John Doe report to?" } }
headers = {
    "Assistant-Name": "acmecorp-conversations-rest-api",
    "Authorization": "Bearer <token>",
    "Content-Type": "application/json"
}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
```

```javascript Responses_createResponse_example
const url = 'https://api.moveworks.ai/assistant/v1/conversations/conv_32bt7BMLhLyVzTUjfi35N/responses';
const options = {
  method: 'POST',
  headers: {
    'Assistant-Name': 'acmecorp-conversations-rest-api',
    Authorization: 'Bearer <token>',
    'Content-Type': 'application/json'
  },
  body: '{"input":{"text":"Who does John Doe report to?"}}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go Responses_createResponse_example
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "https://api.moveworks.ai/assistant/v1/conversations/conv_32bt7BMLhLyVzTUjfi35N/responses"

	payload := strings.NewReader("{\n  \"input\": {\n    \"text\": \"Who does John Doe report to?\"\n  }\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("Assistant-Name", "acmecorp-conversations-rest-api")
	req.Header.Add("Authorization", "Bearer <token>")
	req.Header.Add("Content-Type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby Responses_createResponse_example
require 'uri'
require 'net/http'

url = URI("https://api.moveworks.ai/assistant/v1/conversations/conv_32bt7BMLhLyVzTUjfi35N/responses")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["Assistant-Name"] = 'acmecorp-conversations-rest-api'
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n  \"input\": {\n    \"text\": \"Who does John Doe report to?\"\n  }\n}"

response = http.request(request)
puts response.read_body
```

```java Responses_createResponse_example
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.post("https://api.moveworks.ai/assistant/v1/conversations/conv_32bt7BMLhLyVzTUjfi35N/responses")
  .header("Assistant-Name", "acmecorp-conversations-rest-api")
  .header("Authorization", "Bearer <token>")
  .header("Content-Type", "application/json")
  .body("{\n  \"input\": {\n    \"text\": \"Who does John Doe report to?\"\n  }\n}")
  .asString();
```

```php Responses_createResponse_example
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('POST', 'https://api.moveworks.ai/assistant/v1/conversations/conv_32bt7BMLhLyVzTUjfi35N/responses', [
  'body' => '{
  "input": {
    "text": "Who does John Doe report to?"
  }
}',
  'headers' => [
    'Assistant-Name' => 'acmecorp-conversations-rest-api',
    'Authorization' => 'Bearer <token>',
    'Content-Type' => 'application/json',
  ],
]);

echo $response->getBody();
```

```csharp Responses_createResponse_example
using RestSharp;

var client = new RestClient("https://api.moveworks.ai/assistant/v1/conversations/conv_32bt7BMLhLyVzTUjfi35N/responses");
var request = new RestRequest(Method.POST);
request.AddHeader("Assistant-Name", "acmecorp-conversations-rest-api");
request.AddHeader("Authorization", "Bearer <token>");
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "{\n  \"input\": {\n    \"text\": \"Who does John Doe report to?\"\n  }\n}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
```

```swift Responses_createResponse_example
import Foundation

let headers = [
  "Assistant-Name": "acmecorp-conversations-rest-api",
  "Authorization": "Bearer <token>",
  "Content-Type": "application/json"
]
let parameters = ["input": ["text": "Who does John Doe report to?"]] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "https://api.moveworks.ai/assistant/v1/conversations/conv_32bt7BMLhLyVzTUjfi35N/responses")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```