Access Grants

CATEGORY is SHOWN

Managing Users

CATEGORY is SHOWN

Update users in a group

PATCH /api/groups/{id}/users

Header Parameters

FieldFormatDescription
Infra-VersionstringVersion of the API being requested
AuthorizationstringBearer followed by your access key

Query Parameters

None

Path Parameters

FieldFormatDescription
idstringID of the group to update

Example Request

curl -X PATCH https://api.infrahq.com/api/groups/4yJ3n3D8E2/users \
  -H 'Content-Type: application/json' \
  -H 'Infra-Version: 0.17.0' \
  -H 'Authorization: Bearer ACCESSKEY' \
  -d '{
    "usersToAdd": "undefined",
    "usersToRemove": "undefined"
  }'

Returns

Example response

Empty Response

Example response parameters

Empty Response

Response Codes

Response CodeDescription
400Bad Request
401Unauthorized: Requestor is not authenticated
403Forbidden: Requestor does not have the right permissions
404Not Found
409Duplicate Record
defaultSuccess

Group Management

CATEGORY is SHOWN

Update users in a group

PATCH /api/groups/{id}/users

Header Parameters

FieldFormatDescription
Infra-VersionstringVersion of the API being requested
AuthorizationstringBearer followed by your access key

Query Parameters

None

Path Parameters

FieldFormatDescription
idstringID of the group to update

Example Request

curl -X PATCH https://api.infrahq.com/api/groups/4yJ3n3D8E2/users \
  -H 'Content-Type: application/json' \
  -H 'Infra-Version: 0.17.0' \
  -H 'Authorization: Bearer ACCESSKEY' \
  -d '{
    "usersToAdd": "undefined",
    "usersToRemove": "undefined"
  }'

Returns

Example response

Empty Response

Example response parameters

Empty Response

Response Codes

Response CodeDescription
400Bad Request
401Unauthorized: Requestor is not authenticated
403Forbidden: Requestor does not have the right permissions
404Not Found
409Duplicate Record
defaultSuccess

Managing Providers

CATEGORY is SHOWN

Create a provider

POST /api/providers

Header Parameters

FieldFormatDescription
Infra-VersionstringVersion of the API being requested
AuthorizationstringBearer followed by your access key

Query Parameters

None

Path Parameters

None

Example Request

curl -X POST https://api.infrahq.com/api/providers \
  -H 'Content-Type: application/json' \
  -H 'Infra-Version: 0.17.0' \
  -H 'Authorization: Bearer ACCESSKEY' \
  -d '{
    "allowedDomains": "['example.com', 'infrahq.com']",
    "api": "undefined",
    "clientID": "0oapn0qwiQPiMIyR35d6",
    "clientSecret": "jmda5eG93ax3jMDxTGrbHd_TBGT6kgNZtrCugLbU",
    "kind": "oidc",
    "name": "okta",
    "url": "infrahq.okta.com"
  }'

Returns

Example response

{
  "authURL": "https://example.com/oauth2/v1/authorize",
  "clientID": "0oapn0qwiQPiMIyR35d6",
  "created": "2022-03-14T09:48:00Z",
  "id": "4yJ3n3D8E2",
  "kind": "oidc",
  "name": "okta",
  "scopes": "['openid', 'email']",
  "updated": "2022-03-14T09:48:00Z",
  "url": "infrahq.okta.com"
}

Example response parameters

FieldTypeDescription
authURLstringAuthorize endpoint for the OIDC provider
clientIDstringClient ID for the OIDC provider
createdstringformatted as an RFC3339 date-time
idstringProvider ID
kindstringKind of provider
namestringName of the provider
scopesarrayScopes set in the OIDC provider configuration
updatedstringformatted as an RFC3339 date-time
urlstringURL of the Infra Server

Response Codes

Response CodeDescription
400Bad Request
401Unauthorized: Requestor is not authenticated
403Forbidden: Requestor does not have the right permissions
404Not Found
409Duplicate Record
defaultSuccess

