Skip to main content
POST

Authorizations

Authorization
string
header
required

Use Authorization: Bearer <your_api_key>

Body

application/json
name
string
required
description
string
required

Mission objectives, deliverables, and working conditions.

mission_type
enum<string>
required

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.

Available options:
hourly,
daily,
monthly,
deliverable
start_date
string<date>
required

YYYY-MM-DD

end_date
string<date>
required

YYYY-MM-DD

freelancer_id
string<uuid>
required

Active freelancer profile UUID on the team.

contract_type
enum<string>
default:services_agreement
Available options:
services_agreement,
master_agreement
rate_amount
number

Required for hourly, daily, and monthly missions (HT unit rate). Omit for deliverable missions.

deliverables
object[]

Required when mission_type is deliverable.

team_signer_id
string<uuid>

Required when generating a contract from a template (folkyn_template_id or master_agreement_template_id). Active team member profile UUID as company signatory.

purchase_order
string
project_code_id
string<uuid>
approver_id
string<uuid>

Active team-admin UUID — mission stays in draft until approved.

use_folkyn_template
boolean

Set true to generate a services-agreement PDF from a DOCX template.

template_locale
enum<string>

Default prestation template language. Use instead of folkyn_template_id when you do not have the template UUID.

Available options:
fr,
en
folkyn_template_id
string<uuid>

Prestation template UUID. Alternative to template_locale.

master_agreement_template_id
string<uuid>

Team DOCX template UUID (master_agreement only). Requires team_signer_id and master_agreement_valid_until. Ignored when the freelancer already has a current framework agreement (in progress or awaiting signature).

master_agreement_valid_until
string<date>

Framework agreement end date (YYYY-MM-DD). Required with master_agreement_template_id. Ignored when an existing framework agreement is reused.

Response

Created — same object as GET /api/v1/missions/{id}

data
object