技能 产品商业 Procore API速率限制管理

Procore API速率限制管理

v20260423
procore-rate-limits
本技能提供使用Procore API进行项目管理自动化流程的指导。内容涵盖了OAuth2认证流程、标准API调用模式以及针对速率限制(429)和权限不足等错误的处理机制。适用于需要批量处理项目数据、RFI或提交文件的场景。
获取技能
212 次下载
概览

Procore Rate Limits

Overview

Implementation patterns for Procore rate limits using the REST API with OAuth2 authentication.

Prerequisites

  • Completed procore-install-auth setup

Instructions

Step 1: API Call Pattern

import os, requests

token_resp = requests.post("https://login.procore.com/oauth/token", data={
    "grant_type": "client_credentials",
    "client_id": os.environ["PROCORE_CLIENT_ID"],
    "client_secret": os.environ["PROCORE_CLIENT_SECRET"],
})
access_token = token_resp.json()["access_token"]
headers = {"Authorization": f"Bearer {access_token}"}

companies = requests.get("https://api.procore.com/rest/v1.0/companies", headers=headers)
print(f"Companies: {len(companies.json())}")

Output

  • Procore API integration for rate limits

Error Handling

ErrorCauseSolution
401 UnauthorizedExpired tokenRe-authenticate
429 Rate LimitedToo many requestsImplement backoff
403 ForbiddenInsufficient permissionsCheck project role

Resources

Next Steps

See related Procore skills for more workflows.

信息
分类 产品商业
名称 procore-rate-limits
版本 v20260423
大小 1.75KB
更新时间 2026-04-28
语言