API Explorer
You are viewing an old version of the API

Obtain token

Returns an OAuth access token.

Open in API Reference

Sign In

Body

string
string
string
string
string
string
string
Request
cURL
  • cURL
  • Ruby
  • Python
  • C#
  • Java
  • PHP
curl https://connect.squareupsandbox.com/oauth2/token \
  -X POST \
  -H 'Square-Version: 2020-09-23' \
  -H 'Content-Type: application/json' \
  -d '{}'
Response
// No response received yet.

Share Feedback

Thanks for visiting the Square API documentation. What's on your mind?