Browse and search developers
/
Account
Get the current credential
The workspace this API key or OAuth token acts in, its scopes, and either the key or the app it belongs to. Useful to check a credential works.
GET
/v1/meScope: any valid keycurl "https://api.formitai.com/v1/me" \
-H "Authorization: Bearer $FORMIT_API_KEY"Response 200
workspaceobjectRequiredidstringRequirednamestringRequired
organizationobjectRequiredidstringRequirednamestringRequired
credentialobjectRequiredtype"api_key" | "oauth"Requiredscopesarray of stringRequiredenvironment"LIVE" | "TEST"Requiredkeyobject or nullRequiredidstringRequirednamestringRequiredprefixstringRequired
appobject or nullRequiredidstringRequirednamestringRequired
Example response
{
"workspace": {
"id": "item_id",
"name": "Customer feedback"
},
"organization": {
"id": "item_id",
"name": "Customer feedback"
},
"credential": {
"type": "api_key",
"scopes": [
"string"
],
"environment": "LIVE",
"key": {
"id": "item_id",
"name": "Customer feedback",
"prefix": "string"
},
"app": {
"id": "item_id",
"name": "Customer feedback"
}
}
}Errors
400Invalid request:validation_failedwith fielddetails, or malformed JSON.401Missing or invalid API key.403The key lacks the scope, or its creator lacks the workspace permission.429Rate limit exceeded. Wait forRetry-Afterseconds.
Can't find what you need?