POST
/
link
curl --request POST \
  --url https://api.cme.sh/link \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "workspaceId": "<string>",
  "keywordType": "<string>",
  "longUrl": "<string>",
  "customDomain": "amazon.com",
  "keyword": "myYoutubeChannel"
}'
{
  "status": true,
  "data": {
    "linkId": "<string>",
    "keyWordExist": true,
    "shortUrl": "<string>",
    "recommendedUrls": [
      "<any>"
    ],
    "failToGenerateHash": true
  }
}

Authorizations

Authorization
string
header
required

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

Body

application/json

Create a new link for the authenticated workspace.

The body is of type object.

Response

200
application/json

Successful response

The response is of type object.