Call a SafeSend API with an M2M access token
Include a Thomson Reuters M2M bearer token and an authorized SafeSend user email address in each SafeSend API request.
Generate a valid M2M access token before you call a SafeSend API.
- Add the M2M access token to theAuthorizationrequest header.Specify the token by using the following format:Bearer <ACCESS_TOKEN>.
- Add the email address of an authorized SafeSend user to thex-emailrequest header.importantAll SafeSend API endpoints require thex-emailheader. Use the email address of the SafeSend user who makes the API call.
- Send the API request.
Example: Upload a return by using the SSR Returns Post Upload API
POST "https://api.safesend.com/ssr/v2/return/upload" \ --header "Authorization: Bearer <ACCESS_TOKEN>" \ --header "Content-Type: application/json" \ --header "x-email: <X_EMAIL>" \ --data '{ "documents": [ "string" ], "fileURLs": [ "string" ], "correlationId": "string", "rid": "string", "clientId": "string", "delayRecognition": false, "taxSoftware": 0, "callbackUri": "string" }'
The API validates both the M2M access token and the SafeSend user identified in the
x-email
header.