latestOpenAPI 3.0.2cPanel License2026-08-106251554.3 MB

3da41671c02c

Server Administration
Connected Applications

Save application connection information.

Save or update connection data about a specific connected application.

post/save_connected_application

Request body

namestring

The name of the connected application.

Example request

{
  "data": {
    "jwt": {
      "callback_url": "https://application-1.com/api/si/servers/registrations/callback",
      "challenge": "ddd13a92-d55e-4818-a960-9776ede6cd74",
      "email": "john.doe@email.example",
      "exp": 1401912171,
      "ips": [
        "1.1.1.1",
        "2.2.2.2"
      ],
      "iss": "https://application-1.com",
      "iss_desc": "Sample application",
      "name": "John Doe",
      "redirect_url": "https://application-1/redirect",
      "scope": [
        "admin:users",
        "admin:resellers",
        "admin:domains"
      ],
      "state": "xyz"
    },
    "private_key": "FEF6253E6A122532430D",
    "public_key": "AAF6253E6A1225324305623EE",
    "token_name": "Application 1 API Token"
  },
  "name": "application-1"
}

Response

HTTP Request was successful.

Example response

{
  "metadata": {
    "command": "save_connected_application",
    "reason": "OK",
    "result": 1,
    "version": 1
  }
}