Skip to content

Authentication

Authentication

Getting the token

You can get the authentication token by doing the following:

  1. Login to your SingleAPI account.
  2. Go to the Settings page.
  3. Click on the Generate new token button.
  4. 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"
}'