Test report delivery REST API
POST
/api/reports/{report_id}/test-send
const url = 'http://127.0.0.1:25737/api/reports/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/test-send';const options = {method: 'POST', headers: {cookie: 'hk_token=<hk_token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url http://127.0.0.1:25737/api/reports/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/test-send \ --cookie hk_token=<hk_token>Builds the current report content for its latest completed period and sends it only to the current user. Team tests are audited.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”report_id
required
string format: uuid
Report definition UUID.
Responses
Section titled “Responses”Accepted by mail server
Media typeapplication/json
object
message_id
required
string
sent_at
required
string format: date-time
status
required
string
Example
{ "status": "accepted"}Mail unavailable
Media typeapplication/json
object
message
string
Examplegenerated
{ "message": "example"}Report content unavailable or suppressed
Media typeapplication/json
object
message
string
Examplegenerated
{ "message": "example"}Mail server did not accept message
Media typeapplication/json
object
message
string
Examplegenerated
{ "message": "example"}