Scoped Authentication
Create business auth token
Creates a new auth token scoped to the specified business. The business auth token is used to authenticate Layer API requests from client-side applications. Note the return type is an AuthToken object rather than a standard Layer API response object.
POST
Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Headers
Content-Type must be set to application/json
Path Parameters
The UUID of the business to create a business-scoped auth token for
Body
application/json
Length, in seconds, this token will be valid. Default is (3600) 1 hour. Maximum is 24 hours (86400).