/
Fetch Player Safeplay Status

Fetch Player Safeplay Status

Overview

You can lookup a USTA player safe play status given a email or UAID. 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

By Email

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

By UAID

{ "uaid": "201842xxxx" }

Response

{ "isApproved": true }


Sample Curl

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" }'

 

Related content