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.

On this page
  1. Response
  2. Errors
GET/v1/meScope: any valid key
curl "https://api.formitai.com/v1/me" \
  -H "Authorization: Bearer $FORMIT_API_KEY"

Response 200

  • workspaceobjectRequired
    • idstringRequired
    • namestringRequired
  • organizationobjectRequired
    • idstringRequired
    • namestringRequired
  • credentialobjectRequired
    • type"api_key" | "oauth"Required
    • scopesarray of stringRequired
    • environment"LIVE" | "TEST"Required
    • keyobject or nullRequired
      • idstringRequired
      • namestringRequired
      • prefixstringRequired
    • appobject or nullRequired
      • idstringRequired
      • namestringRequired
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_failed with field details, or malformed JSON.
  • 401Missing or invalid API key.
  • 403The key lacks the scope, or its creator lacks the workspace permission.
  • 429Rate limit exceeded. Wait for Retry-After seconds.

Ready?

Build your first AI form in minutes.

No credit card. Generate from a prompt, enable follow-ups, and publish a link or embed the same day.