Get a provider

GET /api/providers/{id}

Header Parameters

FieldFormatDescription
Infra-VersionstringVersion of the API being requested

Query Parameters

None

Path Parameters

FieldFormatDescription
idstringID of the provider to retrieve

Example Request

curl -X GET https://api.infrahq.com/api/providers/4yJ3n3D8E2 \
  -H 'Content-Type: application/json' \
  -H 'Infra-Version: 0.17.0'

Returns

Example response

{
  "authURL": "https://example.com/oauth2/v1/authorize",
  "clientID": "0oapn0qwiQPiMIyR35d6",
  "created": "2022-03-14T09:48:00Z",
  "id": "4yJ3n3D8E2",
  "kind": "oidc",
  "name": "okta",
  "scopes": "['openid', 'email']",
  "updated": "2022-03-14T09:48:00Z",
  "url": "infrahq.okta.com"
}

Example response parameters

FieldTypeDescription
authURLstringAuthorize endpoint for the OIDC provider
clientIDstringClient ID for the OIDC provider
createdstringformatted as an RFC3339 date-time
idstringProvider ID
kindstringKind of provider
namestringName of the provider
scopesarrayScopes set in the OIDC provider configuration
updatedstringformatted as an RFC3339 date-time
urlstringURL of the Infra Server

Response Codes

Response CodeDescription
400Bad Request
401Unauthorized: Requestor is not authenticated
403Forbidden: Requestor does not have the right permissions
404Not Found
409Duplicate Record
defaultSuccess

Update a provider

PUT /api/providers/{id}

Header Parameters

FieldFormatDescription
Infra-VersionstringVersion of the API being requested
AuthorizationstringBearer followed by your access key

Query Parameters

None

Path Parameters

FieldFormatDescription
idstringID of the provider to update

Example Request

curl -X PUT https://api.infrahq.com/api/providers/4yJ3n3D8E2 \
  -H 'Content-Type: application/json' \
  -H 'Infra-Version: 0.17.0' \
  -H 'Authorization: Bearer ACCESSKEY' \
  -d '{
    "allowedDomains": "['example.com', 'infrahq.com']",
    "api": "undefined",
    "clientID": "0oapn0qwiQPiMIyR35d6",
    "clientSecret": "jmda5eG93ax3jMDxTGrbHd_TBGT6kgNZtrCugLbU",
    "kind": "oidc",
    "name": "okta",
    "url": "infrahq.okta.com"
  }'

Returns

Example response

{
  "authURL": "https://example.com/oauth2/v1/authorize",
  "clientID": "0oapn0qwiQPiMIyR35d6",
  "created": "2022-03-14T09:48:00Z",
  "id": "4yJ3n3D8E2",
  "kind": "oidc",
  "name": "okta",
  "scopes": "['openid', 'email']",
  "updated": "2022-03-14T09:48:00Z",
  "url": "infrahq.okta.com"
}

Example response parameters

FieldTypeDescription
authURLstringAuthorize endpoint for the OIDC provider
clientIDstringClient ID for the OIDC provider
createdstringformatted as an RFC3339 date-time
idstringProvider ID
kindstringKind of provider
namestringName of the provider
scopesarrayScopes set in the OIDC provider configuration
updatedstringformatted as an RFC3339 date-time
urlstringURL of the Infra Server

Response Codes

Response CodeDescription
400Bad Request
401Unauthorized: Requestor is not authenticated
403Forbidden: Requestor does not have the right permissions
404Not Found
409Duplicate Record
defaultSuccess

Delete a provider

DELETE /api/providers/{id}

Header Parameters

FieldFormatDescription
Infra-VersionstringVersion of the API being requested
AuthorizationstringBearer followed by your access key

Query Parameters

None

Path Parameters

FieldFormatDescription
idstringID of the provider to remove

Example Request

