Skip to content

Describe the API key making this request

GET
/v1/key
curl --request GET \
--url https://api.copilot.launchwing.io/v1/key \
--header 'Authorization: Bearer <token>'

Accepts a secret key (Authorization: Bearer sk_…) or, from an allowed website, a public key (X-Launchwing-Key). Useful to check a connection; the first call marks “First request received”.

Default Response

Media type application/json
object
appId
required
string format: uuid
/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/
environment
required
string
Allowed values: test live
keyKind
required
string
Allowed values: public secret
permission
required
Any of:
string
Allowed values: full emailer forms read_only

Example

{
"environment": "test",
"keyKind": "public",
"permission": "full"
}

Default Response

Media type application/json
object
error
required
object
type
required
string
Allowed values: invalid_request_error authentication_error permission_error not_found_error conflict_error rate_limit_error api_error
code
required
string
Allowed values: validation_failed captcha_failed invalid_cursor invalid_idempotency_key idempotency_key_required unauthorized forbidden insufficient_role insufficient_permission origin_not_allowed submission_limit_reached flow_not_ready sending_paused template_not_published domain_taken daily_send_limit_reached form_not_active tool_not_enabled project_admin_exists project_admin_client project_client_member project_admin_unset_first project_last_member project_client_exists project_invitation_exists project_invitation_not_pending not_found conflict plan_limit_reached key_limit_reached key_not_active share_limit_reached tool_not_available idempotency_in_progress insufficient_credits payload_too_large unsupported_media_type idempotency_mismatch rate_limited internal_error service_unavailable
message
required
string
requestId
required
string
fields
Array<object>
object
path
required
string
message
required
string

Example

{
"error": {
"type": "invalid_request_error",
"code": "validation_failed"
}
}

Default Response

Media type application/json
object
error
required
object
type
required
string
Allowed values: invalid_request_error authentication_error permission_error not_found_error conflict_error rate_limit_error api_error
code
required
string
Allowed values: validation_failed captcha_failed invalid_cursor invalid_idempotency_key idempotency_key_required unauthorized forbidden insufficient_role insufficient_permission origin_not_allowed submission_limit_reached flow_not_ready sending_paused template_not_published domain_taken daily_send_limit_reached form_not_active tool_not_enabled project_admin_exists project_admin_client project_client_member project_admin_unset_first project_last_member project_client_exists project_invitation_exists project_invitation_not_pending not_found conflict plan_limit_reached key_limit_reached key_not_active share_limit_reached tool_not_available idempotency_in_progress insufficient_credits payload_too_large unsupported_media_type idempotency_mismatch rate_limited internal_error service_unavailable
message
required
string
requestId
required
string
fields
Array<object>
object
path
required
string
message
required
string

Example

{
"error": {
"type": "invalid_request_error",
"code": "validation_failed"
}
}

Default Response

Media type application/json
object
error
required
object
type
required
string
Allowed values: invalid_request_error authentication_error permission_error not_found_error conflict_error rate_limit_error api_error
code
required
string
Allowed values: validation_failed captcha_failed invalid_cursor invalid_idempotency_key idempotency_key_required unauthorized forbidden insufficient_role insufficient_permission origin_not_allowed submission_limit_reached flow_not_ready sending_paused template_not_published domain_taken daily_send_limit_reached form_not_active tool_not_enabled project_admin_exists project_admin_client project_client_member project_admin_unset_first project_last_member project_client_exists project_invitation_exists project_invitation_not_pending not_found conflict plan_limit_reached key_limit_reached key_not_active share_limit_reached tool_not_available idempotency_in_progress insufficient_credits payload_too_large unsupported_media_type idempotency_mismatch rate_limited internal_error service_unavailable
message
required
string
requestId
required
string
fields
Array<object>
object
path
required
string
message
required
string

Example

{
"error": {
"type": "invalid_request_error",
"code": "validation_failed"
}
}

Default Response

