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-Business
Act on behalf of another business that has granted you access. Requires the business:act_as permission.
Request
This endpoint expects an object.
name
A recognizable name for the service or integration.
description
What the application does and why it needs access to your Penny account.
role_ids
Custom or preset role IDs to assign to the application. An application can hold at most ten roles.
permissions
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.
active
Whether the application can request access tokens immediately after creation.
Response
The newly created application, including its one-time client secret.
application
The newly created application.
credentials
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