Privicore
  1. OAuth Application
Privicore
  • Privicore API
  • Utility
    • Utility
    • Check server health
      GET
    • Request command id status
      GET
  • Profile
    • Profile Model and Authentication Workflow
    • Register new profile
      POST
    • Authenticate
      POST
    • Retrieve profile id
      GET
    • Change password
      POST
    • Generate qr token for authorization
      POST
    • Reauthorize authorization token
      POST
    • Revoke authorization token
      POST
    • Retrieve token expiry
      POST
  • OAuth Application
    • Register OAuth Application
      POST
    • Retrieve OAuth app configuration
      POST
    • Request OAuth app authorization code
      GET
    • Retrieve OAuth app authorization code
      POST
    • Obtain OAuth app access token
      POST
    • OAuth application list
      GET
    • Retrieve OAuth application scope
      GET
    • Refresh OAuth app access token
      POST
  • Public key
    • Generate your private and public keys
      GET
    • Register public key
      POST
    • Retrieve public key
      GET
    • Retrieve CAB public key
      GET
  • Data Token
    • Reserve token space
    • Retrieve temporary data token
    • Exchange data for token
    • Upstream file via stream auth
    • Request data via token
    • Download data
    • Configure information security risk meta
    • Configure file meta
    • List data tokens
    • Update data token
    • Delete data
  • Device
    • Request unique identifier (i.e. Register new device)
    • Retrieve unique identifier
    • Retrieve profile devices
    • Configure device meta
    • Approve device
    • Reject device
    • Retrieve device configuration
    • Remove device
  • Storage
    • Register storage device
    • List storage devices
    • Synchronize device
    • Remove storage
  • Verified authenticator
    • Register authenticator
    • List verified authenticators
    • Retrieve voting strategy
    • Set quorum size
    • Set quorum strategy
    • Set voting time limit
    • Set maximum voting attempts
    • Remove authenticator
  • Policy
    • List policy templates
    • Register policy
    • List active policies
    • List inactive policies
    • Activate policy
    • Deactivate policy
    • Delete policy
  • Directory
    • Register Directory
    • Retrieve owned Directories
    • Retrieve assigned directories
    • Retrieve Directory
    • Create Directory User
    • Update user information
    • Invite Profile
    • Set profile password
    • List Directory Invites
    • Process Invitation
    • Retrieve directory profile
    • List directory users
    • Directory profiles info
    • Create profile device
    • Add storage device to profile
    • List directory devices
    • Create directory voting pool
    • Store directory meta information
  • Voting
    • Create voting
    • Check pool status
  1. OAuth Application

Obtain OAuth app access token

POST
/oauth-application/obtain-access-token
OAuth Application
Obtain OAuth app access token

Request

Header Params
Authorization
string 
required
Example:
Basic {{oauth_autorization_code}}
Body Params application/x-www-form-urlencoded
authorization_code
string 
required
Example:

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://stage.privicore.com:9009/oauth-application/obtain-access-token' \
--header 'Authorization;' \
--data-urlencode 'authorization_code='

Responses

🟢200OK
application/json
OK
Body
clientId
string 
optional
Example:
example_client_id
token
string 
optional
Example:
example_access_token
refreshToken
string 
optional
Example:
example_refresh_token
type
string 
optional
Example:
bearer
scope
string 
optional
Example:
all
expiresAt
string 
optional
Example:
2025-02-10T10:03:06+00:00
refreshTokenExpiresAt
string 
optional
Example:
2025-02-10T10:03:06+00:00
Example
{
  "clientId": "example_client_id",
  "token": "example_access_token",
  "refreshToken": "example_refresh_token",
  "type": "bearer",
  "scope": "all",
  "expiresAt": "2025-02-10T10:03:06+00:00",
  "refreshTokenExpiresAt": "2025-02-10T10:03:06+00:00"
}
🟠401Unauthorized
🟠403Forbidden
🟠404Record Not Found
🟠422Parameter Error
Previous
Retrieve OAuth app authorization code
Next
OAuth application list
Built with