ข้ามไปยังเนื้อหา
GrowSocmedเอกสารSocial media command center

Create a short link

Create a short link (own name on Pro and Agency; it cannot be changed later)

POST
/links

Create a short link (own name on Pro and Agency; it cannot be changed later)

Authorization

apiKey
headerAuthorizationBearer <token>

API key from Developer → API keys (gs_…). An unbound key takes the workspace from the X-Workspace header.

Request Body

application/json
  1. body
url*string
Formaturi
Lengthlength <= 2000
title?string
Lengthlength <= 120
code?string
Lengthlength <= 40

Response Body

Created

response?unknownapplication/json
Example Request
curl -X POST 'https://socmed.growpaces.com/api/v1/links' \  -H 'Content-Type: application/json' \  -d '{  "url": "http://example.com"}'
Example Response201
null