POST /apps

Register a new application by submitting its configuration details, including the app name, session duration, redirect URL, and secret. This process generates a unique AppID that is used to identify your application and secure subsequent API requests.

Request

Headers

Key Value
Content-type application/json

Body

{
  "name": "test",
  "redirect_url": "https://localhost:8080/redirect?token=",
  "session_duration": "3600s",
  "secret": "test-app-secret"
}

Response

Status code Body
200 Ok {"id": "dGVzdHxodHRwczovL2xvY2FsaG9zdDo4MDgwL3JlZGlyZWN0P3Rva2VuPXwxaDBtMHN8NmJlMDRkYzZkNzMzYjYxYjk0ZTEwMjZi"}
400 Bad Request {"code": 1001, "message": "could not decode app id request"}
400 Bad Request {"code": 1021, "message": "invalid app id"}

Test