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
curl -H 'Authorization: Bearer <API_TOKEN>' 'https://api.sfox.com/v1/...'
const axios = require('axios');
axios({
method: 'get',
url: 'https://api.sfox.com/...',
headers: {
'Authorization': 'Bearer <API_KEY>'
}
}).then(response => {
console.log(response)
}).catch(err => {
console.error(err)
});
import requests
data = requests.get(
"https://api.sfox.com/...",
headers={
"Authorization": "Bearer <API_KEY>",
}
)
print(data)
Copy link