curl -X DELETE https://api.infrahq.com/api/providers/4yJ3n3D8E2 \
  -H 'Content-Type: application/json' \
  -H 'Infra-Version: 0.17.0' \
  -H 'Authorization: Bearer ACCESSKEY'

Returns

Example response

Empty Response

Example response parameters

Empty Response

Response Codes

Response CodeDescription
400Bad Request
401Unauthorized: Requestor is not authenticated
403Forbidden: Requestor does not have the right permissions
404Not Found
409Duplicate Record
defaultSuccess

Patch a provider

PATCH /api/providers/{id}

Header Parameters

FieldFormatDescription
Infra-VersionstringVersion of the API being requested
AuthorizationstringBearer followed by your access key

Query Parameters

None

Path Parameters

FieldFormatDescription
idstringID of the provider to update

Example Request

curl -X PATCH https://api.infrahq.com/api/providers/4yJ3n3D8E2 \
  -H 'Content-Type: application/json' \
  -H 'Infra-Version: 0.17.0' \
  -H 'Authorization: Bearer ACCESSKEY' \
  -d '{
    "clientSecret": "jmda5eG93ax3jMDxTGrbHd_TBGT6kgNZtrCugLbU",
    "name": "okta"
  }'

Returns

Example response

{
  "authURL": "https://example.com/oauth2/v1/authorize",
  "clientID": "0oapn0qwiQPiMIyR35d6",
  "created": "2022-03-14T09:48:00Z",
  "id": "4yJ3n3D8E2",
  "kind": "oidc",
  "name": "okta",
  "scopes": "['openid', 'email']",
  "updated": "2022-03-14T09:48:00Z",
  "url": "infrahq.okta.com"
}

Example response parameters

FieldTypeDescription
authURLstringAuthorize endpoint for the OIDC provider
clientIDstringClient ID for the OIDC provider
createdstringformatted as an RFC3339 date-time
idstringProvider ID
kindstringKind of provider
namestringName of the provider
scopesarrayScopes set in the OIDC provider configuration
updatedstringformatted as an RFC3339 date-time
urlstringURL of the Infra Server

Response Codes

Response CodeDescription
400Bad Request
401Unauthorized: Requestor is not authenticated
403Forbidden: Requestor does not have the right permissions
404Not Found
409Duplicate Record
defaultSuccess

Working with Destinations

CATEGORY is SHOWN

Create a destination

POST /api/destinations

Create a new destination

Header Parameters

FieldFormatDescription
Infra-VersionstringVersion of the API being requested
AuthorizationstringBearer followed by your access key

Query Parameters

None

Path Parameters

None

Example Request

curl -X POST https://api.infrahq.com/api/destinations \
  -H 'Content-Type: application/json' \
  -H 'Infra-Version: 0.17.0' \
  -H 'Authorization: Bearer ACCESSKEY' \
  -d '{
    "connection": "undefined",
    "kind": "undefined",
    "name": "undefined",
    "resources": "undefined",
    "roles": "undefined",
    "uniqueID": "undefined",
    "version": "undefined"
  }'

Returns

Example response

{
  "connected": true,
  "connection": {
      url: aa60eexample.us-west-2.elb.amazonaws.com,
      ca: -----BEGIN CERTIFICATE-----
          MIIDNTCCAh2gAwIBAgIRALRetnpcTo9O3V2fAK3ix+c
          -----END CERTIFICATE-----
  },
  "created": "2022-03-14T09:48:00Z",
  "id": "7a1b26b33F",
  "kind": "kubernetes",
  "lastSeen": "2022-03-14T09:48:00Z",
  "name": "production-cluster",
  "resources": ['default', 'kube-system'],
  "roles": ['cluster-admin', 'admin', 'edit', 'view', 'exec', 'logs', 'port-forward'],
  "uniqueID": "94c2c570a20311180ec325fd56",
  "updated": "2022-03-14T09:48:00Z",
  "version": "0.17.0"
}

