Quick Start
This is a quick overview to getting started with the Rollup API using standard API Key authentication.
Authenticating with the Rollup API
Using API Keys
Create a new API key
Go to Settings
-> Developer Settings
-> API keys
Add a label, then select the permissions for the key
How to use the API key in requests
The API key should be sent as x-api-key
header.
Hello World Example with API Key
curl --location 'https://api.rollup.ai/v1/workspace' \
--header 'x-api-key: <YOUR-API-KEY>'
const apiKey = "<YOUR-API-KEY>";
const myHeaders = new Headers();
myHeaders.append("x-api-key", apiKey);
const requestOptions = {
method: "GET",
headers: myHeaders,
redirect: "follow"
};
fetch("https://api.rollup.ai/v1/workspace", requestOptions)
.then((response) => response.text())
.then((result) => console.log(result))
.catch((error) => console.error(error));
import http.client
conn = http.client.HTTPSConnection("api.rollup.ai")
payload = ''
headers = {
'x-api-key': '<YOUR_API_KEY>',
}
conn.request("GET", "/v1/workspace", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
Last updated