warden

API reference

Create an enrollment invitation

Issue a link one member can use to add where they sell.

POST/api/v1/integration/enrollments

Enrollment invitations explains what the member sees and what happens to what they add.

Body

FieldType
external_idstringRequired. Up to 200 characters. A member your key's provider holds.
daysinteger1 to 90. 30 by default.

Any other field is refused.

Request

curl -sS "https://3dwarden.com/api/v1/integration/enrollments" \
  -H "Authorization: Bearer $WARDEN_KEY" \
  -H "Content-Type: application/json" \
  -d '{ "external_id": "member-1001", "days": 30 }'

Response, 201

{
  "external_id": "member-1001",
  "token": "wen_9c2e41d07b6a4f3e8d1c5b2a90f7e6d4c3b2a1908f7e6d5c4b3a29180f7e6d5c",
  "expires_at": "2026-10-21T18:04:11.123456+00:00",
  "enroll_url": "https://3dwarden.com/enroll#wen_9c2e41d07b6a4f3e8d1c5b2a90f7e6d4c3b2a1908f7e6d5c4b3a29180f7e6d5c"
}

The secret is in this response once. Issuing again for the same member stops the earlier invitation.

Errors

StatusCodeWhen
400invalid_requestThe body is not JSON, has an unknown field, or days is out of range.
401invalid_key
403plan_not_allowedThe organization's plan does not allow invitations. capability is enrollments.
404not_foundThis key's provider does not hold that member.
429rate_limited