Authentication
SFOX uses API keys to grant access. You can create a new SFOX API key at our developer portal.
The API key should be included in all API requests to the server in the Authorization header as a Bearer token:
Shell
NodeJS
Python
1
curl -H 'Authorization: Bearer <API_TOKEN>' 'https://api.sfox.com/v1/...'
Copied!
1
const axios = require('axios');
2
3
axios({
4
method: 'get',
5
url: 'https://api.sfox.com/...',
6
headers: {
7
'Authorization': 'Bearer <API_KEY>'
8
}
9
}).then(response => {
10
console.log(response)
11
}).catch(err => {
12
console.error(err)
13
});
Copied!
1
import requests
2
3
data = requests.get(
4
"https://api.sfox.com/...",
5
headers={
6
"Authorization": "Bearer <API_KEY>",
7
}
8
)
9
print(data)
Copied!
Copy link