Remove a worker
LiveServed by the v1 API in development with the same checks as production; production opens on the same contract. The capabilities from before v1 keep running in production at the path your account team gives you.
Stops all services for the worker. Records already issued are kept as the law requires.
Needs the workers:write scope.
oauth2 workers:writeAuthorizationBearer <token>OAuth 2.0 client credentials. Exchange your client_id and client_secret at /oauth/token of the environment for a bearer token valid for one hour. The playground of every operation asks for your own client and keeps it in your browser tab only.
Scope: workers:write
id*stringThe worker id.
^wrk_[0-7][0-9a-hjkmnp-tv-z]{25}$Removed
curl -X DELETE 'https://api.dev.b2b.heru.app/v1/workers/wrk_01m4rg2a7kf1z8v3c6n9d5t4hq'Create an enrollment linkPOST
Creates a new signed enrollment link for the worker, valid for 7 days. Any previous link stops working. Use it when the first link expired, or when the worker has something to do again, such as renewing their e.firma (`renew_efirma`). The current link always comes in `enrollment` when you get the worker. Needs the `workers:write` scope.
List workersGET
Workers of your company, newest first, in pages of up to 500. Filter by your own id, by status or by RFC.