Skip to main content
POST
/
authors
/
create
Create author
curl --request POST \
  --url https://api.octaviatech.app/cms/authors/create \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '{
  "name": {
    "en": "John Carter",
    "es": "Juan Carter"
  },
  "slug": "john-carter",
  "bio": {
    "en": "<p>Editor and writer focused on AI topics.</p>",
    "es": "<p>Editor y escritor enfocado en temas de IA.</p>"
  },
  "avatar": "https://cdn.example.com/avatars/john.jpg",
  "role": "Editor",
  "socials": {
    "website": "https://john.example.com",
    "twitter": "https://twitter.com/john",
    "linkedin": "https://www.linkedin.com/in/john"
  },
  "email": "john@example.com",
  "isActive": true,
  "order": 1
}'
{
  "success": true,
  "statusCode": 201,
  "message": "Created",
  "data": {
    "id": "{{objectId}}",
    "slug": "john-carter"
  }
}

Authorizations

x-api-key
string
header
required

Body

application/json
name
object
required

Author name in multiple languages

slug
string

URL-friendly unique identifier

bio
object

Author bio in multiple languages (HTML allowed)

avatar
string<uri>

Avatar image URL

role
string

Public title/role of the author (e.g., Editor)

socials
object

Social and website links

email
string<email>

Optional public contact email

isActive
boolean

Whether author is active

order
integer

Optional ordering index

Required range: x >= 0

Response

Created

The response is of type any.