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
string[]
boolean
Request
cURL
  • cURL
  • Ruby
  • Python
  • C#
  • Java
  • PHP
  • Node.js
curl https://connect.squareupsandbox.com/oauth2/token \
  -X POST \
  -H 'Square-Version: 2021-07-21' \
  -H 'Content-Type: application/json'
Response
// No response received yet.

Share feedback

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