Navigation

Fetch Organization

Retrieve your organization profile and settings

POST /public/account/fetchOrganization

Returns the organization profile for the authenticated user — including name, tagline, website, industry, language, timezone, address, working hours, member and admin lists, and the default wallet ID.

Requires a valid `api_key` in the JSON request body

Parameters

Name In Type Required Description
api_key body string Yes Your Zyntro API key
org_id body string Yes Your organization UUID

Request Body

Content-Type: application/json

Example

json
{
    "org_id": "YOUR_ORG_ID",
    "api_key": "YOUR_API_KEY"
}

Code Samples

bash
curl -X POST https://app.zyntrohq.com/public/account/fetchOrganization \
  -H "Content-Type: application/json" \
  -d '{"api_key": "YOUR_API_KEY", "org_id": "YOUR_ORG_ID"}'

Response

200 Organization retrieved
json
{
    "data": {
        "org_zip": "10001",
        "org_city": "New York",
        "org_name": "Acme Corp",
        "org_email": "[email protected]",
        "org_reach": "National",
        "org_stage": "Growth",
        "org_state": "NY",
        "org_admins": [
            "member-uuid-1"
        ],
        "org_address": "123 Main St",
        "org_country": "US",
        "org_members": [
            "member-uuid-1",
            "member-uuid-2"
        ],
        "org_tagline": "AI Powers Your Growth",
        "org_website": "https://acme.com",
        "org_industry": "SaaS",
        "org_language": "en-US",
        "org_timezone": "America/New_York",
        "default_wallet": "e8932389-bca5-4e6e-b9f1-bf46e16e8435",
        "org_working_hours": {
            "monday": {
                "end": "17:00",
                "start": "09:00"
            },
            "tuesday": {
                "end": "17:00",
                "start": "09:00"
            }
        }
    },
    "status": "success"
}
200 Error
json
{
    "data": [
        "Organization not found"
    ],
    "status": "error"
}

Errors

Code Message Resolution
MISSING_API_KEY Missing service instance
The api_key field is missing.
Include your API key.
INVALID_API_KEY Invalid API Key
No active user matches the key.
Verify your key.
INACTIVE_USER User is not active
Account deactivated.
Contact your admin.
MISSING_ORG Missing org ID
The org_id field is missing.
Include your org ID.
NOT_FOUND Organization not found
No org with that ID belongs to the authenticated user.
Verify the org_id.
INACTIVE_ORG Organization is not active
The organization has been deactivated.
Contact support.

Was this article helpful?

NotebookLM Overviews