/v1/meThe team and key behind this request
Check that a key works and see the team, plan, scopes and rate limit it carries, and the Sparks the team can spend.
readReturns200Response 200
teamobjectrequiredThe team the key belongs to.
team.idstringrequiredThe team's id.
team.namestringrequiredThe team's name.
team.planstringrequiredThe team's plan, e.g. plus, pro or team.
api_keyobjectrequiredThe key that made this request.
api_key.idstringrequiredThe key's id.
api_key.namestringrequiredThe name given to the key in Settings.
api_key.prefixstringrequiredThe 8-character prefix shown in Settings.
api_key.scopesarray of stringsrequiredAny of read, run and webhooks.
api_key.rate_limit_per_minuteintegerrequiredRequests per minute this key may make.
sparks_availableintegerrequiredSparks the team can spend right now.
Errors use one shape across the API. See the error codes
curl https://api.smiletoai.com/v1/me \
-H "Authorization: Bearer $SMILETOAI_KEY"{
"object": "me",
"team": {
"id": "6f0c2d9a-3b1e-4f57-9a0d-2c8e5b7f1a64",
"name": "Northwind Studio",
"plan": "pro"
},
"api_key": {
"id": "a3e1b0c4-5d2f-4e8a-b7c9-0f1e2d3c4b5a",
"name": "Production",
"prefix": "k7m2p9qa",
"scopes": [
"read",
"run"
],
"rate_limit_per_minute": 60
},
"sparks_available": 84210
}