Authentication

Authentication for accessing the API is handled through API tokens, which can be generated and managed within the user's account settings. API tokens provide a secure way to authenticate API requests and ensure that only authorized users can access the API resources. Users must include their API token in every API request either as a header parameter named "X-Api-Token" or as a query parameter named "apiToken". The API token serves as a unique identifier for the organization's account and grants access to the specified API endpoints based on the user's permissions.

$ curl -X GET 'https://api.ocean.io/v2/endpoint' -H 'X-Api-Token: YOUR_API_TOKEN_HERE'

or

curl -X POST 'https://api.ocean.io/v1/endpoint?apiToken=YOUR_API_TOKEN_HERE' -d '{ "name": "New Data", "description": "This is a new data entry." }'