POST
/
v1
/
core
/
oauth
/
apps
/
{clientId}
/
access-token
Create a new OAuth access token for a given OAuth app.
curl --request POST \
  --url https://us-central1-siro-prod.cloudfunctions.net/api-externalApi/v1/core/oauth/apps/{clientId}/access-token \
  --header 'Content-Type: application/json' \
  --data '{
  "clientSecret": "<string>",
  "userId": "<string>",
  "scope": "read"
}'
{
  "accessTokenId": "<string>",
  "accessToken": "<string>"
}

Path Parameters

clientId
string
required

Body

application/json
clientSecret
string
required

The OAuth app client secret returned in the POST /oauth/apps response.

userId
string
required

The user that this token will be bound to

scope
enum<string>
required

One of ("read", "write"). This will restrict what HTTP verbs the token has access to.

Available options:
read,
write

Response

200 - application/json

Create a new OAuth access token for a given OAuth app.

accessTokenId
string
required
accessToken
string
required