Spikes Studio API Authentication
Bearer token authentication is a method for authenticating API requests. It involves including a bearer token in the Authorization header of the request. The bearer token is a cryptic string generated Spikes API server and is used by the client to authenticate subsequent requests.
Token should be included in ALL API requests.
How It Works
Obtain a Bearer Token
- The Bearer token is provided by Spikes Studio and should be kept secure.
Include Bearer Token in Requests:
- To authenticate requests, include the Bearer token in the
Authorization
header of your HTTP requests. - Example Authorization header:
Authorization: Bearer your_bearer_token
Including Bearer Token in Requests
Using Postman
- Open Postman and create a new request.
- In the Headers section, add a key-value pair for Authorization, with the value being Bearer [your_spikes_api_token].
- Send the request.
Using Programming Language
import requests
url = 'https://api.spikes.studio/api/v1/api/project'
headers = {
'Authorization': 'Bearer your_bearer_token'
}
response = requests.get(url, headers=headers)
print(response.json())
Conclusion
Bearer token authentication is a simple yet effective way to authenticate API requests. By including the Bearer token in the Authorization header, you can securely access protected resources on the API server.