Who this key is
GET
/v1/me
const url = 'https://api.sotirea.com/v1/me';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://api.sotirea.com/v1/me \ --header 'Authorization: Bearer <token>'The key’s name, its organisation and whether that is Test or Live, and the permissions the key holds. A good first call.
Authorizations
Section titled “Authorizations”Responses
Section titled “Responses”Done.
Media typeapplication/json
object
data
required
object
key
required
object
id
required
integer
name
required
string
organisation
required
object
environment
required
Test or live. A Test organisation’s money is on test networks and is worth nothing; a Live organisation’s is real.
string
id
required
integer
name
required
string
permissions
required
What the key may do, as permission names: balances.view, payments.request and so on.
Array<string>
meta
object
request_id
Quote it when asking about a request; it is in the X-Request-Id header too.
string
success
required
Example
{ "success": true}default
Section titled “default”Refused or failed, in words a person can act on.
Media typeapplication/json
object
error
required
object
code
required
string
fields
object
key
additional properties
string
message
required
string
meta
object
request_id
Quote it when asking about a request.
string
success
required
Example
{ "success": false}