ROCKITPLAY API
  1. Authentication
ROCKITPLAY API
  • ROCKIT Edge - Admin API
    • Minimal Tests
      • ping
      • submit test task
    • Admin Edge Organizations
      • Create Organization
      • Delete Organization
  • ROCKIT Edge - Backend API
    • Backend Edge Organizations
      • Create Organization
      • Delete Organization
    • Authentication
      • user login
        POST
      • authentication
        POST
    • Account Management
      • get user details
      • list users
      • Modify user
      • delete users
      • Create User / Create Machine User
    • Deployments
      • Creating Deployments
      • Get Deployments
      • Get Deployment Details
      • Modify Deployment
      • Deleting Deployments
    • Apps
      • Creating Apps
      • Import native builds
      • App Details
      • List Apps
      • patch app
      • Delete Apps
    • Triggers
      • Process Traces
      • Retry Task
    • Tasks
      • Listing Tasks
      • Task Details
      • Acknowledge Warning / Expire Task
    • Subscriptions
      • Subscribe
      • List Subscriptions
      • Unsubscribe
    • Roles
      • List Roles
      • Create Role
      • Patch Role
      • Role Details
      • Delete Roles
  • Changelog
    • Changelog
  1. Authentication

authentication

POST
https://Example-Server.com/be/v1/auth
Last modified:2025-03-31 07:46:34
This endpoint allows users with a valid backend user session token (POST /be/v1/login) to obtain a backend authentication token.
The returned token has a lifetime of 5m.

Request

Header Params
x-rockit-besession-token
string 
required
ROCKIT Edge session token (POST /be/v1/login)
Example:
{{_edge_org_admin_besession_token}}
Content-Type
string 
required
Example:
application/json

Request samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://Example-Server.com/be/v1/auth' \
--header 'x-rockit-besession-token: eyFHsHDfjdsdH...' \
--header 'Content-Type: application/json'

Responses

🟢200Success
application/json
Body
status
string 
required
Indicates that the authentication request was successful.
auth
object 
required
Contains the backend authentication token details:
token
string 
required
The authentication token used for accessing protected backend endpoints.
expires
integer 
required
A UNIX timestamp (integer) indicating when the token expires (the token has a short lifetime of 5 minutes).
Example
{
  "status": "success",
  "auth": {
    "token": "eyJhbGc...",
    "expires": 1727679037
  }
}
🟠400missing-param
🟠401token-expired
Previous
user login
Next
Account Management
Built with