Example response parameters

| Field | Type | Description | | ---------- | ------------------------- | ----------------------------------------------------------------------------------------------- | --- | ------- | ------ | --------------------------------- | | connected | boolean | Shows if the destination is currently connected | | connection | {url: string, ca: string} | URL and CA for destination | | created | string | formatted as an RFC3339 date-time | | id | string | ID of the destination | | kind | string | Kind of destination. eg. kubernetes or ssh or postgres | | lastSeen | string | formatted as an RFC3339 date-time | | name | string | Name of the destination | | resources | array | Destination specific. For Kubernetes, it is the list of namespaces | | roles | array | Destination specific. For Kubernetes, it is the list of cluster roles available on that cluster | | uniqueID | string | Unique ID generated by the connector | | updated | string | formatted as an RFC3339 date-time | | version | string | Application version of the connector for this destination |

Response Codes

Response CodeDescription
400Bad Request
401Unauthorized: Requestor is not authenticated
403Forbidden: Requestor does not have the right permissions
404Not Found
409Duplicate Record
defaultSuccess

Update a destination

PUT /api/destinations/{id}

Header Parameters

FieldFormatDescription
Infra-VersionstringVersion of the API being requested
AuthorizationstringBearer followed by your access key

Query Parameters

None

Path Parameters

FieldFormatDescription
idstringID of the destination to update

Example Request

curl -X PUT https://api.infrahq.com/api/destinations/4yJ3n3D8E2 \
  -H 'Content-Type: application/json' \
  -H 'Infra-Version: 0.17.0' \
  -H 'Authorization: Bearer ACCESSKEY' \
  -d '{
    "connection": "undefined",
    "name": "undefined",
    "resources": "undefined",
    "roles": "undefined",
    "uniqueID": "undefined",
    "version": "undefined"
  }'

Returns

Example response

{
  "connected": true,
  "connection": {
      url: aa60eexample.us-west-2.elb.amazonaws.com,
      ca: -----BEGIN CERTIFICATE-----
          MIIDNTCCAh2gAwIBAgIRALRetnpcTo9O3V2fAK3ix+c
          -----END CERTIFICATE-----
  },
  "created": "2022-03-14T09:48:00Z",
  "id": "7a1b26b33F",
  "kind": "kubernetes",
  "lastSeen": "2022-03-14T09:48:00Z",
  "name": "production-cluster",
  "resources": ['default', 'kube-system'],
  "roles": ['cluster-admin', 'admin', 'edit', 'view', 'exec', 'logs', 'port-forward'],
  "uniqueID": "94c2c570a20311180ec325fd56",
  "updated": "2022-03-14T09:48:00Z",
  "version": "0.17.0"
}

Example response parameters

| Field | Type | Description | | ---------- | ------------------------- | ----------------------------------------------------------------------------------------------- | --- | ------- | ------ | --------------------------------- | | connected | boolean | Shows if the destination is currently connected | | connection | {url: string, ca: string} | URL and CA for destination | | created | string | formatted as an RFC3339 date-time | | id | string | ID of the destination | | kind | string | Kind of destination. eg. kubernetes or ssh or postgres | | lastSeen | string | formatted as an RFC3339 date-time | | name | string | Name of the destination | | resources | array | Destination specific. For Kubernetes, it is the list of namespaces | | roles | array | Destination specific. For Kubernetes, it is the list of cluster roles available on that cluster | | uniqueID | string | Unique ID generated by the connector | | updated | string | formatted as an RFC3339 date-time | | version | string | Application version of the connector for this destination |

Response Codes

Response CodeDescription
400Bad Request
401Unauthorized: Requestor is not authenticated
403Forbidden: Requestor does not have the right permissions
404Not Found
409Duplicate Record
defaultSuccess

Delete a destination

DELETE /api/destinations/{id}

Header Parameters

FieldFormatDescription
Infra-VersionstringVersion of the API being requested
AuthorizationstringBearer followed by your access key

