Authentication

post

Allows users to securely authenticate with API credentials through Auth0, and in return, provides a JSON Web Token (JWT) that can be used to access the rest of the API endpoints.

Authorizations
Body
client_idstringOptional
client_secretstringOptional
grant_typestring · enumOptionalDefault: client_credentialsPossible values:
audiencestring · enumOptionalDefault: stakingPossible values:
Responses
200
OK
application/json
post
POST /oauth/token HTTP/1.1
Host: ethereum-staking.sprd.validationcloud.io
Authorization: Bearer JWT
Content-Type: application/json
Accept: */*
Content-Length: 98

{
  "client_id": "text",
  "client_secret": "text",
  "grant_type": "client_credentials",
  "audience": "staking"
}
200

OK

{
  "access_token": "text",
  "scope": "text",
  "expires_in": "text",
  "token_type": "text"
}