Skip to content
Skip to Content
Coder Docs

Request a trial license

POST
/api/v2/licenses/trial

Authorization

CoderSessionToken
headerCoder-Session-Token<token>

Request Body

Trial license request

application/json
  1. body
attribution_id?string

AttributionID is the ID of the cta_click funnel event that led here, so that a signup can be joined back to the paywall that produced it.

Formatuuid
company_name*string
Length2 <= length <= 100
country*string
developers*string
email*string
Formatemail
Lengthlength <= 254
first_name*string
Length1 <= length <= 60
job_title*string
Length2 <= length <= 100
last_name*string
Length1 <= length <= 60
phone_number*string
Length7 <= length <= 20
source?string

Source is the premium paywall the request came from, for telemetry. It is not forwarded to the licensor. Omit it to report "direct".

Value in"aibridge_session_threads""aibridge_sessions""ai_gateway_keys""ai_governance""appearance""audit_log""browser_only""connection_log""custom_roles""external_auth""groups""idp_org_sync""idp_sync""multiple_organizations""observability""provisioner_keys""provisioners""template_permissions""workspace_proxies""direct"

Response Body

Created

application/json
  1. response
claims?

Claims are the JWT claims asserted by the license. Here we use a generic string map to ensure that all data from the server is parsed verbatim, not just the fields this version of Coder understands.

id?integer
uploaded_at?string
Formatdate-time
uuid?string
Formatuuid

The samples read CODER_URL and CODER_SESSION_TOKEN: set up your environment.

curl -X POST \	"$CODER_URL/api/v2/licenses/trial" \	-H "Coder-Session-Token: $CODER_SESSION_TOKEN" \	-H "Content-Type: application/json" \	-d '{  "company_name": "Acme Corp",  "country": "United States",  "developers": "string",  "email": "[email protected]",  "first_name": "Jane",  "job_title": "Engineering Manager",  "last_name": "Doe",  "phone_number": "+14155552671"}'
Example Response201
{  "claims": {},  "id": 0,  "uploaded_at": "2019-08-24T14:15:22Z",  "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f"}