Skip to main content
POST
https://api.rankspot.ai
/
v1
/
categories
Create a category
curl --request POST \
  --url https://api.rankspot.ai/v1/categories \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "name": "SEO"
}'
{
  "id": "clx...",
  "name": "SEO",
  "color": "violet",
  "createdAt": "2023-11-07T05:31:56Z",
  "updatedAt": "2023-11-07T05:31:56Z"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
name
string
required
Example:

"SEO"

Response

id
string
required
Example:

"clx..."

name
string
required
Example:

"SEO"

color
string
required
Example:

"violet"

createdAt
string<date-time>
required
updatedAt
string<date-time>
required