Authentication
Authentication
Getting the token
You can get the authentication token by doing the following:
- Login to your SingleAPI account.
- Go to the Settings page.
- Click on the
Generate new token
button. - Copy the token and save it somewhere safe.
Usage
You can use the authentication token by sending it as a Bearer token in the request header.
Expected header format:
Authorization: Bearer <YOUR_TOKEN>
Example:
curl --request POST \
--url https://api.singleapi.co/functions/v1/scrape \
--header 'Authorization: Bearer <YOUR_TOKEN>' \
--data '{
"url": "https://news.ycombinator.com/",
"schemaId": "YOUR_SELECTED_SCHEMA_ID"
}'