Saltar al contenido principal
POST
/
shorturl
Create a shorten URL from the long URL
curl --request POST \
  --url https://api.acedata.cloud/shorturl \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "content": "https://platform.acedata.cloud/documents/a2303356-6672-4eb8-9778-75f55c998fe9"
}
'
{
  "data": {
    "url": "https://suro.id/abc123"
  },
  "success": true
}

Autorizaciones

Authorization
string
header
requerido

Encabezados

accept
enum<string>

Specifies the format of the response from the server.

Opciones disponibles:
application/json

Cuerpo

application/json
content
string

The content of the URL to be shortened

Ejemplo:

"https://platform.acedata.cloud/documents/a2303356-6672-4eb8-9778-75f55c998fe9"

Respuesta

OK, the request is successful.

data
object

The output data of the response

success
boolean

The flag indicates the request is successful or not