See api-docs Menu

v1-v3 APIs have been deprecated

Don't worry, these APIs are deprecated, but they won't be shut off until 2017, at the earliest. Questions? Contact devsupport@onelogin.com.

All new development with APIs should use the newest version of our API: /1. API /1 is based on RESTful principles, is secured by OAuth 2.0, and provides JSON messages, search, pagination, sorting, and filtering.

Account Resource

Here’s a detailed description of the elements in an Account resource under a reseller account. An Account represents a customer, company, or organization that uses OneLogin.

All dates and times use this format: YYYY-MM-DDThh:mm:ss-time zone designator (where -time zone designator should be set to -Z, +hh:mm, or -hh:mm). For example: 2015-01-21T09:20:15-08:00.

Element Description

address1

Line 1 of the account’s address.

address2

Line 2 of the account’s address.

city

City in which the account is based.

country

Country in which the account is based.

created-at

Date and time at which the account was created.

firstname

First name of the account owner.

lastname

Last name of the account owner.

homepage

URL to the account organization’s public website.

id

Account’s unique ID in OneLogin.

name

Account name. This can be the name of a company, customer, or organization.

notes

More details about the account.

phone

Phone number at which to reach the account owner.

remotetoken

Desktop SSO remote token for the account.

roles

Lists the roles that exist for the account.

state

State in which the account is based.

updated-at

Date and time at which account information was last updated.

zip

Zip code in which the account is based.