ProfileClaw

API guide

Context API

Context API 是默认聚合入口,适合先拿到高信号职业上下文,再按需展开。

Path: /api/v1/context
Format: AI-first docs
信息

Contract-backed page

这一页直接从当前 OpenAPI 契约生成摘要,用来保证文档路径和正式接口保持一致。

GET /api/v1/context

Get aggregated agent context

Agent-first aggregated context endpoint. Use this as the default entrypoint to obtain high-signal profile + assessments + resume summary, and optionally expand additional sections.

Required scopes

  • read:context

Request

  • view (query): compact (default) returns summary only. full includes the full careerGraph by default.
  • expand (query): Comma-separated expansions. Example: expand=careerGraph,alerts. Allowed: careerGraph,dynamicContext,alerts,careerHealth,dataSharing.
  • query (query): Only used when expand includes dynamicContext.
  • timeRange (query): Only used when expand includes dynamicContext.
  • includeMemories (query): Only used when expand includes dynamicContext.
  • careerGraph (query): Fine-grained output control when careerGraph is included. Use summary to reduce payload size.
  • resumeSkillsLimit (query): Limits the number of resume skills included in summary views (and careerGraph=summary).
  • alertsLimit (query): Limits the number of alerts returned when expand includes alerts.

Responses

  • 200: OK
  • 304: Not Modified
  • 400: Bad request
  • 401:
  • 402:
  • 403:
  • 404: Context not found
  • 429:
  • 500:

Errors

  • context.invalid_view
  • validation.bad_request
  • context.not_found

Examples

Code sample (curl)
1curl "https://api.profileclaw.com/api/v1/context" -H "Authorization: Bearer $PROFILECLAW_API_KEY"
Code sample (curl)
1curl "https://api.profileclaw.com/api/v1/context" -H "X-API-Key: $PROFILECLAW_API_KEY"
Code sample (curl)
1curl "https://api.profileclaw.com/api/v1/context?view=full" -H "Authorization: Bearer $PROFILECLAW_API_KEY"
Code sample (curl)
1curl "https://api.profileclaw.com/api/v1/context?expand=dynamicContext&query=product%20management&timeRange=recent" -H "Authorization: Bearer $PROFILECLAW_API_KEY"
Code sample (curl)
1curl "https://api.profileclaw.com/api/v1/context?expand=careerGraph&careerGraph=summary&resumeSkillsLimit=20" -H "Authorization: Bearer $PROFILECLAW_API_KEY"
Code sample (curl)
1curl "https://api.profileclaw.com/api/v1/context" -H "Authorization: Bearer $PROFILECLAW_API_KEY" -H 'If-None-Match: "<etag-from-previous-response>"'

Related surfaces

Use these surfaces when you need deeper inspection or automation.