- GraphQL
- cURL
- Javascript
Copy
mutation ResendCheckRequest {
resendCheckRequest(
requestUuid: "unique-request-uuid"
) {
email
name
}
}
Copy
curl -X POST \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_PUBLIC_API_TOKEN" \
-d '{
"query": "
mutation ResendCheckRequest {
resendCheckRequest(
requestUuid: \"unique-request-uuid\"
) {
email
name
}
}
"
}' \
https://api.hirepass.com/applicant
Copy
const resendCheckRequest = async () => {
try {
const response = await fetch("https://api.hirepass.com/applicant", {
method: "POST",
headers: {
"Content-Type": "application/json",
"Authorization": "Bearer YOUR_PUBLIC_API_TOKEN",
},
body: JSON.stringify({
query: `
mutation ResendCheckRequest {
resendCheckRequest(
requestUuid: "unique-request-uuid"
) {
email
name
}
}
`,
}),
});
if (!response.ok) {
throw new Error(`HTTP error! status: ${response.status}`);
}
const data = await response.json();
console.log("Response data:", data);
} catch (error) {
console.error("Error:", error);
}
};
// Call the function
resendCheckRequest();

