Generate Token
DevelopingPOST
/oauth/tokenWe implement OAuth 2.0 to provide a secure API. This means all our endpoints are secured and can only be accessed with calls that are authenticated with OAuth2 tokens.
To obtain OAuth2 tokens, you must first authenticate with our authentication endpoint.
The client_id
, client_secret
, and sharplaunch_id
will be provided to you by SharpLaunch. Please contact us at info@sharplaunch.com to request your credentials.
Please store your client_id
and client_secret
securely.
Do not expose them in public repositories or client-side code.
Think of them as your username and password.
Request
Responses
The access token you will use to authenticate all the API requests
The token type. The value will be "Bearer"
The token expiration time in seconds
The refresh token you can use to obtain a new access token when the current one expires
{
"access_token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiYWRtaW4iOnRydWUsImlhdCI6MTUxNjIzOTAyMn0.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c",
"token_type": "Bearer",
"expires_in": 1800,
"refresh_token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIwOTg3NjU0MzIxIiwibmFtZSI6IkphbmUgU21pdGgiLCJhZG1pbiI6ZmFsc2UsImlhdCI6MTYxNjIzOTAyMn0.dB0C-jzBcC_J-BuGRZ6cyx8Y3PzTLHXZtG4b5v8rg6k"
}