> For the complete documentation index, see [llms.txt](https://docs.jamaibase.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.jamaibase.com/developer-reference/openapi-documentation/making-your-first-api-request.md).

# Making your first API request

#### Prerequisites

* JamAI Base account: [sign up ](https://jamai.us.auth0.com/u/signup?state=hKFo2SBuZk1mVHZlNXhjRHEteHBjdGkwVUVsQ2RxU3M3MnAxY6Fur3VuaXZlcnNhbC1sb2dpbqN0aWTZIFFiamtaS3k2OUw4QUExY0dEZndYZGZxeFNaalJvaVFio2NpZNkgNGR5YUhDc3UwcEZ5Zzh0S2Rtc1ZjV0N2eGw1N1JibnI)
* A project and its project ID: Create a new project
* Personal Access Token (PAT): Generate in Account Settings (can be global or scoped to a project)&#x20;

#### Getting Started

1\) Create a Personal Access Token (PAT)&#x20;

Create a PAT with the scopes your role needs. You may:&#x20;

* Scope to a specific project (recommended for least privilege), or
* Leave unscoped to use the PAT across all projects.

Include the PAT on every request using Bearer auth:&#x20;

```
Authorization: Bearer <YOUR_PAT> 
```

{% hint style="info" %}
Using our API reference doc/ Swagger UI? Paste your PAT into the Bearer token field.
{% endhint %}

2\) Get project information (quick smoke test)&#x20;

This call returns project metadata, including LLM token usage and DB storage usage. It also verifies your PAT and project\_id.

```
curl --request GET \
     --url 'https://api.jamaibase.com/api/v2/projects?project_id=<project_id>' \
     --header 'Authorization: Bearer <your PAT>' \
     --header 'accept: application/json'
```

Expected results&#x20;

* 200 OK — Project details returned (includes usage fields).
* 422 Unprocessable Entity — Validation error (e.g., missing/invalid project\_id).


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://docs.jamaibase.com/developer-reference/openapi-documentation/making-your-first-api-request.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
