Skip to main content
POST
https://api.rankspot.ai
/
v1
/
competitors
Add a competitor
curl --request POST \
  --url https://api.rankspot.ai/v1/competitors \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "Ahrefs",
  "domain": "ahrefs.com"
}
'
{
  "id": "clx...",
  "name": "Ahrefs",
  "domain": "ahrefs.com",
  "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:

"Ahrefs"

domain
string
required
Example:

"ahrefs.com"

Response

id
string
required
Example:

"clx..."

name
string
required
Example:

"Ahrefs"

domain
string
required
Example:

"ahrefs.com"

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