LogoLogo
WebsiteLoginStatus
API Reference
API Reference
  • Introduction
  • Introduction to GraphQL
    • What is GraphQL?
      • GraphQL Schema
      • Example Using GraphQL
    • Authentication
    • Queries
      • Example Query
    • Mutations
      • Example Mutation
    • Variables
    • Fields
  • Develop With inabit API
    • Getting Started
      • Authentication
      • inabit Postman Collection
    • Organizations
      • Organization Info
      • Organization ID
      • Organization Users
      • Organization Contacts
      • Organization Transactions
    • Wallets
      • Wallets Info
      • Create inabit Wallet
      • Edit Wallet Name
      • Generate Deposit Address
      • Fetch Deposit Address
      • Save Address to Whitelist
      • Archive / Unarchive Wallet
      • Disconnect Exchange Wallet
    • Contacts
      • Contact Info
      • Create New Contact
      • Update Contact
    • Transactions
      • Transaction Info
      • Create Transfer Request
      • Create Off Ramp Request
      • Create On Ramp Request
      • Create Exchange Swap
      • Create inabit Wallet Swap
      • Edit Transaction Note
    • Utilities
      • Fetch Financial Asset
      • Fetch Blockchains
  • Remote Approver App
    • Setup and Configuration
    • API Wallets Generation
    • Automate Signing Transactions
    • Webhooks
      • Notification Types
  • WHAT WE SUPPORT
    • Assets & Tokens
    • Blockchains
    • Exchanges
      • Binance
      • Kucoin
      • Kraken
  • Changelog
Powered by GitBook
On this page
  • Fetch Organization Data
  • Headers
  • Body (UserWhereUniqueInput object)
  • Response
  • Try it out!

Was this helpful?

Export as PDF
  1. Develop With inabit API
  2. Organizations

Organization Info

Retrieve data on your organizations, per organization ID.

Fetch Organization Data

Retrieving the user's organization info is done through querying the user's information. One can query details inside the organization.

query User($where: UserWhereUniqueInput!) {
  user(where: $where) {
    fullName
    organizations {
      [id]
      [name]
      [city]
      [email]
      [industry]
      [isIndividual]
      [phone]
      [street]
      [phoneCountry]
      [timezone]
      [transferRequestOrders]
      [unit]
      [wallets]
      [zipCode]
    }
  }
}

Headers

Name
Value

Content-Type

application/json

Authorization

Bearer <token>

Body (UserWhereUniqueInput object)

Name
Type
Description

id*

string

ID of the organization in inabit

Example body:

{
  "where": {
    "id": "userId123"
  }
}

Response

Returned values:

Name
Type
Description

id

string

Organization ID

name

string

Organization name

city

string

Organization address (city)

email

string

Organization POC email

industry

string

Organization industry

isIndividual

boolean

Flag wether organization or individual

phone

string

Organization phone number

phoneCountry

string

Organization country

street

string

Organization address (street)

transferRequestOrders

TransferRequestOrder

Transfer Request Orders

timeZone

TimeZone

Time zone for organization

unit

string

Unit

wallet

Wallet

Organization wallets

zipCode

string

Organization address (zip code)

{
  "data": {
    "user": {
      "organizations": [
        {
          "id": "clilpvru98723678mwie82oihn9",
          "name": "Crypto Org 1",
          "city": "New York"
        }
      ]
    }
  }
}
{
  "error": "Invalid request"
}

In the example response above, we queried the id , name and city of the organization.

Try it out!

PreviousOrganizationsNextOrganization ID

Was this helpful?

Apollo Studio