Skip to content

Preview the 1Password backfill

GET
/onepassword/backfill/preview
Code sample: Shell / cURL
curl --request GET \
--url https://example.com/api/v1/onepassword/backfill/preview \
--header 'Authorization: Bearer <token>'

Lists what the backfill would do now to the vaults of active companies with the Client status (never leads): the vaults it creates, and per vault the team groups that get access, change level, or lose it because their team is not assigned to the company. For a vault created before Chelsea recorded each group’s access (vault: check), the groups it lists to remove lose access only where they have it today. Reads only the database, never 1Password. Requires settings.manage. Never reads or returns anything stored in a vault.

What the backfill would change.

Media typeapplication/json
object
data
required

What the backfill would change now, to confirm before it runs.

object
companies
required

The companies with something to change, by name.

Array<object>
object
add
required

Groups of the assigned teams that get access (for check, where missing).

Array<object>
object
accessLevel
required
string
Allowed values: VIEW EDIT MANAGE
groupId
required
string
teamName
required

The team whose group it is; null for the group of a deleted team.

string | null
change
required

Groups whose access level changes to their team’s.

Array<object>
object
accessLevel
required
string
Allowed values: VIEW EDIT MANAGE
groupId
required
string
teamName
required

The team whose group it is; null for the group of a deleted team.

string | null
clientId
required
string
companyName
required
string
remove
required

Groups of teams not assigned to the company that lose access (for check, only where they have it today).

Array<object>
object
accessLevel
required
string
Allowed values: VIEW EDIT MANAGE
groupId
required
string
teamName
required

The team whose group it is; null for the group of a deleted team.

string | null
vault
required

create makes the missing vault; check first reads from 1Password which groups an older vault holds; sync follows what Chelsea already recorded.

string
Allowed values: create check sync
vaultTitle
required
string | null
writes
required

The most 1Password changes it can take.

integer
>= -9007199254740991 <= 9007199254740991
companiesCount
required

Active companies with the Client status the backfill covers.

integer
>= -9007199254740991 <= 9007199254740991
confirmationKey
required

Names the removals this preview lists for older vaults (check). Send it to start the backfill, which takes from an older vault only the groups listed here.

string
hours
required

About how many hours the changes take within 1Password’s hourly limit.

integer
>= -9007199254740991 <= 9007199254740991
isOnePasswordConnected
required
boolean
vaultsToCheck
required
integer
>= -9007199254740991 <= 9007199254740991
vaultsToCreate
required
integer
>= -9007199254740991 <= 9007199254740991
writes
required
integer
>= -9007199254740991 <= 9007199254740991

Example

{
"data": {
"companies": [
{
"add": [
{
"accessLevel": "VIEW"
}
],
"change": [
{
"accessLevel": "VIEW"
}
],
"remove": [
{
"accessLevel": "VIEW"
}
],
"vault": "create"
}
]
}
}

Unauthorized.

Media typeapplication/json

Standard error envelope.

object
error
required
object
code
required

Stable machine-readable error code.

string
message
required

Human-readable error message.

string
status
required

HTTP status code, mirrored in the body.

integer
>= -9007199254740991 <= 9007199254740991

Example

{
"error": {
"code": "UNAUTHORIZED"
}
}

Forbidden.

Media typeapplication/json

Standard error envelope.

object
error
required
object
code
required

Stable machine-readable error code.

string
message
required

Human-readable error message.

string
status
required

HTTP status code, mirrored in the body.

integer
>= -9007199254740991 <= 9007199254740991

Example

{
"error": {
"code": "UNAUTHORIZED"
}
}

Rate limit exceeded. Wait for Retry-After before retrying.

Media typeapplication/json

Standard error envelope.

object
error
required
object
code
required

Stable machine-readable error code.

string
message
required

Human-readable error message.

string
status
required

HTTP status code, mirrored in the body.

integer
>= -9007199254740991 <= 9007199254740991

Example

{
"error": {
"code": "UNAUTHORIZED"
}
}
RateLimit-Limit
string
/^\d+$/

Maximum requests in the current quota window.

RateLimit-Policy
string

Quota policy in requests and window seconds, for example 60;w=60.

RateLimit-Remaining
string
/^\d+$/

Requests left in this quota window (zero when blocked).

RateLimit-Reset
string
/^\d+$/

Seconds until the current quota window resets, when available from the rate-limit store.

Retry-After
string
/^\d+$/

Seconds until another request may be attempted.