Groups

Create a group

Create a keyword group. `name` is unique per workspace; `externalId` (optional, unique too) is your own id for it, a customer id say, so you can find it again without storing ours; `context` (optional) is the group's own company description, which the classifier reads in place of the whole workspace profile for the group's keywords. Then pass the group id as `groupId` when creating a keyword.

POST
/v1/groups
AuthorizationBearer <token>

API key minted via POST /v1/api-keys (format mk_live_...)

In: header

namestring

The group's name: a customer, a campaign, a product. Unique per workspace.

Length1 <= length <= 80
externalId?string|null

Your own id for the group (a customer id, say). Unique per workspace; find the group by it with GET /v1/groups?externalId=.

Length1 <= length <= 128
context?string|null

What the classifier reads as "the company" for this group's keywords, in place of the WHOLE workspace profile, its relevance guidelines and competitor list included (at most 4000 characters): who the business is, what it sells, for whom, what is not it, and any rule that should apply to this group ("ignore job posts"). For a group per customer, the customer's description. Null: the workspace profile, as for every keyword before groups.

Lengthlength <= 4000

Response Body

application/json

application/json

application/json

curl -X POST "https://api.mentio.dev/v1/groups" \  -H "Content-Type: application/json" \  -d '{    "name": "string"  }'
{
  "id": "string",
  "name": "string",
  "externalId": "string",
  "isDefault": true,
  "context": "string",
  "stats": {
    "keywords": 0,
    "active": 0
  },
  "createdAt": "string",
  "updatedAt": "string"
}
{
  "error": {
    "code": "unauthorized",
    "message": "string",
    "requestId": "string",
    "retryAfterSeconds": 0
  }
}
{
  "error": {
    "code": "unauthorized",
    "message": "string",
    "requestId": "string",
    "retryAfterSeconds": 0
  }
}