Versions Compared
Version | Old Version 1 | New Version Current |
---|---|---|
Changes made by | ||
Saved on |
Key
- This line was added.
- This line was removed.
- Formatting was changed.
Page Tree Search |
---|
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
Code Block |
---|
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
Code Block |
---|
{
"email": "test@mailinator.com"
} |
By UAID
Code Block |
---|
{
"uaid": "201842xxxx"
} |
Response
Code Block |
---|
{ "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.
Code Block |
---|
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" }' |
Panel | ||
---|---|---|
| ||
On This Page: |
Table of Contents |
---|
Panel | ||
---|---|---|
| ||
More Reading: |