Integration guide for Lovable CRM and other applications
Authorization: Bearer sk_your_api_key_herecurl -X GET https://survey.recast.software/api/trpc/auth.me \
-H "Authorization: Bearer sk_your_api_key_here"Create a new invitation token for a community or customer user
/api/trpc/invitationCode.generateTestTokens{
"surveyType": "community" | "customer",
"count": 1
}Returns: Array of generated tokens with direct survey links
Submit a completed survey response programmatically
/api/trpc/survey.submit{
"token": "survey_token_from_invitation",
"contactName": "John Doe",
"contactEmail": "[email protected]",
"company": "Acme Corp",
"answers": {
"question_1": "answer_value",
"question_2": ["option_1", "option_2"]
}
}Retrieve all survey responses with optional filtering
/api/trpc/survey.listQuery Parameters:
- limit: number (default: 50)
- offset: number (default: 0)
- surveyType: "community" | "customer" (optional)
- status: "pending" | "submitted" (optional)Retrieve full details for a specific survey response
/api/trpc/survey.getDetail{
"responseId": 123
}Create a new customer record in the system
/api/trpc/customers.create{
"customerId": "cust_123",
"companyName": "Acme Corp",
"contactName": "John Doe",
"contactEmail": "[email protected]",
"currentEndpoints": 100,
"deployedModules": ["Patching", "Insights"]
}Invalid or missing API key. Verify your API key is correct and included in the Authorization header.
Rate limit exceeded. Your API key has a default limit of 1000 requests per hour.
Invalid request parameters. Check the request body matches the expected schema.
Contact the RidgePoint team at [email protected] for technical support and integration assistance.