Query Parameters

None

Path Parameters

FieldFormatDescription
idstringID of the destination to remove

Example Request

curl -X DELETE https://api.infrahq.com/api/destinations/4yJ3n3D8E2 \
  -H 'Content-Type: application/json' \
  -H 'Infra-Version: 0.17.0' \
  -H 'Authorization: Bearer ACCESSKEY'

Returns

Example response

Empty Response

Example response parameters

Empty Response

Response Codes

Response CodeDescription
400Bad Request
401Unauthorized: Requestor is not authenticated
403Forbidden: Requestor does not have the right permissions
404Not Found
409Duplicate Record
defaultSuccess

Create a token

POST /api/tokens

Header Parameters

FieldFormatDescription
Infra-VersionstringVersion of the API being requested
AuthorizationstringBearer followed by your access key

Query Parameters

None

Path Parameters

None

Example Request

curl -X POST https://api.infrahq.com/api/tokens \
  -H 'Content-Type: application/json' \
  -H 'Infra-Version: 0.17.0' \
  -H 'Authorization: Bearer ACCESSKEY'

Returns

Example response

{
  "expires": "2022-03-14T09:48:00Z",
  "token": "undefined"
}

Example response parameters

FieldTypeDescription
expiresstringformatted as an RFC3339 date-time
tokenstringundefined

Response Codes

Response CodeDescription
400Bad Request
401Unauthorized: Requestor is not authenticated
403Forbidden: Requestor does not have the right permissions
404Not Found
409Duplicate Record
defaultSuccess

Access Keys

CATEGORY is SHOWN

POST /api/access-keys

This endpoint should remain hidden. api should not be able to create access keys.

Header Parameters

FieldFormatDescription
Infra-VersionstringVersion of the API being requested
AuthorizationstringBearer followed by your access key

Query Parameters

None

Path Parameters

None

Example Request

curl -X POST https://api.infrahq.com/api/access-keys \
  -H 'Content-Type: application/json' \
  -H 'Infra-Version: 0.17.0' \
  -H 'Authorization: Bearer ACCESSKEY' \
  -d '{
    "extensionDeadline": "72h3m6.5s",
    "name": "undefined",
    "ttl": "72h3m6.5s",
    "userID": "4yJ3n3D8E2"
  }'

Returns

Example response

{
  "accessKey": "undefined",
  "created": "2022-03-14T09:48:00Z",
  "expires": "2022-03-14T09:48:00Z",
  "extensionDeadline": "2022-03-14T09:48:00Z",
  "id": "4yJ3n3D8E2",
  "issuedFor": "4yJ3n3D8E2",
  "name": "undefined",
  "providerID": "4yJ3n3D8E2"
}

Example response parameters

FieldTypeDescription
accessKeystringundefined
createdstringformatted as an RFC3339 date-time
expiresstringafter this deadline the key is no longer valid
extensionDeadlinestringthe key must be used by this time to remain valid
idstringundefined
issuedForstringundefined
namestringundefined
providerIDstringundefined

Response Codes

Response CodeDescription
400Bad Request
401Unauthorized: Requestor is not authenticated
403Forbidden: Requestor does not have the right permissions
404Not Found
409Duplicate Record
defaultSuccess

Remove access keys by name

DELETE /api/access-keys

to remain hidden for now. Will remove access keys by name. Since there is no way to specify an owner, the access key used to call this endpoint must be the owner of the access key.

Header Parameters

FieldFormatDescription
Infra-VersionstringVersion of the API being requested
AuthorizationstringBearer followed by your access key

Query Parameters

FieldFormatDescription
namestringName of the access key to delete

Path Parameters

None

Example Request

curl -X DELETE https://api.infrahq.com/api/access-keys?name=cicdkey \
  -H 'Content-Type: application/json' \
  -H 'Infra-Version: 0.17.0' \
  -H 'Authorization: Bearer ACCESSKEY'

