Develop
Develop
Select your platform

Generate Federated User Access Token API

Updated: Oct 1, 2025
This topic provides reference for the API used to generate a federated user access token.

Generate Federated User Access Token (PERSISTENT ID)

Generates an access token for the federated user with the specified persistent ID.
Method:
POST
Endpoint:
https://graph.oculus.com/{federated_app_id}/federated_user_gen_access_token/

Path Parameters

The following table lists the API’s URL path parameters.
NameDescription
{federated_app_id}
The federated application ID which can be obtained from the Developer Dashboard API page.

Query Parameters

The following table lists the API’s query parameters.
NameDescriptionOptionalType
persistent_id
A unique immutable ID that is used for federated user indexing.
 
String
access_token
Bearer token that contains OC|$APP_ID |$APP_SECRET
 
String

Response

The following table describes the JSON payload received in the API response.
NameDescriptionOptionalType
access_token
A federated access token for a federated user create under the same developer team as the targeted federated app belongs to.
 
 

Errors

The following conditions will result in errors:
  • A federated app with the specified app ID does not exist.
  • A federated user with the specified persistent ID does not exist.
Did you find this page helpful?