Create a Project App
To create access tokens that allow access to the resources of a particular project only, Playfix allows you to create apps. Each app has a title and a unique access token that allows access to the resources of a specific project only.
Create an app.
POST
https://api.playfix.io/auth/apps
Headers
Authorization*
String
The account-level access token.
Bearer <your_access_token>
Request Body
active*
String
The activity status of the app. Set this to true
to make the app active.
title*
String
A title for the app.
Example cURL Call
Example Python Call
Request Body
title
- A title for the app.active
- The activity status of the app. Set this totrue
to make the app active.
Response
Response Fields
name
- A unique name of the app. This begins with apps/ followed by a ULID.privateKey
- A secret key that allows you to request an access token in the next step.
Get App Access Token
To get an access key for an app, send a POST request to the /auth/accounts
path, calling the :signInIdentity
method.
Example cURL Call
Example Python Call
Response
Response Field
accessToken
- The project-level access token for the application. You can use this to authorize API requests for the associated project.
Last updated