Returns

Returns an empty response if authorized to remove the key.

Example response

Empty Response

Example response parameters

Empty Response

Response Codes

Response CodeDescription
400Bad Request
401Unauthorized: Requestor is not authenticated
403Forbidden: Requestor does not have the right permissions
404Not Found
409Duplicate Record
defaultSuccess

Remove access keys by id

DELETE /api/access-keys/{id}

Header Parameters

FieldFormatDescription
Infra-VersionstringVersion of the API being requested
AuthorizationstringBearer followed by your access key

Query Parameters

None

Path Parameters

FieldFormatDescription
idstringundefined

Example Request

curl -X DELETE https://api.infrahq.com/api/access-keys/4yJ3n3D8E2 \
  -H 'Content-Type: application/json' \
  -H 'Infra-Version: 0.17.0' \
  -H 'Authorization: Bearer ACCESSKEY'

Returns

Returns xxx.

Example response

Empty Response

Example response parameters

Empty Response

Response Codes

Response CodeDescription
400Bad Request
401Unauthorized: Requestor is not authenticated
403Forbidden: Requestor does not have the right permissions
404Not Found
409Duplicate Record
defaultSuccess

POST /api/device

Header Parameters

FieldFormatDescription
Infra-VersionstringVersion of the API being requested

Query Parameters

None

Path Parameters

None

Example Request

curl -X POST https://api.infrahq.com/api/device \
  -H 'Content-Type: application/json' \
  -H 'Infra-Version: 0.17.0'

Returns

undefined

Example response

{
  "deviceCode": "NGU4QWFiNjQ5YmQwNG3YTdmZMEyNzQ3YzQ1YSA",
  "expiresIn": "1800",
  "interval": "5",
  "userCode": "BDSD-HQMK",
  "verificationURI": "https://infrahq.com/device"
}

Example response parameters

FieldTypeDescription
deviceCodestringa code that a device will use to exchange for an access key after device login is approved
expiresInintegerThe number of seconds that this set of values is valid
intervalintegerthe number of seconds the device should wait between polling to see if the user has finished logging in
userCodestringThis is the text the user will enter at the Verification URI
verificationURIstringThis is the URL the user needs to enter into their browser to start logging in

Response Codes

Response CodeDescription
400Bad Request
401Unauthorized: Requestor is not authenticated
403Forbidden: Requestor does not have the right permissions
404Not Found
409Duplicate Record
defaultSuccess

POST /api/device/approve

Header Parameters

FieldFormatDescription
Infra-VersionstringVersion of the API being requested
AuthorizationstringBearer followed by your access key

Query Parameters

None

Path Parameters

None

Example Request

curl -X POST https://api.infrahq.com/api/device/approve \
  -H 'Content-Type: application/json' \
  -H 'Infra-Version: 0.17.0' \
  -H 'Authorization: Bearer ACCESSKEY' \
  -d '{
    "userCode": "BDSD-HQMK"
  }'

Returns

undefined

Example response

Empty Response

Example response parameters

Empty Response

Response Codes

Response CodeDescription
400Bad Request
401Unauthorized: Requestor is not authenticated
403Forbidden: Requestor does not have the right permissions
404Not Found
409Duplicate Record
defaultSuccess

POST /api/device/status

Header Parameters

FieldFormatDescription
Infra-VersionstringVersion of the API being requested

Query Parameters

None

Path Parameters

None

Example Request

curl -X POST https://api.infrahq.com/api/device/status \
  -H 'Content-Type: application/json' \
  -H 'Infra-Version: 0.17.0' \
  -d '{
    "deviceCode": "undefined"
  }'

Returns

undefined

Example response

{
  "deviceCode": "",
  "login": "undefined",
  "status": "undefined"
}

Example response parameters

FieldTypeDescription
deviceCodestringundefined
loginobjectundefined
statusstringcan be one of pending, rejected, expired, confirmed

