Nimbu Developer Docs
ReferenceApps

Create OAuth app

POST
/apps

Creates an OAuth application for the site. Internal (Cloud Code) apps derive their callback URL from the requested install scopes; external apps supply their own url and callback_url.

Authorization

AuthorizationBearer <token>

Personal access token tied to a user account. Requires the X-Nimbu-Site header to scope requests.

In: header

X-Nimbu-Site<token>

Identifier of the site context when authenticating with a personal access token.

In: header

Header Parameters

X-Nimbu-Site*string

Site identifier

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

curl -X POST "https://example.com/apps" \  -H "X-Nimbu-Site: string" \  -H "Content-Type: application/json" \  -d '{    "name": "string"  }'
{
  "name": "string",
  "url": "http://example.com",
  "key": "string",
  "domain": "string",
  "callback_url": "http://example.com",
  "internal": true,
  "install_scopes": [
    "string"
  ],
  "created_at": "2019-08-24T14:15:22Z",
  "updated_at": "2019-08-24T14:15:22Z",
  "sdk_version": "string",
  "compiled_at": "2019-08-24T14:15:22Z",
  "compile_errors": [
    "string"
  ],
  "functions": [
    {
      "name": "string",
      "updated_at": "2019-08-24T14:15:22Z"
    }
  ],
  "routes": [
    {
      "verb": "string",
      "path": "string",
      "constraints": {},
      "updated_at": "2019-08-24T14:15:22Z"
    }
  ],
  "callbacks": [
    {
      "event": "string",
      "type": "string",
      "updated_at": "2019-08-24T14:15:22Z"
    }
  ],
  "jobs": [
    {
      "name": "string",
      "updated_at": "2019-08-24T14:15:22Z"
    }
  ],
  "schedules": [
    {
      "name": "string",
      "timing": "string",
      "data": {},
      "updated_at": "2019-08-24T14:15:22Z"
    }
  ]
}
Empty
{
  "message": "string",
  "code": 0,
  "errors": [
    {
      "resource": "string",
      "field": "string",
      "message": "string",
      "code": "string",
      "messages": [
        "string"
      ],
      "codes": [
        "string"
      ],
      "value": null
    }
  ]
}