🦀 ClawHub
Youdo Business
by @thisisevgeniy
Work with the YouDo Business API. Use when asked to interact with YouDo Business to manage employees, projects, tasks, payments, webhooks, or generate signed...
TERMINAL
clawhub install youdo-business📖 About This Skill
name: youdo-business description: Work with the YouDo Business API. Use when asked to interact with YouDo Business to manage employees, projects, tasks, payments, webhooks, or generate signed API requests.
YouDo Business API Skill
This skill provides the knowledge and guidelines for interacting with the YouDo Business API.
Base URLs
https://business-api.youdo.com/api/v1https://business-api.public-test.youdo.sg/api/v1https://business-api.youdo.com/api/doc/index.htmlAuthentication
All requests use JSON Web Token (JWT) signed with the RS256 asymmetric algorithm.
Authorization: Bearer {"alg": "RS256", "typ": "JWT", "kid": ""} {"iss": "", "cid": ""} Request Signing
Certain methods (like /api/v1/Task/{taskId}/pay) require request signing. You must include the following headers:
Date: Current time, RFC 7231 (e.g., Tue, 19 Feb 2019 08:43:02 GMT)Content-SHA256: SHA256 hex hash of the request body (empty string for GET).Signature: RS256 signed hex string of the request string.String to Sign format:
Uppercase(RequestMethod) + "\n"
RequestPath + "\n"
RequestQuery + "\n" // Alphabetically sorted, URLEncoded
SignedRequestHeaders + "\n" // Alphabetically sorted, lowercased keys
SHA256Hex(RequestPayload)
Key Endpoints
Employees (Исполнители)
POST /Employeephone, firstName, lastName, inn, projectId
GET /Employee/{id}POST /Employe/search (Body: projectIds, employeeName, inns, phones, itemsPerPage, page)GET /Employe/byPhone/{phone}POST /Employee/addToProjectDELETE /Employee/{id}/deleteFromProject/{projectId}PUT /Employee/{id}/binding/restartProjects (Проекты)
GET /Project/ProjectsTasks & Payments (Задания и выплаты)
POST /Task/internalPOST /Task/externalGET /Task/{taskId}PUT /Task/{taskId}POST /Task/{taskId}/pay (Requires request signing)PUT /Task/{taskId}/resendOfferDocuments (Документы)
GET /Documents/{documentId}GET /Documents/{documentId}/certificatePayments Report (Отчет агента)
POST /Payments (Body: from, to, inn, taskIds, ids)Framework Agreements (Рамочные соглашения)
GET /FrameworkAgreements/employees/{employeeId}/projects/{projectId}POST /FrameworkAgreementsPOST /FrameworkAgreements/{agreementId}/stopPrepayment Invoices (Счета на предоплату)
POST /prepaymentInvoices (Body: companyId, amount)GET /prepaymentInvoices/{id}Balance (Баланс)
GET /Balance/byCompany?companyId={id}GET /Balance/byProject?projectId={id}Webhooks
POST /WebHook/subscribe (Body: type, url, headers)DELETE /WebHook/{type}/unsubscribe