Authentication
Information on how to authenticate to the Step API endpoints
You can pass an API key in the query string as shown below:
curl https://api.step.finance/v1/endpoint?apiKey=<your-api-key>
Alternatively, you can provide the JWT in the Authorization
header of the request:
curl -H "Authorization: Bearer <your_access_token>" https://api.step.finance/v1/endpoint
To obtain a JWT, send a POST request to the /auth/login
endpoint. The request body should contain either an API Key or a Solana wallet with an on-chain subscription. See AuthApiKeyDto
and AuthSignDto
below.
Examples:
post
Authorizations
Body
authone ofRequired
or
or
Responses
201Success
post
POST /auth/login HTTP/1.1
Host:
Authorization: Bearer JWT
Content-Type: application/json
Accept: */*
Content-Length: 105
{
"auth": {
"publicKey": "text",
"cluster": "mainnet",
"timestamp": 1,
"signature": "text",
"useAltPublicKey": true
}
}
201Success
No content
Last updated