Media type application/json
object
error
required
object
type
required
string
Allowed values: invalid_request_error authentication_error permission_error not_found_error conflict_error rate_limit_error api_error
code
required
string
Allowed values: validation_failed captcha_failed invalid_cursor invalid_idempotency_key idempotency_key_required unauthorized forbidden insufficient_role insufficient_permission origin_not_allowed submission_limit_reached flow_not_ready sending_paused template_not_published domain_taken daily_send_limit_reached form_not_active tool_not_enabled project_admin_exists project_admin_client project_client_member project_admin_unset_first project_last_member project_client_exists project_invitation_exists project_invitation_not_pending not_found conflict plan_limit_reached key_limit_reached key_not_active share_limit_reached tool_not_available idempotency_in_progress insufficient_credits payload_too_large unsupported_media_type idempotency_mismatch rate_limited internal_error service_unavailable
message
required
string
requestId
required
string
fields
Array<object>
object
path
required
string
message
required
string

Example

{
"error": {
"type": "invalid_request_error",
"code": "validation_failed"
}
}

Default Response

Media type application/json
object
error
required
object
type
required
string
Allowed values: invalid_request_error authentication_error permission_error not_found_error conflict_error rate_limit_error api_error
code
required
string
Allowed values: validation_failed captcha_failed invalid_cursor invalid_idempotency_key idempotency_key_required unauthorized forbidden insufficient_role insufficient_permission origin_not_allowed submission_limit_reached flow_not_ready sending_paused template_not_published domain_taken daily_send_limit_reached form_not_active tool_not_enabled project_admin_exists project_admin_client project_client_member project_admin_unset_first project_last_member project_client_exists project_invitation_exists project_invitation_not_pending not_found conflict plan_limit_reached key_limit_reached key_not_active share_limit_reached tool_not_available idempotency_in_progress insufficient_credits payload_too_large unsupported_media_type idempotency_mismatch rate_limited internal_error service_unavailable
message
required
string
requestId
required
string
fields
Array<object>
object
path
required
string
message
required
string

Example

{
"error": {
"type": "invalid_request_error",
"code": "validation_failed"
}
}

Default Response

Media type application/json
object
error
required
object
type
required
string
Allowed values: invalid_request_error authentication_error permission_error not_found_error conflict_error rate_limit_error api_error
code
required
string
Allowed values: validation_failed captcha_failed invalid_cursor invalid_idempotency_key idempotency_key_required unauthorized forbidden insufficient_role insufficient_permission origin_not_allowed submission_limit_reached flow_not_ready sending_paused template_not_published domain_taken daily_send_limit_reached form_not_active tool_not_enabled project_admin_exists project_admin_client project_client_member project_admin_unset_first project_last_member project_client_exists project_invitation_exists project_invitation_not_pending not_found conflict plan_limit_reached key_limit_reached key_not_active share_limit_reached tool_not_available idempotency_in_progress insufficient_credits payload_too_large unsupported_media_type idempotency_mismatch rate_limited internal_error service_unavailable
message
required
string
requestId
required
string
fields
Array<object>
object
path
required
string
message
required
string

Example

{
"error": {
"type": "invalid_request_error",
"code": "validation_failed"
}
}

Default Response

Media type application/json
object
error
required
object
type
required
string
Allowed values: invalid_request_error authentication_error permission_error not_found_error conflict_error rate_limit_error api_error
code
required
string
Allowed values: validation_failed captcha_failed invalid_cursor invalid_idempotency_key idempotency_key_required unauthorized forbidden insufficient_role insufficient_permission origin_not_allowed submission_limit_reached flow_not_ready sending_paused template_not_published domain_taken daily_send_limit_reached form_not_active tool_not_enabled project_admin_exists project_admin_client project_client_member project_admin_unset_first project_last_member project_client_exists project_invitation_exists project_invitation_not_pending not_found conflict plan_limit_reached key_limit_reached key_not_active share_limit_reached tool_not_available idempotency_in_progress insufficient_credits payload_too_large unsupported_media_type idempotency_mismatch rate_limited internal_error service_unavailable
message
required
string
requestId
required
string
fields
Array<object>
object
path
required
string
message
required
string

Example

{
"error": {
"type": "invalid_request_error",
"code": "validation_failed"
}
}