Skip to content

Conversation

@laviniat1996
Copy link
Collaborator

closes #1025

Adds a page that explains how devs can use the API keys for v2 API

@github-actions

This comment has been minimized.

@laviniat1996
Copy link
Collaborator Author

/review

@laviniat1996 laviniat1996 self-assigned this Dec 1, 2025
Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the updates in ecosystem/api/toncenter/v2-authentication.mdx: I’ve left a couple of suggestions, so please apply the inline suggestions.

## Overview

The API v2 requires an API key for all methods, including the JSON-RPC endpoint. The key can be sent either in an HTTP header or as a query parameter.
To obtain an API key, please follow [this guide](./get-api-key).
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[HIGH] Relative internal link path in v2 authentication doc

Line 8 links to the API key guide using a relative URL ./get-api-key. The extended style guide requires internal links to be root‑absolute and forbids ./ or ../ segments in Markdown link URLs (see https://github.com/ton-org/docs/blob/main/contribute/style-guide-extended.mdx?plain=1#L633-L637). Using a relative link here is brittle if the file moves and breaks consistency with other docs. This is treated as HIGH severity because link stability is critical for navigation and long‑term maintainability.

Suggested change
To obtain an API key, please follow [this guide](./get-api-key).
To obtain an API key, see the [TON Center API key guide](/ecosystem/api/toncenter/get-api-key).

Please leave a reaction 👍/👎 to this suggestion to improve future reviews for everyone!

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed

Comment on lines 23 to 27
```bash
curl "https://<host>/api/v2/getMasterchainInfo" \
-H "X-API-Key: <YOUR_API_KEY>"
```

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[HIGH] Placeholders in curl examples are not defined on first use

The curl examples introduce placeholders <host>, <YOUR_API_KEY>, and <API_KEY> in commands without defining what each placeholder represents when they first appear (lines 24–25 and 33). The style guide requires placeholders in examples to follow the <ANGLE_CASE> convention and to be explicitly defined at first use to reduce copy/paste errors. Without nearby definitions, readers may be unsure which concrete values to substitute, especially for <host> and the difference (if any) between <YOUR_API_KEY> and <API_KEY>. Adding a short definitions block immediately after the first example keeps the examples self-contained and safer to reuse.

Please leave a reaction 👍/👎 to this suggestion to improve future reviews for everyone!

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed

@laviniat1996
Copy link
Collaborator Author

/review

@laviniat1996 laviniat1996 added the 3p Reviewed by someone else (a third party). Used for filtering PRs. Don't mind this. label Dec 1, 2025
Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No documentation issues detected.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3p Reviewed by someone else (a third party). Used for filtering PRs. Don't mind this.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[TON Center > API/v2 > Authentication]

2 participants