Response Codes

Response CodeDescription
400Bad Request
401Unauthorized: Requestor is not authenticated
403Forbidden: Requestor does not have the right permissions
404Not Found
409Duplicate Record
defaultSuccess

Login to Infra

POST /api/login

Header Parameters

FieldFormatDescription
Infra-VersionstringVersion of the API being requested

Query Parameters

None

Path Parameters

None

Example Request

curl -X POST https://api.infrahq.com/api/login \
  -H 'Content-Type: application/json' \
  -H 'Infra-Version: 0.17.0' \
  -d '{
    "accessKey": "undefined",
  }'

Returns

Returns xxx.

Example response

{
  "accessKey": "undefined",
  "expires": "2022-03-14T09:48:00Z",
  "name": "undefined",
  "organizationName": "undefined",
  "passwordUpdateRequired": "undefined",
  "userID": "4yJ3n3D8E2"
}

Example response parameters

FieldTypeDescription
accessKeystringundefined
expiresstringformatted as an RFC3339 date-time
namestringundefined
organizationNamestringundefined
passwordUpdateRequiredbooleanundefined
userIDstringundefined

Response Codes

Response CodeDescription
400Bad Request
401Unauthorized: Requestor is not authenticated
403Forbidden: Requestor does not have the right permissions
404Not Found
409Duplicate Record
defaultSuccess

Logout from Infra

POST /api/logout

Header Parameters

FieldFormatDescription
Infra-VersionstringVersion of the API being requested
AuthorizationstringBearer followed by your access key

Query Parameters

None

Path Parameters

None

Example Request

curl -X POST https://api.infrahq.com/api/logout \
  -H 'Content-Type: application/json' \
  -H 'Infra-Version: 0.17.0' \
  -H 'Authorization: Bearer ACCESSKEY'

Returns

Returns xxx.

Example response

Empty Response

Example response parameters

Empty Response

Response Codes

Response CodeDescription
400Bad Request
401Unauthorized: Requestor is not authenticated
403Forbidden: Requestor does not have the right permissions
404Not Found
409Duplicate Record
defaultSuccess

POST /api/password-reset

Header Parameters

FieldFormatDescription
Infra-VersionstringVersion of the API being requested

Query Parameters

None

Path Parameters

None

Example Request

curl -X POST https://api.infrahq.com/api/password-reset \
  -H 'Content-Type: application/json' \
  -H 'Infra-Version: 0.17.0' \
  -d '{
    "password": "undefined",
    "token": "undefined"
  }'

Returns

undefined

Example response

{
  "accessKey": "undefined",
  "expires": "2022-03-14T09:48:00Z",
  "name": "undefined",
  "organizationName": "undefined",
  "passwordUpdateRequired": "undefined",
  "userID": "4yJ3n3D8E2"
}

Example response parameters

FieldTypeDescription
accessKeystringundefined
expiresstringformatted as an RFC3339 date-time
namestringundefined
organizationNamestringundefined
passwordUpdateRequiredbooleanundefined
userIDstringundefined

Response Codes

Response CodeDescription
400Bad Request
401Unauthorized: Requestor is not authenticated
403Forbidden: Requestor does not have the right permissions
404Not Found
409Duplicate Record
defaultSuccess

POST /api/password-reset-request

Header Parameters

FieldFormatDescription
Infra-VersionstringVersion of the API being requested

Query Parameters

None

Path Parameters

None

Example Request

curl -X POST https://api.infrahq.com/api/password-reset-request \
  -H 'Content-Type: application/json' \
  -H 'Infra-Version: 0.17.0' \
  -d '{
    "email": "undefined"
  }'

Returns

undefined

Example response

Empty Response

Example response parameters

Empty Response

Response Codes

Response CodeDescription
400Bad Request
401Unauthorized: Requestor is not authenticated
403Forbidden: Requestor does not have the right permissions
404Not Found
409Duplicate Record
defaultSuccess