# Basics

### Authentication <a href="#authentication" id="authentication"></a>

First, you must obtain your OCTO API Key. See [Request Access](/getting-started/request-access.md) for details.

OCTP uses Bearer authentication which you can use to authenticate:

```
GET integrations/octo/products HTTP/1.1
Host: octo.peek.com
Authorization: Bearer 5bd1629a-323e-4edb-ac9b-327ef51e6136
```

{% hint style="info" %}
All communication must be sent over HTTPS
{% endhint %}

If the token is invalid or is deactivated a HTTP 403 Forbidden error will be returned.

### JSON Content Type

Every `POST`, `PATCH` and `DELETE` request must use `Content-Type: application/json` header and the request body must be a JSON encoded string. Every endpoint will return JSON unless otherwise stated.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://octodocs.peek.com/getting-started/basics.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
