Save the brand profile
Replaces the client's brand profile. Ad prompt generation uses it when no brand is sent. Agency keys or competitor_ads:write.
curl -X PUT "https://mythic-analytics.gulp.workers.dev/client/v1/competitor-ads/brand?location_id=example_string" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_API_TOKEN" \
-d '{
"product": "example_string",
"audience": "example_string",
"benefits": [
"example_string"
],
"angles": [
"example_string"
],
"proof": [
"example_string"
],
"offers": [
"example_string"
],
"must_avoid": [
"example_string"
],
"compliance": "example_string"
}'
import requests
import json
url = "https://mythic-analytics.gulp.workers.dev/client/v1/competitor-ads/brand?location_id=example_string"
headers = {
"Content-Type": "application/json",
"Authorization": "Bearer YOUR_API_TOKEN"
}
data = {
"product": "example_string",
"audience": "example_string",
"benefits": [
"example_string"
],
"angles": [
"example_string"
],
"proof": [
"example_string"
],
"offers": [
"example_string"
],
"must_avoid": [
"example_string"
],
"compliance": "example_string"
}
response = requests.put(url, headers=headers, json=data)
print(response.json())
const response = await fetch("https://mythic-analytics.gulp.workers.dev/client/v1/competitor-ads/brand?location_id=example_string", {
method: "PUT",
headers: {
"Content-Type": "application/json",
"Authorization": "Bearer YOUR_API_TOKEN"
},
body: JSON.stringify({
"product": "example_string",
"audience": "example_string",
"benefits": [
"example_string"
],
"angles": [
"example_string"
],
"proof": [
"example_string"
],
"offers": [
"example_string"
],
"must_avoid": [
"example_string"
],
"compliance": "example_string"
})
});
const data = await response.json();
console.log(data);
package main
import (
"fmt"
"net/http"
"bytes"
"encoding/json"
)
func main() {
data := []byte(`{
"product": "example_string",
"audience": "example_string",
"benefits": [
"example_string"
],
"angles": [
"example_string"
],
"proof": [
"example_string"
],
"offers": [
"example_string"
],
"must_avoid": [
"example_string"
],
"compliance": "example_string"
}`)
req, err := http.NewRequest("PUT", "https://mythic-analytics.gulp.workers.dev/client/v1/competitor-ads/brand?location_id=example_string", bytes.NewBuffer(data))
if err != nil {
panic(err)
}
req.Header.Set("Content-Type", "application/json")
req.Header.Set("Authorization", "Bearer YOUR_API_TOKEN")
client := &http.Client{}
resp, err := client.Do(req)
if err != nil {
panic(err)
}
defer resp.Body.Close()
fmt.Println("Response Status:", resp.Status)
}
require 'net/http'
require 'json'
uri = URI('https://mythic-analytics.gulp.workers.dev/client/v1/competitor-ads/brand?location_id=example_string')
http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = true
request = Net::HTTP::Put.new(uri)
request['Content-Type'] = 'application/json'
request['Authorization'] = 'Bearer YOUR_API_TOKEN'
request.body = '{
"product": "example_string",
"audience": "example_string",
"benefits": [
"example_string"
],
"angles": [
"example_string"
],
"proof": [
"example_string"
],
"offers": [
"example_string"
],
"must_avoid": [
"example_string"
],
"compliance": "example_string"
}'
response = http.request(request)
puts response.body
{
"success": true,
"data": {
"brand": {
"product": "example_string",
"audience": "example_string",
"benefits": [
"example_string"
],
"angles": [
"example_string"
],
"proof": [
"example_string"
],
"offers": [
"example_string"
],
"must_avoid": [
"example_string"
],
"compliance": "example_string"
},
"updated_at": "2024-12-25T10:00:00Z"
}
}
{
"error": "Bad Request",
"message": "The request contains invalid parameters or malformed data",
"code": 400,
"details": [
{
"field": "email",
"message": "Invalid email format"
}
]
}
{
"error": "Forbidden",
"message": "You don't have permission to access this resource",
"code": 403
}
/client/v1/competitor-ads/brand
Target server for requests. Edit to use your own host.
Agency key (ak_), location secret key (sk_, reads only) or a scoped mcp_ key with competitor_ads:read or competitor_ads:write. See Using an mcp_ key over HTTP.
ak_), location secret key (sk_, reads only) or a scoped mcp_ key with competitor_ads:read or competitor_ads:write. See Using an mcp_ key over HTTP.Location to scope to. Required for ak_ keys or send X-Location-Id. Ignored for sk_.
The media type of the request body
What the client sells.
Proof prompts may cite. They never claim more than this.
Request Preview
Response
Response will appear here after sending the request
Authentication
Bearer token. Agency key (ak_), location secret key (sk_, reads only) or a scoped mcp_ key with competitor_ads:read or competitor_ads:write. See Using an mcp_ key over HTTP.
Query Parameters
Location to scope to. Required for ak_ keys or send X-Location-Id. Ignored for sk_.
Body
What the client sells.
Proof prompts may cite. They never claim more than this.