POST
/
access
/
v1
/
enrollment
/
authorize
curl --request POST \
  --url https://api.invopop.com/access/v1/enrollment/authorize \
  --header 'Content-Type: application/json' \
  --data '{
  "client_id": "XzhLPeXCi3GBVg",
  "client_secret": "p2NWtVpuDxDYt41crWUBmQKaE4Mh92roDxp_8UKkIJY",
  "id": "347c5b04-cde2-11ed-afa1-0242ac120002",
  "owner_id": "347c5b04-cde2-11ed-afa1-0242ac120002"
}'
{
  "app_id": "01900e17-db4d-78a5-8505-c93ae63e8a0d",
  "created_at": "2018-01-01T00:00:00.000Z",
  "data": "<any>",
  "disabled": false,
  "id": "347c5b04-cde2-11ed-afa1-0242ac120002",
  "owner_id": "347c5b04-cde2-11ed-afa1-0242ac120002",
  "sandbox": false,
  "token": "<string>",
  "updated_at": "2018-01-01T00:00:00.000Z"
}

Body

application/json
client_id
string

The ID of the application that is being enrolled.

Example:

"XzhLPeXCi3GBVg"

client_secret
string

The secret key of the application that is being enrolled.

Example:

"p2NWtVpuDxDYt41crWUBmQKaE4Mh92roDxp_8UKkIJY"

id
string

The ID of the enrollment to authorize to use as an alternative to the owner ID.

Example:

"347c5b04-cde2-11ed-afa1-0242ac120002"

owner_id
string

The ID of the entity that owns the enrollment. It is essential this is provided from a trusted source or an auth token is provided in the headers.

Example:

"347c5b04-cde2-11ed-afa1-0242ac120002"

Response

200 - application/json
OK
app_id
string

ID of the application associated with the enrollment.

Example:

"01900e17-db4d-78a5-8505-c93ae63e8a0d"

created_at
string

The date and time the enrollment was created.

Example:

"2018-01-01T00:00:00.000Z"

data
any

Additional data associated with the enrollment.

disabled
boolean

Whether the enrollment is disabled.

Example:

false

id
string

UUID of the enrollment.

Example:

"347c5b04-cde2-11ed-afa1-0242ac120002"

owner_id
string

The ID of the entity that owns the enrollment.

Example:

"347c5b04-cde2-11ed-afa1-0242ac120002"

sandbox
boolean

Indicates if the enrollment's workspace is in a sandbox environment.

Example:

false

token
string

A token that may be used to authenticate the enrollment with API operations.

updated_at
string

The date and time the enrollment was last updated.

Example:

"2018-01-01T00:00:00.000Z"