Overview

You can lookup a USTA player safe play status given a email. API will provide safe play status i.e. if approved or not.

API

This API is called once per player.

URI

Production:
  POST https://api-ustaconnect.usta.com/v1/usta-service/customers/safeplay/approval/isApproved

Stage:
  POST https://stage-api-ustaconnect.usta.com/v1/usta-service/customers/safeplay/approval/isApproved

Body

{
    "email": "test@mailinator.com"
}

Response

{
    "isApproved": true
}


Sample Curl

note

You must first retrieve an access token using Bound or Unbound method. See STAGE2 - OKTA Auth0 Client Integration Guide for more on how to request a token.

You must first retrieve an access token using Bound or Unbound method. See STAGE2 - OKTA Auth0 Client Integration Guide for more on how to request a token.

The following is a sample curl to retrieve a player membership status.

Where:

--header 'Authorization: Bearer eyJraW...

specifies the token that you retrieved using the https://account-ustaconnect.usta.com/oauth/token endpoint.

curl --location 'https://api-ustaconnect.usta.com/v1/usta-service/customers/safeplay/approval/isApproved' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer eyJraW...
--data '{
    "email": "test@mailinator.com"
}'