For AI agents: this page in Markdown: https://www.pubnub.com/docs/admin-api/create-a-new-app.md. Documentation index: https://www.pubnub.com/llms-full.txt.

Create a new app

POST 

/v2/apps

Creates a new app in your PubNub account. Apps are containers for keysets.

Request​

Example
{
  "id": "string",
  "name": "string",
  "createdAt": "string",
  "updatedAt": "string"
}
Example
{
  "statusCode": 0,
  "error": "BadRequest",
  "message": [
    "string"
  ]
}
Example
{
  "statusCode": 0,
  "error": "Unauthorized",
  "message": [
    "string"
  ]
}
Example
{
  "statusCode": 0,
  "error": "Forbidden",
  "message": [
    "string"
  ]
}
Example
{
  "statusCode": 0,
  "error": "NotFound",
  "message": [
    "string"
  ]
}
Example
{
  "statusCode": 0,
  "error": "InternalError",
  "message": [
    "string"
  ]
}