Create an application

Create and provision a machine application for your business. The client secret is returned only in this response and is not stored by Penny.

Required permissions: permission:create.

Authentication

AuthorizationBearer

Bearer authentication of the form Bearer <token>, where token is your auth token.

Headers

X-Penny-As-Businessstring or nullOptional

Act on behalf of another business that has granted you access. Requires the business:act_as permission.

Request

This endpoint expects an object.
namestringRequired1-100 characters
A recognizable name for the service or integration.
descriptionstringRequired1-500 characters
What the application does and why it needs access to your Penny account.
role_idslist of stringsOptional
Custom or preset role IDs to assign to the application. An application can hold at most ten roles.
permissionslist of objectsOptional

Permissions granted directly to the application in addition to permissions inherited from roles. Every permission is scoped to your business; scope, sub-type, and resource-ID restrictions are not client-configurable.

activebooleanOptionalDefaults to true
Whether the application can request access tokens immediately after creation.

Response

The newly created application, including its one-time client secret.

applicationobject
The newly created application.
credentialsobject

The one-time credentials for the newly created application.

Errors

400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error
422
Unprocessable Entity Error
429
Too Many Requests Error
500
Internal Server Error