> This page is for version latest (default).
> For other versions, use one of these documentation indexes:
> - latest (default): https://docs.machanirobotics.dev/latest/llms.txt
> - v2026.01.16-dev: https://docs.machanirobotics.dev/v-2026-01-16-dev/llms.txt

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

# Get Character

GET https://api.machanirobotics.com/v1/conversation/characters/characters/{character}

Get retrieves a specific Character resource.

This RPC accepts a GetCharacterRequest with the resource name of the desired
Character. The Character is retrieved and returned.

HTTP Mapping: GET "/v1/conversation/characters/\{name=characters/\*}"

Reference: https://docs.machanirobotics.dev/latest/2026-01-16-dev/character-service/getcharacter

## Request

### Path parameters

- `character` (string, required) — The character id.

## Response

### 200

OK

- `displayName` (string, required) — display_name is the human-readable name for the Character.
- `name` (string, optional) — name is the unique resource identifier for the Character. It follows the format "characters/\{character}".
- `description` (string, optional) — description provides a brief overview of the Character's purpose.
- `versions` (list of CharacterItem, optional) — version is the current version of the Character.

## Errors

### 400 Bad Request Error

Bad Request

- `code` (integer, optional) — The status code, which should be an enum value of [google.rpc.Code][google.rpc.Code].
- `message` (string, optional) — A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the [google.rpc.Status.details][google.rpc.Status.details] field, or localized by the client.
- `details` (list of GoogleProtobufAny, optional) — A list of messages that carry the error details. There is a common set of message types for APIs to use.

## Types

### CharacterItem

CharacterItem represents a single version of a Character, with full settings.

- `defaultModel` (string, required) — default_model is the LLM model used in this version.
- `changeNote` (string, required) — change_note explains why this version was created.
- `id` (string, optional) — id is the unique version identifier for this snapshot (e.g., ULID).
- `version` (integer, optional) — version is the ordinal version number for this snapshot.
- `versionCreateTime` (datetime, optional) — timestamp marks when this snapshot was created.
- `personalityTraits` (list of string, optional) — personality_traits define personality keywords for this version.
- `interests` (list of string, optional) — interests list areas of interest in this version.
- `goals` (list of string, optional) — goals list the objectives or motivations for this version.
- `systemInstructions` (list of string, optional) — system_instructions are prompts always added to the system context.
- `scenarioContext` (list of string, optional) — scenario_context provides background context for this version.
- `location` (map from string to string, optional) — location holds situational or geographical metadata.
- `metadata` (map from string to string, optional) — metadata holds arbitrary key/value pairs for this version.
- `localeTime` (datetime, optional) — locale_time records the local time when this version was created.
- `weather` (string, optional) — weather is optional weather information for this version.
- `supportedLanguages` (list of string, optional) — supported_languages lists spoken/written languages supported.
- `styleSettings` (CharacterConversationStyle, optional) — style_settings configure tone and behavior for this version.
- `signature` (CharacterSignature, optional) — signature holds metadata about who created or modified this version.
- `favorite` (boolean, optional) — favorite marks if this version is bookmarked.

### GoogleProtobufAny

Contains an arbitrary serialized message along with a @type that describes the type of the serialized message.

- `@type` (string, optional) — The type of the serialized message.

### CharacterConversationStyle

CharacterConversationStyle defines adjustable style attributes (0–100) that influence dialogue tone.

- `formality` (integer, required) — Formality sets the level of formality (0=casual, 100=very formal).
- `humor` (integer, required) — Humor sets the level of humor or playfulness.
- `empathy` (integer, required) — Empathy sets how empathetic the RobotCharacter responds.
- `professionalism` (integer, required) — Professionalism sets businesslike tone (useful for meetings/events).
- `enthusiasm` (integer, required) — Enthusiasm sets energetic or enthusiastic tone.
- `conciseness` (integer, required) — Conciseness sets how brief vs. verbose the responses are.

