Skip to content

docs: document authentication token requirement for usage fields#2219

Merged
marcel-rbro merged 2 commits into
masterfrom
fix/issue-1145-document-token-requirement
Apr 17, 2026
Merged

docs: document authentication token requirement for usage fields#2219
marcel-rbro merged 2 commits into
masterfrom
fix/issue-1145-document-token-requirement

Conversation

@marcel-rbro

@marcel-rbro marcel-rbro commented Feb 3, 2026

Copy link
Copy Markdown
Contributor

Fixes #1145

Changes

Added documentation that authentication token is required to access usageTotalUsd and usageUsd fields.

Fields updated:

In Run schema (apify-api/openapi/components/schemas/actor-runs/Run.yaml):

  • usageTotalUsd: Added "Requires authentication token to access."
  • usageUsd: Added "Requires authentication token to access."

In Build schema (apify-api/openapi/components/schemas/actor-builds/Build.yaml):

  • usageTotalUsd: Added description with token requirement
  • usageUsd: Added description with token requirement

Why

These fields contain sensitive cost information and require authentication to access via the API. This was not previously documented, causing confusion for API users.

Testing

  • OpenAPI schemas updated with clear token requirement notes
  • Descriptions follow existing documentation style
  • Both Run and Build schemas updated for consistency

🤖 Generated with Claude Code


Note

Low Risk
Low risk because it only changes OpenAPI documentation strings and does not affect runtime behavior or API responses.

Overview
Updates the OpenAPI schemas for Actor Run and Build to explicitly document that cost-related fields usageTotalUsd and usageUsd require an authentication token to access.

This is a documentation-only change to schema field descriptions to reduce confusion around missing/unauthorized cost data.

Written by Cursor Bugbot for commit c128590. Configure here.

Add documentation that authentication token is required to access
usageTotalUsd and usageUsd fields in both Run and Build schemas.

These fields contain cost information and require authentication
to protect sensitive financial data.

Fixes #1145

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
@github-actions github-actions Bot added the t-docs Issues owned by technical writing team. label Feb 3, 2026
@apify-service-account

Copy link
Copy Markdown
Contributor

Preview for this PR was built for commit c128590 and is ready at https://pr-2219.preview.docs.apify.com!

marcel-rbro added a commit that referenced this pull request Feb 3, 2026
## Summary

Adds PR title format documentation to `.claude/instructions.md` to
prevent AI agents from creating PRs with incorrect titles that fail CI
checks.

## Problem

PR title format requirements were:
- ✅ Documented in `CONTRIBUTING.md:350` (link only, no examples)
- ✅ Enforced by `.github/workflows/check-pr-title.yaml`
- ❌ **Missing from `.claude/instructions.md`** (where AI looks first)

This caused all 4 Phase 1 PRs (#2216, #2217, #2218, #2219) to initially
fail CI checks and require manual title corrections.

## Solution

Added new "Creating pull requests" section in `.claude/instructions.md`
with:

- **Format requirements**: Conventional Commits (`docs:`, `fix:`,
`feat:`, etc.)
- **Clear examples**: Both correct (✅) and incorrect (❌) formats
- **Enforcement notice**: GitHub Actions validation
- **References**: Links to `CONTRIBUTING.md` and workflow file

## Location

Added after line 130 in the "Before submitting" section to keep all
pre-submission requirements together.

## Benefits

1. **Prevents errors**: AI agents know correct format upfront
2. **Faster workflow**: No manual fixes needed after PR creation
3. **Self-documenting**: Instructions where AI looks first
4. **Consistent**: Aligns with other pre-submission checks

## Testing

- [x] Section added to correct location
- [x] Markdown formatting correct (no linting errors)
- [x] Examples are clear and actionable
- [x] Consistent with existing documentation style

---

🤖 Generated with Claude Code

<!-- CURSOR_SUMMARY -->
---

> [!NOTE]
> **Low Risk**
> Documentation-only change with no code or workflow logic
modifications; risk is limited to potential confusion if the guidance is
inaccurate.
> 
> **Overview**
> Adds a new **“Creating pull requests”** section to
`.claude/instructions.md` that documents the required **Conventional
Commits** PR title format, with accepted type prefixes, good/bad
examples, and a note that CI enforces this via the PR title check
workflow (with references to `CONTRIBUTING.md` and
`.github/workflows/check-pr-title.yaml`).
> 
> <sup>Written by [Cursor
Bugbot](https://cursor.com/dashboard?tab=bugbot) for commit
c816d24. Configure
[here](https://cursor.com/dashboard?tab=bugbot).</sup>
<!-- /CURSOR_SUMMARY -->

Co-authored-by: Claude Sonnet 4.5 <noreply@anthropic.com>
@marcel-rbro marcel-rbro requested a review from TC-MO February 3, 2026 15:36
@danpoletaev danpoletaev force-pushed the fix/issue-1145-document-token-requirement branch from c128590 to 313af83 Compare March 6, 2026 21:57
@apify-service-account

Copy link
Copy Markdown
Contributor

Preview for this PR was built for commit 313af831 and is ready at https://pr-2219.preview.docs.apify.com!

@B4nan B4nan force-pushed the fix/issue-1145-document-token-requirement branch from 313af83 to c128590 Compare March 6, 2026 22:54
@apify-service-account

Copy link
Copy Markdown
Contributor

Preview for this PR was built for commit c1285905 and is ready at https://pr-2219.preview.docs.apify.com!

@TC-MO TC-MO left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Somehow this PR eluded me O.o. Either way, 2 minor nits since PPR has been removed, we can nuke mention of it from here and I'll make separate issue to go over whole reference to prune it

Comment thread apify-api/openapi/components/schemas/actor-runs/Run.yaml Outdated
Comment thread apify-api/openapi/components/schemas/actor-runs/Run.yaml Outdated
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@apify-service-account

Copy link
Copy Markdown
Contributor

Preview for this PR was built for commit fdce55c5 and is ready at https://pr-2219.preview.docs.apify.com!

@apify-service-account

Copy link
Copy Markdown
Contributor

A PR to update the Python client models has been created: apify/apify-client-python#739

This was automatically triggered by OpenAPI specification changes in this PR.

@marcel-rbro marcel-rbro merged commit 5091c6b into master Apr 17, 2026
15 checks passed
@marcel-rbro marcel-rbro deleted the fix/issue-1145-document-token-requirement branch April 17, 2026 14:00
vdusek pushed a commit to apify/apify-client-python that referenced this pull request Apr 18, 2026
This PR updates the auto-generated Pydantic models based on OpenAPI
specification changes in [apify-docs PR
#2219](apify/apify-docs#2219).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

t-docs Issues owned by technical writing team.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add information about token requirement

3 participants