Skip to main content

API authentication

Loop supports API key authentication. Your Loop contact will generate an API key for you. Here is an example:

lk_live_YSrYlIhKvj39etmrUG_6qHgmpUJpBYnkYHOjtJI5

To authenticate requests, provide the API key as a bearer token:

curl https://api.loop.com/v1/ping -H 'Authorization: Bearer <API_KEY>'

Use the /v1/ping endpoint to validate your API key. If your API key is valid, you will receive a response with HTTP status code 200.