### CharacterSignature

CharacterOptions is the options for the profile.

- `username` (string, required) — The name of the profile.``
- `email` (string, required) — Email is the email of the creator.
- `company` (string, required) — Company is the company of the creator.

## Examples

**Request**

```json
{}
```

**Response**

```json
{
  "displayName": "Astro Bot",
  "name": "characters/astro-bot",
  "description": "A friendly AI assistant specialized in space exploration and astronomy.",
  "versions": [
    {
      "defaultModel": "gpt-4-astro-v1",
      "changeNote": "Updated personality traits and improved space knowledge base.",
      "id": "01F8MECHZX3TBDSZ7XRADM79XE",
      "version": 3,
      "versionCreateTime": "2024-01-15T09:30:00Z",
      "personalityTraits": [
        "curious",
        "helpful",
        "optimistic"
      ],
      "interests": [
        "astronomy",
        "space travel",
        "science education"
      ],
      "goals": [
        "assist users with space-related queries",
        "promote scientific literacy",
        "engage users with interesting space facts"
      ],
      "systemInstructions": [
        "Always provide accurate scientific information.",
        "Encourage curiosity and learning."
      ],
      "scenarioContext": [
        "User is interested in space exploration and astronomy.",
        "Provide explanations suitable for general audiences."
      ],
      "location": {
        "region": "Earth Orbit",
        "timezone": "UTC"
      },
      "metadata": {
        "createdBy": "astro-team",
        "releaseStage": "production"
      },
      "localeTime": "2024-01-15T09:30:00Z",
      "weather": "clear skies",
      "supportedLanguages": [
        "en",
        "es",
        "fr"
      ],
      "styleSettings": {
        "formality": 60,
        "humor": 40,
        "empathy": 70,
        "professionalism": 80,
        "enthusiasm": 75,
        "conciseness": 50
      },
      "signature": {
        "username": "astro_dev",
        "email": "astro_dev@machanirobotics.com",
        "company": "Machani Robotics"
      },
      "favorite": true
    }
  ]
}
```

**SDK Code**

```python
import requests

url = "https://api.machanirobotics.com/v1/conversation/characters/characters/characters%2Fastro-bot"

payload = {}
headers = {"Content-Type": "application/json"}

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

print(response.json())
```

```javascript
const url = 'https://api.machanirobotics.com/v1/conversation/characters/characters/characters%2Fastro-bot';
const options = {method: 'GET', headers: {'Content-Type': 'application/json'}, body: '{}'};

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

```go
package main

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

func main() {

	url := "https://api.machanirobotics.com/v1/conversation/characters/characters/characters%2Fastro-bot"

	payload := strings.NewReader("{}")

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

	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
require 'uri'
require 'net/http'

url = URI("https://api.machanirobotics.com/v1/conversation/characters/characters/characters%2Fastro-bot")

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

request = Net::HTTP::Get.new(url)
request["Content-Type"] = 'application/json'
request.body = "{}"

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

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

HttpResponse<String> response = Unirest.get("https://api.machanirobotics.com/v1/conversation/characters/characters/characters%2Fastro-bot")
  .header("Content-Type", "application/json")
  .body("{}")
  .asString();
```

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

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://api.machanirobotics.com/v1/conversation/characters/characters/characters%2Fastro-bot', [
  'body' => '{}',
  'headers' => [
    'Content-Type' => 'application/json',
  ],
]);

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

```csharp
using RestSharp;

var client = new RestClient("https://api.machanirobotics.com/v1/conversation/characters/characters/characters%2Fastro-bot");
var request = new RestRequest(Method.GET);
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "{}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
```

```swift
import Foundation

let headers = ["Content-Type": "application/json"]
let parameters = [] as [String : Any]

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

let request = NSMutableURLRequest(url: NSURL(string: "https://api.machanirobotics.com/v1/conversation/characters/characters/characters%2Fastro-bot")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"
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()
```