cURL
curl "https://api.myworklayer.com/v1/rooms/cmhx3q7v20004l808sd5k2r1m/reviews/wr1.Y2x4Mmh0cTlrMDAwMQ.2.Qm9vVGF0Y2hlcy1maW5nZXJwcmludC1leGFtcGxlXzQz/connect-app" \
-H "Authorization: Bearer $WORKLAYER_API_KEY"const response = await fetch('https://api.myworklayer.com/v1/rooms/cmhx3q7v20004l808sd5k2r1m/reviews/wr1.Y2x4Mmh0cTlrMDAwMQ.2.Qm9vVGF0Y2hlcy1maW5nZXJwcmludC1leGFtcGxlXzQz/connect-app', {
headers: {
Authorization: `Bearer ${process.env.WORKLAYER_API_KEY}`,
},
});
const data = await response.json();
console.log(data);{
"url": "https://app.myworklayer.com/actions/wr1.Y2x4Mmh0cTlrMDAwMQ.2.Qm9vVGF0Y2hlcy1maW5nZXJwcmludC1leGFtcGxlXzQz"
}{
"statusCode": 401,
"message": "Unauthorized"
}{
"statusCode": 404,
"message": "Request not found.",
"error": "Not Found"
}{
"statusCode": 409,
"message": "Request has changed.",
"error": "Conflict"
}{
"statusCode": 429,
"message": "ThrottlerException: Too Many Requests"
}Review
Get a connect-app link
Returns a Worklayer web URL for completing a pending connect-app Review. Share or open the link for a person authorized to sign in to the app.
GET
/
v1
/
rooms
/
{roomId}
/
reviews
/
{requestId}
/
connect-app
cURL
curl "https://api.myworklayer.com/v1/rooms/cmhx3q7v20004l808sd5k2r1m/reviews/wr1.Y2x4Mmh0cTlrMDAwMQ.2.Qm9vVGF0Y2hlcy1maW5nZXJwcmludC1leGFtcGxlXzQz/connect-app" \
-H "Authorization: Bearer $WORKLAYER_API_KEY"const response = await fetch('https://api.myworklayer.com/v1/rooms/cmhx3q7v20004l808sd5k2r1m/reviews/wr1.Y2x4Mmh0cTlrMDAwMQ.2.Qm9vVGF0Y2hlcy1maW5nZXJwcmludC1leGFtcGxlXzQz/connect-app', {
headers: {
Authorization: `Bearer ${process.env.WORKLAYER_API_KEY}`,
},
});
const data = await response.json();
console.log(data);{
"url": "https://app.myworklayer.com/actions/wr1.Y2x4Mmh0cTlrMDAwMQ.2.Qm9vVGF0Y2hlcy1maW5nZXJwcmludC1leGFtcGxlXzQz"
}{
"statusCode": 401,
"message": "Unauthorized"
}{
"statusCode": 404,
"message": "Request not found.",
"error": "Not Found"
}{
"statusCode": 409,
"message": "Request has changed.",
"error": "Conflict"
}{
"statusCode": 429,
"message": "ThrottlerException: Too Many Requests"
}Authorizations
Your factory's Worklayer API key (wrk-...). See Get an API key and Authentication. Requests sent from the playground execute live against your factory.