Skip to content
This repository has been archived by the owner on Oct 22, 2024. It is now read-only.

Commit

Permalink
Update base.mdx (#226)
Browse files Browse the repository at this point in the history
  • Loading branch information
xeust authored Dec 3, 2023
1 parent 5827f6e commit 6da60ae
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/content/docs/build/reference/http-api/base.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -7,21 +7,21 @@ import RequestTabs from "@/components/Tabs/RequestTabs.astro";

## General & Auth

> You can get your **Data Key** and your **Project ID** of your Project in [Builder](/docs/en/build/fundamentals/development/builder). You need these to talk with the Deta API.
> Get a [**Data Key**](/docs/en/use/your-data/collections#data-keys) . If it's a Builder project, get it from [Builder](/docs/en/build/fundamentals/development/builder). Your Collection ID is the first chars of the Data Key, before the `_`. You need these to talk with the Deta API.
> ℹ️ Base currently supports **maximum 16 digit numbers** (integers and floating points), please store larger numbers as a string.
### Root URL
This URL is the base for all your HTTP requests:

**`https://database.deta.sh/v1/{project_id}/{base_name}`**
**`https://database.deta.sh/v1/{collection_id}/{base_name}`**

> The `base_name` is the name given to your database. If you already have a **Base**, then you can go ahead and provide it's name here. Additionally, you could provide any name here when doing any `PUT` or `POST` request and our backend will automatically create a new base for you if it does not exist. There is no limit on how many "Bases" you can create.
### Auth
A [Data Key](/docs/en/build/fundamentals/data-storage#data-keys) _must_ to be provided in the request **headers** as a value for the `X-API-Key` key for authentication. This is how we authorize your requests.

Example `'X-API-Key: a0abcyxz_aSecretValue'`.
Example `'X-API-Key: a0abcyxzxsr_aSecretValue'`.

> Data Keys were called Project Keys in earlier versions of Deta.
Expand Down Expand Up @@ -454,4 +454,4 @@ List items that match a [query](/docs/en/build/reference/deta-base/queries).

## Issues

If you run into any issues, consider reporting them in our [Discord](https://discord.com/channels/827546555200438332/1033448769548734524).
If you run into any issues, consider reporting them in our [Discord](https://discord.com/channels/827546555200438332/1033448769548734524).

0 comments on commit 6da60ae

Please sign in to comment.