Employees

View as Markdown

List Published Employees

GET/api/v1/employees/published

Public catalog: published AI Employees only.

Errors

CodeWhenWhat to do
422Validation Error—
Request
curl "https://app.opvs.ai/api/v1/employees/published" \
  -H "Authorization: Bearer $OPVS_TOKEN"

List Employees

GET/api/v1/employees

Admin view: all AI Employee products, filterable.

Errors

CodeWhenWhat to do
422Validation Error—
Request
curl "https://app.opvs.ai/api/v1/employees" \
  -H "Authorization: Bearer $OPVS_TOKEN"

List My Hires

GET/api/v1/employees/hires

"Your team": the brand's hired AI employees, one card per hire.

Errors

CodeWhenWhat to do
422Validation Error—
Request
curl "https://app.opvs.ai/api/v1/employees/hires" \
  -H "Authorization: Bearer $OPVS_TOKEN"

Get My Hire

GET/api/v1/employees/hires/{hire_id}

One hire card for the onboarding poll. 404 if the brand holds no such hire.

Errors

CodeWhenWhat to do
422Validation Error—
Request
curl "https://app.opvs.ai/api/v1/employees/hires/{hire_id}" \
  -H "Authorization: Bearer $OPVS_TOKEN"

Get My Hire Profile

GET/api/v1/employees/hires/{hire_id}/profile

The catalog profile a hire was made from, whatever its state is now.

Errors

CodeWhenWhat to do
422Validation Error—
Request
curl "https://app.opvs.ai/api/v1/employees/hires/{hire_id}/profile" \
  -H "Authorization: Bearer $OPVS_TOKEN"

Get My Hire Skills

GET/api/v1/employees/hires/{hire_id}/skills

Return installed-package records equipped on a brand-owned hire.

Errors

CodeWhenWhat to do
422Validation Error—
Request
curl "https://app.opvs.ai/api/v1/employees/hires/{hire_id}/skills" \
  -H "Authorization: Bearer $OPVS_TOKEN"

Get Employee For Admin

GET/api/v1/employees/by-slug/{slug}

Admin editor read for one employee profile in any publication state.

Errors

CodeWhenWhat to do
422Validation Error—
Request
curl "https://app.opvs.ai/api/v1/employees/by-slug/{slug}" \
  -H "Authorization: Bearer $OPVS_TOKEN"

List Profile Hires

GET/api/v1/employees/{profile_id}/hires

Cross-brand hires drilldown for the admin Hires tab (5.4).

Errors

CodeWhenWhat to do
422Validation Error—
Request
curl "https://app.opvs.ai/api/v1/employees/{profile_id}/hires" \
  -H "Authorization: Bearer $OPVS_TOKEN"

Get Employee

GET/api/v1/employees/{slug}

A single AI Employee product by slug.

Errors

CodeWhenWhat to do
422Validation Error—
Request
curl "https://app.opvs.ai/api/v1/employees/{slug}" \
  -H "Authorization: Bearer $OPVS_TOKEN"

Hire Employee

POST/api/v1/employees/{profile_id}/hire

Hire an AI Employee — direct provisioning, dispatcher-gated (Wave 8.A).

Errors

CodeWhenWhat to do
422Validation Error—
Request
curl -X POST "https://app.opvs.ai/api/v1/employees/{profile_id}/hire" \
  -H "Authorization: Bearer $OPVS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{}'

Cancel Hire

POST/api/v1/employees/hires/{hire_id}/cancel

Cancel at period end — the agent keeps running until ``current_period_end``.

Errors

CodeWhenWhat to do
422Validation Error—
Request
curl -X POST "https://app.opvs.ai/api/v1/employees/hires/{hire_id}/cancel" \
  -H "Authorization: Bearer $OPVS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{}'

Cancel Hire Immediate

POST/api/v1/employees/hires/{hire_id}/cancel-immediate

Cancel now — ref-counted marketplace disable + record delete + ``canceled``.

Errors

CodeWhenWhat to do
422Validation Error—
Request
curl -X POST "https://app.opvs.ai/api/v1/employees/hires/{hire_id}/cancel-immediate" \
  -H "Authorization: Bearer $OPVS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{}'

Equip Hire

POST/api/v1/employees/hires/{hire_id}/equip

Equip a marketplace package (a profession, or any package) onto a live hire.

Errors

CodeWhenWhat to do
422Validation Error—
Request
curl -X POST "https://app.opvs.ai/api/v1/employees/hires/{hire_id}/equip" \
  -H "Authorization: Bearer $OPVS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{}'
Did this answer your question?