Skip to main content
POST
/
v4
/
accounts
/
{accountId}
/
content-profiles
Create content profile
curl --request POST \
  --url 'https://api.conductor.com/v4/accounts/{accountId}/content-profiles?apiKey=&sig=' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "Brand Voice",
  "description": "Default brand voice profile",
  "voiceTone": "Confident and friendly",
  "audience": "Marketing managers",
  "languageRules": [
    {
      "term": "utilize",
      "type": "EXCLUDE"
    }
  ]
}
'
import requests

url = "https://api.conductor.com/v4/accounts/{accountId}/content-profiles?apiKey=&sig="

payload = {
    "name": "Brand Voice",
    "description": "Default brand voice profile",
    "voiceTone": "Confident and friendly",
    "audience": "Marketing managers",
    "languageRules": [
        {
            "term": "utilize",
            "type": "EXCLUDE"
        }
    ]
}
headers = {"Content-Type": "application/json"}

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

print(response.text)
const options = {
  method: 'POST',
  headers: {'Content-Type': 'application/json'},
  body: JSON.stringify({
    name: 'Brand Voice',
    description: 'Default brand voice profile',
    voiceTone: 'Confident and friendly',
    audience: 'Marketing managers',
    languageRules: [{term: 'utilize', type: 'EXCLUDE'}]
  })
};

fetch('https://api.conductor.com/v4/accounts/{accountId}/content-profiles?apiKey=&sig=', options)
  .then(res => res.json())
  .then(res => console.log(res))
  .catch(err => console.error(err));
<?php

$curl = curl_init();

curl_setopt_array($curl, [
  CURLOPT_URL => "https://api.conductor.com/v4/accounts/{accountId}/content-profiles?apiKey=&sig=",
  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([
    'name' => 'Brand Voice',
    'description' => 'Default brand voice profile',
    'voiceTone' => 'Confident and friendly',
    'audience' => 'Marketing managers',
    'languageRules' => [
        [
                'term' => 'utilize',
                'type' => 'EXCLUDE'
        ]
    ]
  ]),
  CURLOPT_HTTPHEADER => [
    "Content-Type: application/json"
  ],
]);

$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://api.conductor.com/v4/accounts/{accountId}/content-profiles?apiKey=&sig="

	payload := strings.NewReader("{\n  \"name\": \"Brand Voice\",\n  \"description\": \"Default brand voice profile\",\n  \"voiceTone\": \"Confident and friendly\",\n  \"audience\": \"Marketing managers\",\n  \"languageRules\": [\n    {\n      \"term\": \"utilize\",\n      \"type\": \"EXCLUDE\"\n    }\n  ]\n}")

	req, _ := http.NewRequest("POST", 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(string(body))

}
HttpResponse<String> response = Unirest.post("https://api.conductor.com/v4/accounts/{accountId}/content-profiles?apiKey=&sig=")
  .header("Content-Type", "application/json")
  .body("{\n  \"name\": \"Brand Voice\",\n  \"description\": \"Default brand voice profile\",\n  \"voiceTone\": \"Confident and friendly\",\n  \"audience\": \"Marketing managers\",\n  \"languageRules\": [\n    {\n      \"term\": \"utilize\",\n      \"type\": \"EXCLUDE\"\n    }\n  ]\n}")
  .asString();
require 'uri'
require 'net/http'

url = URI("https://api.conductor.com/v4/accounts/{accountId}/content-profiles?apiKey=&sig=")

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

request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n  \"name\": \"Brand Voice\",\n  \"description\": \"Default brand voice profile\",\n  \"voiceTone\": \"Confident and friendly\",\n  \"audience\": \"Marketing managers\",\n  \"languageRules\": [\n    {\n      \"term\": \"utilize\",\n      \"type\": \"EXCLUDE\"\n    }\n  ]\n}"

response = http.request(request)
puts response.read_body
{
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "accountId": 123,
  "name": "<string>",
  "description": "<string>",
  "voiceTone": "<string>",
  "audience": "<string>",
  "createdBy": 123,
  "created": "2023-11-07T05:31:56Z",
  "updatedBy": 123,
  "updated": "2023-11-07T05:31:56Z",
  "draftCount": 123,
  "languageRules": [
    {
      "term": "<string>",
      "type": "EXCLUDE",
      "extraTerm": "<string>"
    }
  ]
}
{
  "code": "<string>",
  "message": "<string>"
}
{
  "timestamp": "2023-11-07T05:31:56Z",
  "status": 123,
  "error": "<string>",
  "message": "<string>",
  "path": "<string>"
}

Authorizations

apiKey
string
query
required

API Key as a query parameter

sig
string
query
required

Request signature computed using API key and secret. Valid for 5 minutes after creation.

Path Parameters

accountId
integer
required

Account identifier

Body

application/json

Fields for creating or updating a content profile.

name
string
description
string
voiceTone
string

Freeform voice-and-tone guidance applied to generation.

audience
string

Freeform target-audience description.

languageRules
object[]

Response

Created content profile

id
string<uuid>
required
accountId
integer
required
name
string
required
description
string | null
voiceTone
string | null

Freeform voice-and-tone guidance applied to generation.

audience
string | null

Freeform target-audience description.

createdBy
integer

User ID of the creator.

created
string<date-time>
updatedBy
integer
updated
string<date-time>
draftCount
integer
languageRules
object[]