Create Mission
Creates a mission for the API key’s team (same flow as the Folkyn app).
Required: name, description, mission_type, start_date, end_date, freelancer_id. For hourly, daily, or monthly, also send rate_amount > 0. For deliverable, send deliverables instead of rate_amount. Dates: YYYY-MM-DD.
Generate a services-agreement PDF (contract_type: services_agreement, default) — use_folkyn_template: true + team_signer_id, then either:
- Folkyn template:
template_locale=froren(no UUID needed). - Your team template:
folkyn_template_id= prestation template UUID from Folkyn Settings.
Generate a master-agreement PDF (contract_type: master_agreement): master_agreement_template_id + master_agreement_valid_until + team_signer_id.
Omit template fields to create a mission without a generated document. Optional: purchase_order, project_code_id, referent_id, approver_id.
Authorizations
Use Authorization: Bearer <your_api_key>
Body
Mission objectives, deliverables, and working conditions (same as the Folkyn app).
Billing model for the mission (Postgres enum mission_type). hourly / daily / monthly use rate_amount as the price per that unit in currency. deliverable missions bill via the deliverables catalog (quantities and line amounts); rate_amount may still be set as a reference but line totals come from catalog rows on mission detail.
hourly, daily, monthly, deliverable YYYY-MM-DD
YYYY-MM-DD
Active freelancer profile UUID on the team.
services_agreement, master_agreement Required for hourly, daily, and monthly missions (HT unit rate). Omit for deliverable missions.
Required when generating a contract from a template (folkyn_template_id or master_agreement_template_id). Active team member profile UUID as company signatory.
Active team-admin UUID — mission stays in draft until approved in the Folkyn app.
Set true to generate a services-agreement PDF from a DOCX template.
Folkyn default prestation template language. Use instead of folkyn_template_id when you do not have the template UUID.
fr, en Prestation template UUID — your team template (Settings) or a Folkyn global template. Alternative to template_locale.
Team DOCX template UUID (master_agreement only). Requires team_signer_id and master_agreement_valid_until.
Framework agreement end date (YYYY-MM-DD). Required with master_agreement_template_id.
Required when mission_type is deliverable.
Response
Created — same object as GET /api/v1/missions/{id}
