Introduction
This is the NetFoundry identity service
Overview
HTTP verbs
NetFoundry adheres closely to standard HTTP and REST conventions in its use of HTTP verbs.
| Verb | Usage |
|---|---|
|
Used to retrieve a resource |
|
Used to create a new resource |
|
Used to update an existing resource, full updates only |
|
Used to delete an existing resource |
The PATCH method is not used (yet).
|
HTTP status codes
NetFoundry adheres closely to standard HTTP and REST conventions in its use of HTTP status codes.
| Status code | Usage |
|---|---|
|
The actual response will depend on the request method used. In a GET request, the response will contain an entity corresponding to the requested resource. In a POST request, the response will contain an entity describing or containing the result of the action. |
|
The request has been fulfilled and resulted in a new resource being created. |
|
The request has been accepted and is being processed asynchronously Standard response for successful HTTP requests which invoke back-end services. |
|
The server successfully processed the request, but is not returning any content. |
|
The server cannot or will not process the request due to something that is perceived to be a client error (e.g., malformed request syntax, invalid request message framing, or deceptive request routing). |
|
The request lacks valid authentication credentials for the target resource. |
|
The request is authenticated with valid credentials however that set of credentials is not authorized to access this resource. |
|
The requested resource could not be found but may be available again in the future. Subsequent requests by the client are permissible. |
Resources
Organization
Find Organizations
GET /organizations
Query parameters
Supports standard paging query parameters.
| Parameter | Type | Optional | Description |
|---|---|---|---|
realmId |
Object |
true |
|
name |
String |
true |
|
active |
Boolean |
true |
|
mfaProviders |
Object |
true |
Must be one of [None, GoogleAuthenticator]. |
includeDeleted |
Boolean |
true |
Default value: 'false'. |
Response fields
Standard paging response where content field is list of following objects:
| Path | Type | Optional | Description |
|---|---|---|---|
id |
String |
true |
|
realmId |
String |
true |
|
name |
String |
true |
|
label |
String |
true |
|
identityProviders |
Array[Object] |
true |
|
identityProviders[].id |
String |
true |
|
identityProviders[].organizationId |
String |
true |
|
identityProviders[].auth0ConnectionId |
String |
true |
|
identityProviders[].name |
String |
true |
|
identityProviders[].auth0ConnectionType |
String |
true |
Must be one of [Database, Social, Enterprise, Passwordless]. |
identityProviders[].active |
Boolean |
true |
|
identityProviders[].createdAt |
Object |
true |
|
identityProviders[].updatedAt |
Object |
true |
|
identityProviders[].deletedAt |
Object |
true |
|
defaultRoles |
Array[Object] |
true |
|
defaultRoles[].id |
String |
true |
|
defaultRoles[].organizationId |
String |
true |
|
defaultRoles[].name |
String |
true |
|
defaultRoles[].roleType |
String |
true |
Must be one of [Standard, Custom]. |
defaultRoles[].roleId |
String |
true |
|
defaultRoles[].createdBy |
String |
true |
|
defaultRoles[].createdAt |
Object |
true |
|
defaultRoles[].deletedAt |
Object |
true |
|
defaultRoles[].deletedBy |
String |
true |
|
defaultRoles[].deleted |
Boolean |
true |
|
active |
Boolean |
true |
|
mfaProvider |
String |
true |
Must be one of [None, GoogleAuthenticator]. |
createdAt |
Object |
true |
|
updatedAt |
Object |
true |
|
deletedBy |
String |
true |
|
deletedAt |
Object |
true |
|
deleted |
Boolean |
true |
Example request
$ curl 'https://gateway.netFoundry.io/identity/v1/organizations' -i -X GET
Example response
HTTP/1.1 200 OK
Link: <https://gateway.netFoundry.io/identity/v1/organizations?page=1>; rel="next", <https://gateway.netFoundry.io/identity/v1/organizations?page=1>; rel="last"
Content-Type: application/json
Content-Length: 2573
[ {
"id" : "1661e396-366d-4832-8f62-82111a1c3342",
"realmId" : "9b69dcac-6b13-4180-8ee0-6cc05080460d",
"name" : "World Wide Imports",
"label" : "WW-Imports-248",
"identityProviders" : [ {
"id" : "2e000aa7-848e-42d2-bab5-232f50bef653",
"organizationId" : "1661e396-366d-4832-8f62-82111a1c3342",
"auth0ConnectionId" : "auth0-opaque-connectionId-249",
"name" : "New IdP Name",
"auth0ConnectionType" : "Database",
"active" : true,
"createdAt" : {
"nano" : 439665000,
"epochSecond" : 1787089041
},
"updatedAt" : {
"nano" : 477520000,
"epochSecond" : 1787089041
},
"deletedAt" : null
} ],
"defaultRoles" : [ ],
"active" : true,
"mfaProvider" : null,
"createdAt" : {
"nano" : 437860000,
"epochSecond" : 1787089041
},
"updatedAt" : null,
"deletedBy" : null,
"deletedAt" : null,
"deleted" : false
}, {
"id" : "19db7ce8-15ed-43f5-9a0b-2ebf00cd767b",
"realmId" : "ce77bf02-afb9-4357-97ba-e46f60ee0634",
"name" : "World Wide Imports",
"label" : "WW-Imports-331",
"identityProviders" : [ {
"id" : "aa5c679a-89c9-4110-bcc4-f49358035b7e",
"organizationId" : "19db7ce8-15ed-43f5-9a0b-2ebf00cd767b",
"auth0ConnectionId" : "auth0-opaque-connectionId-332",
"name" : "Username/Password",
"auth0ConnectionType" : "Database",
"active" : true,
"createdAt" : {
"nano" : 738998000,
"epochSecond" : 1787089055
},
"updatedAt" : null,
"deletedAt" : null
} ],
"defaultRoles" : [ ],
"active" : true,
"mfaProvider" : null,
"createdAt" : {
"nano" : 737878000,
"epochSecond" : 1787089055
},
"updatedAt" : null,
"deletedBy" : null,
"deletedAt" : null,
"deleted" : false
}, {
"id" : "2cc85afd-7180-4039-8501-a258a43b76df",
"realmId" : "9b69dcac-6b13-4180-8ee0-6cc05080460d",
"name" : "World Wide Imports",
"label" : "WW-Imports-148",
"identityProviders" : [ {
"id" : "359058ae-d78b-4b70-835d-35788faf1d9d",
"organizationId" : "2cc85afd-7180-4039-8501-a258a43b76df",
"auth0ConnectionId" : "auth0-opaque-connectionId-149",
"name" : "Username/Password",
"auth0ConnectionType" : "Database",
"active" : true,
"createdAt" : {
"nano" : 540980000,
"epochSecond" : 1787089036
},
"updatedAt" : null,
"deletedAt" : null
} ],
"defaultRoles" : [ ],
"active" : true,
"mfaProvider" : null,
"createdAt" : {
"nano" : 537426000,
"epochSecond" : 1787089036
},
"updatedAt" : null,
"deletedBy" : null,
"deletedAt" : null,
"deleted" : false
} ]
Get Organization By Self
GET /organizations/self
Response fields
No response body.
Example request
$ curl 'https://gateway.netFoundry.io/identity/v1/organizations/self' -i -X GET
Example response
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 2218
{
"id" : "f1c46320-fee2-4823-ac2a-b0f3e074bb4a",
"realmId" : "2b551792-324e-4200-ab38-3d17f27ac13d",
"name" : "ACME International, Inc.",
"label" : "ACME-2",
"identityProviders" : [ {
"id" : "ed0a89a9-ad3b-4dc9-a865-73c65e3c8192",
"organizationId" : "f1c46320-fee2-4823-ac2a-b0f3e074bb4a",
"auth0ConnectionId" : "auth0-opaque-connectionId-4",
"name" : "Google-Account",
"auth0ConnectionType" : "Social",
"active" : true,
"createdAt" : {
"nano" : 118665000,
"epochSecond" : 1787088971
},
"updatedAt" : null,
"deletedAt" : null
}, {
"id" : "ee2891f6-c487-42ec-8573-2503b6b7fc16",
"organizationId" : "f1c46320-fee2-4823-ac2a-b0f3e074bb4a",
"auth0ConnectionId" : "auth0-opaque-connectionId-3",
"name" : "ACME Federated Active Directory",
"auth0ConnectionType" : "Enterprise",
"active" : true,
"createdAt" : {
"nano" : 88643000,
"epochSecond" : 1787088971
},
"updatedAt" : null,
"deletedAt" : null
} ],
"defaultRoles" : [ {
"id" : "a2631a7c-8301-4e00-91aa-d9eccbefc92c",
"organizationId" : "f1c46320-fee2-4823-ac2a-b0f3e074bb4a",
"name" : "Custom Role - ba6946d4-c3ca-4ca2-bfae-3dc0a05a79af",
"roleType" : "Custom",
"roleId" : "ba6946d4-c3ca-4ca2-bfae-3dc0a05a79af",
"createdBy" : "e7ec85dc-cbbb-4feb-ac94-11b8d563bb01",
"createdAt" : {
"nano" : 388539000,
"epochSecond" : 1787088971
},
"deletedAt" : null,
"deletedBy" : null,
"deleted" : false
}, {
"id" : "3c398d21-2e6f-4030-a938-c088e4d86fd8",
"organizationId" : "f1c46320-fee2-4823-ac2a-b0f3e074bb4a",
"name" : "Standard Role - 51ad38e5-e4c5-456a-80cc-0ed553d92585",
"roleType" : "Standard",
"roleId" : "51ad38e5-e4c5-456a-80cc-0ed553d92585",
"createdBy" : "7067c400-06ed-4e06-a03d-a0b4603a3f9d",
"createdAt" : {
"nano" : 347935000,
"epochSecond" : 1787088971
},
"deletedAt" : null,
"deletedBy" : null,
"deleted" : false
} ],
"active" : true,
"mfaProvider" : null,
"createdAt" : {
"nano" : 83023000,
"epochSecond" : 1787088971
},
"updatedAt" : null,
"deletedBy" : null,
"deletedAt" : null,
"deleted" : false
}
Get Organization By Id
GET /organizations/{id:[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}}
Path parameters
| Parameter | Type | Optional | Description |
|---|---|---|---|
id |
Object |
false |
Response fields
| Path | Type | Optional | Description |
|---|---|---|---|
id |
String |
true |
|
realmId |
String |
true |
|
name |
String |
true |
|
label |
String |
true |
|
identityProviders |
Array[Object] |
true |
|
identityProviders[].id |
String |
true |
|
identityProviders[].organizationId |
String |
true |
|
identityProviders[].auth0ConnectionId |
String |
true |
|
identityProviders[].name |
String |
true |
|
identityProviders[].auth0ConnectionType |
String |
true |
Must be one of [Database, Social, Enterprise, Passwordless]. |
identityProviders[].active |
Boolean |
true |
|
identityProviders[].createdAt |
Object |
true |
|
identityProviders[].updatedAt |
Object |
true |
|
identityProviders[].deletedAt |
Object |
true |
|
defaultRoles |
Array[Object] |
true |
|
defaultRoles[].id |
String |
true |
|
defaultRoles[].organizationId |
String |
true |
|
defaultRoles[].name |
String |
true |
|
defaultRoles[].roleType |
String |
true |
Must be one of [Standard, Custom]. |
defaultRoles[].roleId |
String |
true |
|
defaultRoles[].createdBy |
String |
true |
|
defaultRoles[].createdAt |
Object |
true |
|
defaultRoles[].deletedAt |
Object |
true |
|
defaultRoles[].deletedBy |
String |
true |
|
defaultRoles[].deleted |
Boolean |
true |
|
active |
Boolean |
true |
|
mfaProvider |
String |
true |
Must be one of [None, GoogleAuthenticator]. |
createdAt |
Object |
true |
|
updatedAt |
Object |
true |
|
deletedBy |
String |
true |
|
deletedAt |
Object |
true |
|
deleted |
Boolean |
true |
Example request
$ curl 'https://gateway.netFoundry.io/identity/v1/organizations/f1c46320-fee2-4823-ac2a-b0f3e074bb4a' -i -X GET
Example response
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 2218
{
"id" : "f1c46320-fee2-4823-ac2a-b0f3e074bb4a",
"realmId" : "2b551792-324e-4200-ab38-3d17f27ac13d",
"name" : "ACME International, Inc.",
"label" : "ACME-2",
"identityProviders" : [ {
"id" : "ed0a89a9-ad3b-4dc9-a865-73c65e3c8192",
"organizationId" : "f1c46320-fee2-4823-ac2a-b0f3e074bb4a",
"auth0ConnectionId" : "auth0-opaque-connectionId-4",
"name" : "Google-Account",
"auth0ConnectionType" : "Social",
"active" : true,
"createdAt" : {
"nano" : 118665000,
"epochSecond" : 1787088971
},
"updatedAt" : null,
"deletedAt" : null
}, {
"id" : "ee2891f6-c487-42ec-8573-2503b6b7fc16",
"organizationId" : "f1c46320-fee2-4823-ac2a-b0f3e074bb4a",
"auth0ConnectionId" : "auth0-opaque-connectionId-3",
"name" : "ACME Federated Active Directory",
"auth0ConnectionType" : "Enterprise",
"active" : true,
"createdAt" : {
"nano" : 88643000,
"epochSecond" : 1787088971
},
"updatedAt" : null,
"deletedAt" : null
} ],
"defaultRoles" : [ {
"id" : "a2631a7c-8301-4e00-91aa-d9eccbefc92c",
"organizationId" : "f1c46320-fee2-4823-ac2a-b0f3e074bb4a",
"name" : "Custom Role - ba6946d4-c3ca-4ca2-bfae-3dc0a05a79af",
"roleType" : "Custom",
"roleId" : "ba6946d4-c3ca-4ca2-bfae-3dc0a05a79af",
"createdBy" : "e7ec85dc-cbbb-4feb-ac94-11b8d563bb01",
"createdAt" : {
"nano" : 388539000,
"epochSecond" : 1787088971
},
"deletedAt" : null,
"deletedBy" : null,
"deleted" : false
}, {
"id" : "3c398d21-2e6f-4030-a938-c088e4d86fd8",
"organizationId" : "f1c46320-fee2-4823-ac2a-b0f3e074bb4a",
"name" : "Standard Role - 51ad38e5-e4c5-456a-80cc-0ed553d92585",
"roleType" : "Standard",
"roleId" : "51ad38e5-e4c5-456a-80cc-0ed553d92585",
"createdBy" : "7067c400-06ed-4e06-a03d-a0b4603a3f9d",
"createdAt" : {
"nano" : 347935000,
"epochSecond" : 1787088971
},
"deletedAt" : null,
"deletedBy" : null,
"deleted" : false
} ],
"active" : true,
"mfaProvider" : null,
"createdAt" : {
"nano" : 83023000,
"epochSecond" : 1787088971
},
"updatedAt" : null,
"deletedBy" : null,
"deletedAt" : null,
"deleted" : false
}
Get Organization By Label
GET /organizations/label/{label:[a-zA-Z0-9]+[-a-zA-Z0-9]{1,62}}
Path parameters
| Parameter | Type | Optional | Description |
|---|---|---|---|
label |
String |
false |
Query parameters
| Parameter | Type | Optional | Description |
|---|---|---|---|
realm |
String |
true |
Response fields
| Path | Type | Optional | Description |
|---|---|---|---|
id |
String |
true |
|
realmId |
String |
true |
|
name |
String |
true |
|
label |
String |
true |
|
active |
Boolean |
true |
|
identityProviders |
Array[Object] |
true |
|
identityProviders[].id |
String |
true |
|
identityProviders[].organizationId |
String |
true |
|
identityProviders[].auth0ConnectionId |
String |
true |
|
identityProviders[].name |
String |
true |
|
identityProviders[].auth0ConnectionType |
String |
true |
Must be one of [Database, Social, Enterprise, Passwordless]. |
identityProviders[].active |
Boolean |
true |
|
identityProviders[].createdAt |
Object |
true |
|
identityProviders[].updatedAt |
Object |
true |
|
identityProviders[].deletedAt |
Object |
true |
|
mfaProvider |
String |
true |
Must be one of [None, GoogleAuthenticator]. |
Example request
$ curl 'https://gateway.netFoundry.io/identity/v1/organizations/label/ACME-2' -i -X GET
Example response
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 1059
{
"id" : "f1c46320-fee2-4823-ac2a-b0f3e074bb4a",
"realmId" : "2b551792-324e-4200-ab38-3d17f27ac13d",
"name" : "ACME International, Inc.",
"label" : "ACME-2",
"active" : true,
"identityProviders" : [ {
"id" : "ed0a89a9-ad3b-4dc9-a865-73c65e3c8192",
"organizationId" : "f1c46320-fee2-4823-ac2a-b0f3e074bb4a",
"auth0ConnectionId" : "auth0-opaque-connectionId-4",
"name" : "Google-Account",
"auth0ConnectionType" : "Social",
"active" : true,
"createdAt" : {
"nano" : 118665000,
"epochSecond" : 1787088971
},
"updatedAt" : null,
"deletedAt" : null
}, {
"id" : "ee2891f6-c487-42ec-8573-2503b6b7fc16",
"organizationId" : "f1c46320-fee2-4823-ac2a-b0f3e074bb4a",
"auth0ConnectionId" : "auth0-opaque-connectionId-3",
"name" : "ACME Federated Active Directory",
"auth0ConnectionType" : "Enterprise",
"active" : true,
"createdAt" : {
"nano" : 88643000,
"epochSecond" : 1787088971
},
"updatedAt" : null,
"deletedAt" : null
} ],
"mfaProvider" : null
}
Create Organization
POST /organizations
Request fields
| Path | Type | Optional | Description |
|---|---|---|---|
realmId |
String |
true |
|
name |
String |
true |
|
label |
String |
true |
|
auth0ConnectionId |
String |
true |
|
identityProviderName |
String |
true |
|
auth0ConnectionType |
String |
true |
Must be one of [Database, Social, Enterprise, Passwordless]. |
Response fields
| Path | Type | Optional | Description |
|---|---|---|---|
id |
String |
true |
|
realmId |
String |
true |
|
name |
String |
true |
|
label |
String |
true |
|
identityProviders |
Array[Object] |
true |
|
identityProviders[].id |
String |
true |
|
identityProviders[].organizationId |
String |
true |
|
identityProviders[].auth0ConnectionId |
String |
true |
|
identityProviders[].name |
String |
true |
|
identityProviders[].auth0ConnectionType |
String |
true |
Must be one of [Database, Social, Enterprise, Passwordless]. |
identityProviders[].active |
Boolean |
true |
|
identityProviders[].createdAt |
Object |
true |
|
identityProviders[].updatedAt |
Object |
true |
|
identityProviders[].deletedAt |
Object |
true |
|
defaultRoles |
Array[Object] |
true |
|
defaultRoles[].id |
String |
true |
|
defaultRoles[].organizationId |
String |
true |
|
defaultRoles[].name |
String |
true |
|
defaultRoles[].roleType |
String |
true |
Must be one of [Standard, Custom]. |
defaultRoles[].roleId |
String |
true |
|
defaultRoles[].createdBy |
String |
true |
|
defaultRoles[].createdAt |
Object |
true |
|
defaultRoles[].deletedAt |
Object |
true |
|
defaultRoles[].deletedBy |
String |
true |
|
defaultRoles[].deleted |
Boolean |
true |
|
active |
Boolean |
true |
|
mfaProvider |
String |
true |
Must be one of [None, GoogleAuthenticator]. |
createdAt |
Object |
true |
|
updatedAt |
Object |
true |
|
deletedBy |
String |
true |
|
deletedAt |
Object |
true |
|
deleted |
Boolean |
true |
Example request
$ curl 'https://gateway.netFoundry.io/identity/v1/organizations' -i -X POST \
-H 'Content-Type: application/json' \
-d '{
"realmId" : "762c1fee-bbb4-4786-b504-22470da918ff",
"name" : "Best Corp.",
"label" : "BEST-CORP",
"auth0ConnectionId" : "auth0-opaque-connection",
"identityProviderName" : "Corp SAML",
"auth0ConnectionType" : "Enterprise"
}'
Example response
HTTP/1.1 201 Created
Content-Type: application/json
Content-Length: 810
{
"id" : "97b01b56-5ced-4bcd-bad3-6009bd7bcb15",
"realmId" : "762c1fee-bbb4-4786-b504-22470da918ff",
"name" : "Best Corp.",
"label" : "BEST-CORP",
"identityProviders" : [ {
"id" : "30c7ba33-3c0f-48fb-b53f-02174c4d0471",
"organizationId" : "97b01b56-5ced-4bcd-bad3-6009bd7bcb15",
"auth0ConnectionId" : "auth0-opaque-connection",
"name" : "Best Corp.",
"auth0ConnectionType" : "Enterprise",
"active" : true,
"createdAt" : {
"nano" : 74671000,
"epochSecond" : 1787089056
},
"updatedAt" : null,
"deletedAt" : null
} ],
"defaultRoles" : [ ],
"active" : true,
"mfaProvider" : null,
"createdAt" : {
"nano" : 73805000,
"epochSecond" : 1787089056
},
"updatedAt" : null,
"deletedBy" : null,
"deletedAt" : null,
"deleted" : false
}
Activate Or Deactivate Organization
PUT /organizations/{id}/{action:activate|deactivate}
Path parameters
| Parameter | Type | Optional | Description |
|---|---|---|---|
id |
Object |
false |
|
action |
String |
false |
Response fields
| Path | Type | Optional | Description |
|---|---|---|---|
id |
String |
true |
|
realmId |
String |
true |
|
name |
String |
true |
|
label |
String |
true |
|
identityProviders |
Array[Object] |
true |
|
identityProviders[].id |
String |
true |
|
identityProviders[].organizationId |
String |
true |
|
identityProviders[].auth0ConnectionId |
String |
true |
|
identityProviders[].name |
String |
true |
|
identityProviders[].auth0ConnectionType |
String |
true |
Must be one of [Database, Social, Enterprise, Passwordless]. |
identityProviders[].active |
Boolean |
true |
|
identityProviders[].createdAt |
Object |
true |
|
identityProviders[].updatedAt |
Object |
true |
|
identityProviders[].deletedAt |
Object |
true |
|
defaultRoles |
Array[Object] |
true |
|
defaultRoles[].id |
String |
true |
|
defaultRoles[].organizationId |
String |
true |
|
defaultRoles[].name |
String |
true |
|
defaultRoles[].roleType |
String |
true |
Must be one of [Standard, Custom]. |
defaultRoles[].roleId |
String |
true |
|
defaultRoles[].createdBy |
String |
true |
|
defaultRoles[].createdAt |
Object |
true |
|
defaultRoles[].deletedAt |
Object |
true |
|
defaultRoles[].deletedBy |
String |
true |
|
defaultRoles[].deleted |
Boolean |
true |
|
active |
Boolean |
true |
|
mfaProvider |
String |
true |
Must be one of [None, GoogleAuthenticator]. |
createdAt |
Object |
true |
|
updatedAt |
Object |
true |
|
deletedBy |
String |
true |
|
deletedAt |
Object |
true |
|
deleted |
Boolean |
true |
Example request
$ curl 'https://gateway.netFoundry.io/identity/v1/organizations/a19a45d6-2df7-488d-92c9-11a9b04a6171/deactivate' -i -X PUT
Example response
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 893
{
"id" : "a19a45d6-2df7-488d-92c9-11a9b04a6171",
"realmId" : "9b69dcac-6b13-4180-8ee0-6cc05080460d",
"name" : "World Wide Imports",
"label" : "WW-Imports-353",
"identityProviders" : [ {
"id" : "6afdbc4b-33d7-448f-bee0-bf7c4a9dd3ab",
"organizationId" : "a19a45d6-2df7-488d-92c9-11a9b04a6171",
"auth0ConnectionId" : "auth0-opaque-connectionId-354",
"name" : "Username/Password",
"auth0ConnectionType" : "Database",
"active" : true,
"createdAt" : {
"nano" : 539216000,
"epochSecond" : 1787089057
},
"updatedAt" : null,
"deletedAt" : null
} ],
"defaultRoles" : [ ],
"active" : false,
"mfaProvider" : null,
"createdAt" : {
"nano" : 538335000,
"epochSecond" : 1787089057
},
"updatedAt" : {
"nano" : 557919000,
"epochSecond" : 1787089057
},
"deletedBy" : null,
"deletedAt" : null,
"deleted" : false
}
Add Identity Provider
POST /organizations/{id}/identity-providers
Authorization
This endpoint requires:
-
create-identity-provideraction on thisorganizationresource.
Path parameters
| Parameter | Type | Optional | Description |
|---|---|---|---|
id |
Object |
false |
Request fields
| Path | Type | Optional | Description |
|---|---|---|---|
auth0ConnectionId |
String |
true |
|
identityProviderName |
String |
true |
|
auth0ConnectionType |
String |
true |
Must be one of [Database, Social, Enterprise, Passwordless]. |
Response fields
| Path | Type | Optional | Description |
|---|---|---|---|
id |
String |
true |
|
realmId |
String |
true |
|
name |
String |
true |
|
label |
String |
true |
|
identityProviders |
Array[Object] |
true |
|
identityProviders[].id |
String |
true |
|
identityProviders[].organizationId |
String |
true |
|
identityProviders[].auth0ConnectionId |
String |
true |
|
identityProviders[].name |
String |
true |
|
identityProviders[].auth0ConnectionType |
String |
true |
Must be one of [Database, Social, Enterprise, Passwordless]. |
identityProviders[].active |
Boolean |
true |
|
identityProviders[].createdAt |
Object |
true |
|
identityProviders[].updatedAt |
Object |
true |
|
identityProviders[].deletedAt |
Object |
true |
|
defaultRoles |
Array[Object] |
true |
|
defaultRoles[].id |
String |
true |
|
defaultRoles[].organizationId |
String |
true |
|
defaultRoles[].name |
String |
true |
|
defaultRoles[].roleType |
String |
true |
Must be one of [Standard, Custom]. |
defaultRoles[].roleId |
String |
true |
|
defaultRoles[].createdBy |
String |
true |
|
defaultRoles[].createdAt |
Object |
true |
|
defaultRoles[].deletedAt |
Object |
true |
|
defaultRoles[].deletedBy |
String |
true |
|
defaultRoles[].deleted |
Boolean |
true |
|
active |
Boolean |
true |
|
mfaProvider |
String |
true |
Must be one of [None, GoogleAuthenticator]. |
createdAt |
Object |
true |
|
updatedAt |
Object |
true |
|
deletedBy |
String |
true |
|
deletedAt |
Object |
true |
|
deleted |
Boolean |
true |
Example request
$ curl 'https://gateway.netFoundry.io/identity/v1/organizations/51028e23-7f1c-4cb1-bbae-f0ecfdaefe14/identity-providers' -i -X POST \
-H 'Content-Type: application/json' \
-d '{
"auth0ConnectionId" : "auth0-opaque-connection",
"identityProviderName" : "Corp SAML",
"auth0ConnectionType" : "Enterprise"
}'
Example response
HTTP/1.1 201 Created
Content-Type: application/json
Content-Length: 1232
{
"id" : "51028e23-7f1c-4cb1-bbae-f0ecfdaefe14",
"realmId" : "9b69dcac-6b13-4180-8ee0-6cc05080460d",
"name" : "World Wide Imports",
"label" : "WW-Imports-349",
"identityProviders" : [ {
"id" : "c75646fc-23d1-4f18-8b73-e5d59f614cfb",
"organizationId" : "51028e23-7f1c-4cb1-bbae-f0ecfdaefe14",
"auth0ConnectionId" : "auth0-opaque-connectionId-350",
"name" : "Username/Password",
"auth0ConnectionType" : "Database",
"active" : true,
"createdAt" : {
"nano" : 190072000,
"epochSecond" : 1787089057
},
"updatedAt" : null,
"deletedAt" : null
}, {
"id" : "67bb5ad2-34f8-4bfa-afff-fa8bb489f28b",
"organizationId" : "51028e23-7f1c-4cb1-bbae-f0ecfdaefe14",
"auth0ConnectionId" : "auth0-opaque-connection",
"name" : "Corp SAML",
"auth0ConnectionType" : "Enterprise",
"active" : true,
"createdAt" : {
"nano" : 239229000,
"epochSecond" : 1787089057
},
"updatedAt" : null,
"deletedAt" : null
} ],
"defaultRoles" : [ ],
"active" : true,
"mfaProvider" : null,
"createdAt" : {
"nano" : 183773000,
"epochSecond" : 1787089057
},
"updatedAt" : null,
"deletedBy" : null,
"deletedAt" : null,
"deleted" : false
}
OIDC Issuers
Find Oidc Issuers
GET /oidc-issuers
Response fields
Standard paging response where content field is list of following objects:
| Path | Type | Optional | Description |
|---|---|---|---|
id |
String |
true |
|
issuer |
String |
true |
|
jwksUri |
String |
true |
|
active |
Boolean |
true |
|
createdBy |
String |
true |
|
createdAt |
Object |
true |
|
deletedAt |
Object |
true |
|
deletedBy |
String |
true |
|
deleted |
Boolean |
true |
Example request
$ curl 'https://gateway.netFoundry.io/identity/v1/oidc-issuers' -i -X GET
Example response
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 1219
[ {
"id" : "3d738552-0088-402a-ae3a-b07fb29c25f1",
"issuer" : "https://b2bc0265-9e21-4f0c-81a8-eebcfa6d1b25.issuer.idp",
"jwksUri" : "https://b2bc0265-9e21-4f0c-81a8-eebcfa6d1b25.issuer.idp/jwks",
"active" : true,
"createdBy" : "df5341c4-c1ad-4c18-88da-41b77c36fb80",
"createdAt" : {
"nano" : 893809000,
"epochSecond" : 1787089052
},
"deletedAt" : null,
"deletedBy" : null,
"deleted" : false
}, {
"id" : "6c72dba0-a155-4804-9a70-89da12149793",
"issuer" : "https://accounts.google.com",
"jwksUri" : "https://www.googleapis.com/oauth2/v3/certs",
"active" : true,
"createdBy" : "2b6f496d-36f1-4e66-a205-8abcf1d41d74",
"createdAt" : {
"nano" : 772315000,
"epochSecond" : 1787088963
},
"deletedAt" : null,
"deletedBy" : null,
"deleted" : false
}, {
"id" : "7e903768-c915-4cc2-a180-b037a7905131",
"issuer" : "https://0e2f0d33-cce5-49cd-b0a2-45b7945fe582.issuer.idp",
"jwksUri" : "https://0e2f0d33-cce5-49cd-b0a2-45b7945fe582.issuer.idp/jwks",
"active" : true,
"createdBy" : "665fef42-1659-430c-bdce-a015351747fc",
"createdAt" : {
"nano" : 375994000,
"epochSecond" : 1787089053
},
"deletedAt" : null,
"deletedBy" : null,
"deleted" : false
} ]
Get Oidc Issuer
GET /oidc-issuers/{id}
Path parameters
| Parameter | Type | Optional | Description |
|---|---|---|---|
id |
Object |
false |
Response fields
| Path | Type | Optional | Description |
|---|---|---|---|
id |
String |
true |
|
issuer |
String |
true |
|
jwksUri |
String |
true |
|
active |
Boolean |
true |
|
createdBy |
String |
true |
|
createdAt |
Object |
true |
|
deletedAt |
Object |
true |
|
deletedBy |
String |
true |
|
deleted |
Boolean |
true |
Example request
$ curl 'https://gateway.netFoundry.io/identity/v1/oidc-issuers/69b68651-f7df-4f3f-9f3a-95f83d365bda' -i -X GET
Example response
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 419
{
"id" : "69b68651-f7df-4f3f-9f3a-95f83d365bda",
"issuer" : "https://7d821410-399b-4993-a038-c7ed8b53a554.issuer.idp",
"jwksUri" : "https://7d821410-399b-4993-a038-c7ed8b53a554.issuer.idp/jwks",
"active" : true,
"createdBy" : "0f048e74-17dd-4d30-8db4-bc10fffacb8f",
"createdAt" : {
"nano" : 402122000,
"epochSecond" : 1787089054
},
"deletedAt" : null,
"deletedBy" : null,
"deleted" : false
}
Create Oidc Issuer
POST /oidc-issuers
Request fields
| Path | Type | Optional | Description |
|---|---|---|---|
issuer |
String |
true |
|
jwksUri |
String |
true |
|
active |
Boolean |
true |
Response fields
| Path | Type | Optional | Description |
|---|---|---|---|
id |
String |
true |
|
issuer |
String |
true |
|
jwksUri |
String |
true |
|
active |
Boolean |
true |
|
createdBy |
String |
true |
|
createdAt |
Object |
true |
|
deletedAt |
Object |
true |
|
deletedBy |
String |
true |
|
deleted |
Boolean |
true |
Example request
$ curl 'https://gateway.netFoundry.io/identity/v1/oidc-issuers' -i -X POST \
-H 'Content-Type: application/json' \
-d '{
"issuer" : "https://9716c71c-92fa-48a4-9607-aee702a42f49.issuer.idp",
"jwksUri" : "https://9716c71c-92fa-48a4-9607-aee702a42f49.issuer.idp/jwks",
"active" : true
}'
Example response
HTTP/1.1 201 Created
Content-Type: application/json
Content-Length: 419
{
"id" : "b71b9ab8-f176-4995-a1a3-f1d4ddcba4a9",
"issuer" : "https://9716c71c-92fa-48a4-9607-aee702a42f49.issuer.idp",
"jwksUri" : "https://9716c71c-92fa-48a4-9607-aee702a42f49.issuer.idp/jwks",
"active" : true,
"createdBy" : "616e350f-3161-4155-8604-aac3d42b8eaa",
"createdAt" : {
"nano" : 341346000,
"epochSecond" : 1787089054
},
"deletedAt" : null,
"deletedBy" : null,
"deleted" : false
}
Update Oidc Issuer
PATCH /oidc-issuers/{id}
Path parameters
| Parameter | Type | Optional | Description |
|---|---|---|---|
id |
Object |
false |
Request fields
| Path | Type | Optional | Description |
|---|---|---|---|
issuer |
String |
true |
|
jwksUri |
String |
true |
|
active |
Boolean |
true |
Response fields
| Path | Type | Optional | Description |
|---|---|---|---|
id |
String |
true |
|
issuer |
String |
true |
|
jwksUri |
String |
true |
|
active |
Boolean |
true |
|
createdBy |
String |
true |
|
createdAt |
Object |
true |
|
deletedAt |
Object |
true |
|
deletedBy |
String |
true |
|
deleted |
Boolean |
true |
Example request
$ curl 'https://gateway.netFoundry.io/identity/v1/oidc-issuers/c0bec2e7-b76a-452b-83d6-56d43a1e15ff' -i -X PATCH \
-H 'Content-Type: application/json' \
-d '{
"issuer" : "https://c5cc50d7-2c49-46a4-aadd-1f0dbe8c89f7.issuer.idp",
"jwksUri" : "https://c5cc50d7-2c49-46a4-aadd-1f0dbe8c89f7.issuer.idp/jwks",
"active" : false
}'
Example response
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 420
{
"id" : "c0bec2e7-b76a-452b-83d6-56d43a1e15ff",
"issuer" : "https://c5cc50d7-2c49-46a4-aadd-1f0dbe8c89f7.issuer.idp",
"jwksUri" : "https://c5cc50d7-2c49-46a4-aadd-1f0dbe8c89f7.issuer.idp/jwks",
"active" : false,
"createdBy" : "32b3ba51-713b-4f44-b1ef-d80a1e81410c",
"createdAt" : {
"nano" : 258098000,
"epochSecond" : 1787089054
},
"deletedAt" : null,
"deletedBy" : null,
"deleted" : false
}
Delete Oidc Issuer
DELETE /oidc-issuers/{id}
Path parameters
| Parameter | Type | Optional | Description |
|---|---|---|---|
id |
Object |
false |
Response fields
| Path | Type | Optional | Description |
|---|---|---|---|
id |
String |
true |
|
issuer |
String |
true |
|
jwksUri |
String |
true |
|
active |
Boolean |
true |
|
createdBy |
String |
true |
|
createdAt |
Object |
true |
|
deletedAt |
Object |
true |
|
deletedBy |
String |
true |
|
deleted |
Boolean |
true |
Example request
$ curl 'https://gateway.netFoundry.io/identity/v1/oidc-issuers/8cd0b760-dac5-4d56-89d1-d61d1c0b33bf' -i -X DELETE
Example response
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 508
{
"id" : "8cd0b760-dac5-4d56-89d1-d61d1c0b33bf",
"issuer" : "https://986fbe31-9ad4-42b3-9fe5-d811a7ae0911.issuer.idp",
"jwksUri" : "https://986fbe31-9ad4-42b3-9fe5-d811a7ae0911.issuer.idp/jwks",
"active" : true,
"createdBy" : "a854008d-05bc-44d7-9a85-6ffbfbb4affe",
"createdAt" : {
"nano" : 479893000,
"epochSecond" : 1787089054
},
"deletedAt" : {
"nano" : 501028000,
"epochSecond" : 1787089054
},
"deletedBy" : "a3a06588-f161-4802-94d4-9db7a31e531e",
"deleted" : true
}
OIDC Public Clients
Find Oidc Public Clients
GET /oidc-public-clients
Response fields
Standard paging response where content field is list of following objects:
| Path | Type | Optional | Description |
|---|---|---|---|
id |
String |
true |
|
oidcIssuerId |
String |
true |
|
clientId |
String |
true |
|
clientSecret |
String |
true |
|
authorizationEndpoint |
String |
true |
|
tokenEndpoint |
String |
true |
|
userInfoEndpoint |
String |
true |
|
restrictedToOrganizationIds |
Array[Object] |
true |
|
active |
Boolean |
true |
|
createdBy |
String |
true |
|
createdAt |
Object |
true |
|
deletedAt |
Object |
true |
|
deletedBy |
String |
true |
|
deleted |
Boolean |
true |
Example request
$ curl 'https://gateway.netFoundry.io/identity/v1/oidc-public-clients' -i -X GET
Example response
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 2070
[ {
"id" : "290cc71d-cbd0-4c44-bf9e-a9d33a7314e6",
"oidcIssuerId" : "fc221f2c-e97f-4994-a29e-afc26395f6b6",
"clientId" : "{clientId}",
"clientSecret" : "{clientSecret}",
"authorizationEndpoint" : "https://{auth0-tenant}.auth0.com/authorize",
"tokenEndpoint" : "https://{auth0-tenant}.auth0.com/oauth/token",
"userInfoEndpoint" : "https://{auth0-tenant}.auth0.com/userinfo",
"restrictedToOrganizationIds" : [ ],
"active" : true,
"createdBy" : "2b6f496d-36f1-4e66-a205-8abcf1d41d74",
"createdAt" : {
"nano" : 774537000,
"epochSecond" : 1787088963
},
"deletedAt" : null,
"deletedBy" : null,
"deleted" : false
}, {
"id" : "e2824386-5321-4a9c-9251-ec00bdb93ca0",
"oidcIssuerId" : "08e1f4fc-28a3-44f2-bb3c-e57d86fc4761",
"clientId" : "clientId-65299886-4956-4e6d-885f-8fc5631b9de3",
"clientSecret" : "clientSecret-73a20edf-e78f-48d8-92fb-1397da1dd78b",
"authorizationEndpoint" : "https://7a1a0196-8991-46e9-9da2-92d9cea911bc.issuer.idp/authorize",
"tokenEndpoint" : "https://7a1a0196-8991-46e9-9da2-92d9cea911bc.issuer.idp/token",
"userInfoEndpoint" : "https://7a1a0196-8991-46e9-9da2-92d9cea911bc.issuer.idp/userinfo",
"restrictedToOrganizationIds" : [ ],
"active" : true,
"createdBy" : "c2c14db3-2d59-4eb1-a6d7-27a13de37e8e",
"createdAt" : {
"nano" : 641850000,
"epochSecond" : 1787089054
},
"deletedAt" : null,
"deletedBy" : null,
"deleted" : false
}, {
"id" : "f4e6fcd0-1839-4566-8828-856e42b8f156",
"oidcIssuerId" : "6c72dba0-a155-4804-9a70-89da12149793",
"clientId" : "{clientId}",
"clientSecret" : "{clientSecret}",
"authorizationEndpoint" : "https://accounts.google.com/o/oauth2/v2/auth",
"tokenEndpoint" : "https://oauth2.googleapis.com/token",
"userInfoEndpoint" : "https://openidconnect.googleapis.com/v1/userinfo",
"restrictedToOrganizationIds" : [ ],
"active" : true,
"createdBy" : "2b6f496d-36f1-4e66-a205-8abcf1d41d74",
"createdAt" : {
"nano" : 774537000,
"epochSecond" : 1787088963
},
"deletedAt" : null,
"deletedBy" : null,
"deleted" : false
} ]
Get Oidc Public Client
GET /oidc-public-clients/{id}
Path parameters
| Parameter | Type | Optional | Description |
|---|---|---|---|
id |
Object |
false |
Response fields
| Path | Type | Optional | Description |
|---|---|---|---|
id |
String |
true |
|
oidcIssuerId |
String |
true |
|
clientId |
String |
true |
|
clientSecret |
String |
true |
|
authorizationEndpoint |
String |
true |
|
tokenEndpoint |
String |
true |
|
userInfoEndpoint |
String |
true |
|
restrictedToOrganizationIds |
Array[Object] |
true |
|
active |
Boolean |
true |
|
createdBy |
String |
true |
|
createdAt |
Object |
true |
|
deletedAt |
Object |
true |
|
deletedBy |
String |
true |
|
deleted |
Boolean |
true |
Example request
$ curl 'https://gateway.netFoundry.io/identity/v1/oidc-public-clients/74a045c8-c53a-4881-b169-fa04b1e35c12' -i -X GET
Example response
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 776
{
"id" : "74a045c8-c53a-4881-b169-fa04b1e35c12",
"oidcIssuerId" : "b959038e-aa83-4fb1-b8b3-bdbef1cd7d46",
"clientId" : "clientId-9e73eb93-aadd-4554-a324-76cb97097cea",
"clientSecret" : "clientSecret-e5e07558-cadf-45c9-8198-697d83e4412d",
"authorizationEndpoint" : "https://37f96301-fb51-422a-9334-38ddb43411e0.issuer.idp/authorize",
"tokenEndpoint" : "https://37f96301-fb51-422a-9334-38ddb43411e0.issuer.idp/token",
"userInfoEndpoint" : "https://37f96301-fb51-422a-9334-38ddb43411e0.issuer.idp/userinfo",
"restrictedToOrganizationIds" : [ ],
"active" : true,
"createdBy" : "6bf645e4-964d-4a7a-9cb0-137003173f11",
"createdAt" : {
"nano" : 513658000,
"epochSecond" : 1787089055
},
"deletedAt" : null,
"deletedBy" : null,
"deleted" : false
}
Create Oidc Public Client
POST /oidc-public-clients
Request fields
| Path | Type | Optional | Description |
|---|---|---|---|
oidcIssuerId |
String |
true |
|
clientId |
String |
true |
|
clientSecret |
String |
true |
|
authorizationEndpoint |
String |
true |
|
tokenEndpoint |
String |
true |
|
userInfoEndpoint |
String |
true |
|
restrictedToOrganizationIds |
Array[Object] |
true |
|
active |
Boolean |
true |
Response fields
| Path | Type | Optional | Description |
|---|---|---|---|
id |
String |
true |
|
oidcIssuerId |
String |
true |
|
clientId |
String |
true |
|
clientSecret |
String |
true |
|
authorizationEndpoint |
String |
true |
|
tokenEndpoint |
String |
true |
|
userInfoEndpoint |
String |
true |
|
restrictedToOrganizationIds |
Array[Object] |
true |
|
active |
Boolean |
true |
|
createdBy |
String |
true |
|
createdAt |
Object |
true |
|
deletedAt |
Object |
true |
|
deletedBy |
String |
true |
|
deleted |
Boolean |
true |
Example request
$ curl 'https://gateway.netFoundry.io/identity/v1/oidc-public-clients' -i -X POST \
-H 'Content-Type: application/json' \
-d '{
"oidcIssuerId" : "2da6624c-b14c-47fb-99d5-c80321b41211",
"clientId" : "clientId-d32cbc2f-4069-44b5-9be3-ec252aa3572f",
"clientSecret" : "clientSecret-a710b1cb-c7b4-44d5-b7e0-9df56a91106f",
"authorizationEndpoint" : "https://e7564e24-a7bb-4e46-8c6b-dcb892aba4b4.issuer.idp/authorize",
"tokenEndpoint" : "https://e7564e24-a7bb-4e46-8c6b-dcb892aba4b4.issuer.idp/token",
"userInfoEndpoint" : "https://e7564e24-a7bb-4e46-8c6b-dcb892aba4b4.issuer.idp/userinfo",
"restrictedToOrganizationIds" : [ ],
"active" : true
}'
Example response
HTTP/1.1 201 Created
Content-Type: application/json
Content-Length: 776
{
"id" : "434fdbcf-9897-4bbc-aa3b-ec5d777b22ca",
"oidcIssuerId" : "2da6624c-b14c-47fb-99d5-c80321b41211",
"clientId" : "clientId-d32cbc2f-4069-44b5-9be3-ec252aa3572f",
"clientSecret" : "clientSecret-a710b1cb-c7b4-44d5-b7e0-9df56a91106f",
"authorizationEndpoint" : "https://e7564e24-a7bb-4e46-8c6b-dcb892aba4b4.issuer.idp/authorize",
"tokenEndpoint" : "https://e7564e24-a7bb-4e46-8c6b-dcb892aba4b4.issuer.idp/token",
"userInfoEndpoint" : "https://e7564e24-a7bb-4e46-8c6b-dcb892aba4b4.issuer.idp/userinfo",
"restrictedToOrganizationIds" : [ ],
"active" : true,
"createdBy" : "e3d033b5-07c2-4291-b94f-b43e81b6e9cd",
"createdAt" : {
"nano" : 438191000,
"epochSecond" : 1787089055
},
"deletedAt" : null,
"deletedBy" : null,
"deleted" : false
}
Update Oidc Public Client
PATCH /oidc-public-clients/{id}
Path parameters
| Parameter | Type | Optional | Description |
|---|---|---|---|
id |
Object |
false |
Request fields
| Path | Type | Optional | Description |
|---|---|---|---|
clientId |
String |
true |
|
clientSecret |
String |
true |
|
authorizationEndpoint |
String |
true |
|
tokenEndpoint |
String |
true |
|
userInfoEndpoint |
String |
true |
|
restrictedToOrganizationIds |
Array[Object] |
true |
|
active |
Boolean |
true |
Response fields
| Path | Type | Optional | Description |
|---|---|---|---|
id |
String |
true |
|
oidcIssuerId |
String |
true |
|
clientId |
String |
true |
|
clientSecret |
String |
true |
|
authorizationEndpoint |
String |
true |
|
tokenEndpoint |
String |
true |
|
userInfoEndpoint |
String |
true |
|
restrictedToOrganizationIds |
Array[Object] |
true |
|
active |
Boolean |
true |
|
createdBy |
String |
true |
|
createdAt |
Object |
true |
|
deletedAt |
Object |
true |
|
deletedBy |
String |
true |
|
deleted |
Boolean |
true |
Example request
$ curl 'https://gateway.netFoundry.io/identity/v1/oidc-public-clients/8b8e33d6-98d0-4cb1-b55e-bf7a44bb8628' -i -X PATCH \
-H 'Content-Type: application/json' \
-d '{
"clientId" : "clientId-20a34aac-8413-4f06-95cd-cd249bd6d66b",
"clientSecret" : "clientSecret-ac2827d1-7919-4911-8b32-3025e00c6ff7",
"authorizationEndpoint" : "https://7284d108-ebd3-41a9-9d00-85f32a3b51ee.issuer.idp/authorize",
"tokenEndpoint" : "https://7284d108-ebd3-41a9-9d00-85f32a3b51ee.issuer.idp/token",
"userInfoEndpoint" : "https://7284d108-ebd3-41a9-9d00-85f32a3b51ee.issuer.idp/userinfo",
"restrictedToOrganizationIds" : [ ],
"active" : false
}'
Example response
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 777
{
"id" : "8b8e33d6-98d0-4cb1-b55e-bf7a44bb8628",
"oidcIssuerId" : "82d3e11b-6c1e-4020-ac1f-8a93145371e5",
"clientId" : "clientId-20a34aac-8413-4f06-95cd-cd249bd6d66b",
"clientSecret" : "clientSecret-ac2827d1-7919-4911-8b32-3025e00c6ff7",
"authorizationEndpoint" : "https://7284d108-ebd3-41a9-9d00-85f32a3b51ee.issuer.idp/authorize",
"tokenEndpoint" : "https://7284d108-ebd3-41a9-9d00-85f32a3b51ee.issuer.idp/token",
"userInfoEndpoint" : "https://7284d108-ebd3-41a9-9d00-85f32a3b51ee.issuer.idp/userinfo",
"restrictedToOrganizationIds" : [ ],
"active" : false,
"createdBy" : "fc4a0262-2a8c-4cd9-8958-c673cba64c70",
"createdAt" : {
"nano" : 295296000,
"epochSecond" : 1787089055
},
"deletedAt" : null,
"deletedBy" : null,
"deleted" : false
}
Delete Oidc Public Client
DELETE /oidc-public-clients/{id}
Path parameters
| Parameter | Type | Optional | Description |
|---|---|---|---|
id |
Object |
false |
Response fields
| Path | Type | Optional | Description |
|---|---|---|---|
id |
String |
true |
|
oidcIssuerId |
String |
true |
|
clientId |
String |
true |
|
clientSecret |
String |
true |
|
authorizationEndpoint |
String |
true |
|
tokenEndpoint |
String |
true |
|
userInfoEndpoint |
String |
true |
|
restrictedToOrganizationIds |
Array[Object] |
true |
|
active |
Boolean |
true |
|
createdBy |
String |
true |
|
createdAt |
Object |
true |
|
deletedAt |
Object |
true |
|
deletedBy |
String |
true |
|
deleted |
Boolean |
true |
Example request
$ curl 'https://gateway.netFoundry.io/identity/v1/oidc-public-clients/5b4671f2-bb97-4bf6-91a7-ef187d2dcfbe' -i -X DELETE
Example response
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 865
{
"id" : "5b4671f2-bb97-4bf6-91a7-ef187d2dcfbe",
"oidcIssuerId" : "4a3610a6-2f6c-4ffc-b6af-1b45581f0871",
"clientId" : "clientId-0221620f-d6bb-4512-8714-a25c53b0debd",
"clientSecret" : "clientSecret-ea353a85-b086-4b24-a084-12c3eb4a942e",
"authorizationEndpoint" : "https://5ce34795-4173-4dfd-b407-a71b692575ca.issuer.idp/authorize",
"tokenEndpoint" : "https://5ce34795-4173-4dfd-b407-a71b692575ca.issuer.idp/token",
"userInfoEndpoint" : "https://5ce34795-4173-4dfd-b407-a71b692575ca.issuer.idp/userinfo",
"restrictedToOrganizationIds" : [ ],
"active" : true,
"createdBy" : "d78f7c0d-5577-4e9b-9aa6-34e86fa55516",
"createdAt" : {
"nano" : 596470000,
"epochSecond" : 1787089055
},
"deletedAt" : {
"nano" : 617433000,
"epochSecond" : 1787089055
},
"deletedBy" : "eaa1d81f-deb1-4e32-a83f-55123aa05020",
"deleted" : true
}
Organization to OIDC Public Client Mappings
Find Organization Oidc Public Client Mappings
GET /organization-oidc-public-client-mappings
Authorization
This endpoint requires:
-
readaction on thisorganization-oidc-public-client-mappingresource.
Response fields
Standard paging response where content field is list of following objects:
| Path | Type | Optional | Description |
|---|---|---|---|
id |
String |
true |
|
organizationId |
String |
true |
|
oidcPublicClientId |
String |
true |
|
name |
String |
true |
|
active |
Boolean |
true |
|
customQueryParameters |
String |
true |
|
createdBy |
String |
true |
|
createdAt |
Object |
true |
|
deletedAt |
Object |
true |
|
deletedBy |
String |
true |
|
deleted |
Boolean |
true |
Example request
$ curl 'https://gateway.netFoundry.io/identity/v1/organization-oidc-public-client-mappings' -i -X GET
Example response
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 1519
[ {
"id" : "0d319eda-66df-4df9-91eb-2eacf545d912",
"organizationId" : "f1c46320-fee2-4823-ac2a-b0f3e074bb4a",
"oidcPublicClientId" : "f4e6fcd0-1839-4566-8828-856e42b8f156",
"name" : "Google-Account",
"active" : true,
"customQueryParameters" : "{}",
"createdBy" : "bfbc06da-e852-4428-9df2-ae715100ec0b",
"createdAt" : {
"nano" : 331945000,
"epochSecond" : 1787088971
},
"deletedAt" : null,
"deletedBy" : null,
"deleted" : false
}, {
"id" : "404fc83d-9dab-4175-b571-d43950864ded",
"organizationId" : "f7b2ad5c-e9ee-4164-bedd-e2e9b0072788",
"oidcPublicClientId" : "74254479-c0c4-47d1-bc37-b4c4213e8598",
"name" : "console-client-c67e932c-e633-4dc2-8a21-7eae6d7fc95c",
"active" : true,
"customQueryParameters" : "{}",
"createdBy" : "9bb2a13a-5cb3-42b5-8613-739b1316a0e6",
"createdAt" : {
"nano" : 838877000,
"epochSecond" : 1787089057
},
"deletedAt" : null,
"deletedBy" : null,
"deleted" : false
}, {
"id" : "a0c79e85-a1d9-4f42-ad0f-18933e0b6d7d",
"organizationId" : "95068bb0-864b-4930-b06e-9acf4957c826",
"oidcPublicClientId" : "290cc71d-cbd0-4c44-bf9e-a9d33a7314e6",
"name" : "NetFoundry Google Account",
"active" : true,
"customQueryParameters" : "{\"audience\": \"https://gateway.{env}.netfoundry.io/\", \"connection\": \"google-oauth2\"}",
"createdBy" : "2b6f496d-36f1-4e66-a205-8abcf1d41d74",
"createdAt" : {
"nano" : 262350000,
"epochSecond" : 1787088963
},
"deletedAt" : null,
"deletedBy" : null,
"deleted" : false
} ]
Get Organization Oidc Public Client Mapping
GET /organization-oidc-public-client-mappings/{id}
Authorization
This endpoint requires:
-
readaction on thisorganization-oidc-public-client-mappingresource.
Path parameters
| Parameter | Type | Optional | Description |
|---|---|---|---|
id |
Object |
false |
Response fields
| Path | Type | Optional | Description |
|---|---|---|---|
id |
String |
true |
|
organizationId |
String |
true |
|
oidcPublicClientId |
String |
true |
|
name |
String |
true |
|
active |
Boolean |
true |
|
customQueryParameters |
String |
true |
|
createdBy |
String |
true |
|
createdAt |
Object |
true |
|
deletedAt |
Object |
true |
|
deletedBy |
String |
true |
|
deleted |
Boolean |
true |
Example request
$ curl 'https://gateway.netFoundry.io/identity/v1/organization-oidc-public-client-mappings/88cedce8-d209-47b8-b702-67af936cbed0' -i -X GET
Example response
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 495
{
"id" : "88cedce8-d209-47b8-b702-67af936cbed0",
"organizationId" : "c4d4de27-c011-45d9-ab3f-ffb1a39e63f7",
"oidcPublicClientId" : "547f105a-53cf-4d7a-990b-f5446b62953d",
"name" : "console-client-78941a14-40bd-4c8a-bcf6-d59dd7a6d397",
"active" : true,
"customQueryParameters" : "{}",
"createdBy" : "21678221-f9b1-479e-a2d9-4bab2bfef526",
"createdAt" : {
"nano" : 676957000,
"epochSecond" : 1787089058
},
"deletedAt" : null,
"deletedBy" : null,
"deleted" : false
}
Create Organization Oidc Public Client Mapping
POST /organization-oidc-public-client-mappings
Authorization
This endpoint requires:
-
createaction on thisorganization-oidc-public-client-mappingresource. -
readaction on theoidc-public-clientresource identified by theoidcPublicClientIdproperty.
Request fields
| Path | Type | Optional | Description |
|---|---|---|---|
organizationId |
String |
true |
|
oidcPublicClientId |
String |
true |
|
name |
String |
true |
|
active |
Boolean |
true |
|
customQueryParameters |
String |
true |
Response fields
| Path | Type | Optional | Description |
|---|---|---|---|
id |
String |
true |
|
organizationId |
String |
true |
|
oidcPublicClientId |
String |
true |
|
name |
String |
true |
|
active |
Boolean |
true |
|
customQueryParameters |
String |
true |
|
createdBy |
String |
true |
|
createdAt |
Object |
true |
|
deletedAt |
Object |
true |
|
deletedBy |
String |
true |
|
deleted |
Boolean |
true |
Example request
$ curl 'https://gateway.netFoundry.io/identity/v1/organization-oidc-public-client-mappings' -i -X POST \
-H 'Content-Type: application/json' \
-d '{
"organizationId" : "49315354-40be-435e-ae0b-1a5c18a69964",
"oidcPublicClientId" : "73bb41e1-86c7-4f25-bcf9-cd9de3278759",
"name" : "console-client-6472a785-a4c4-40fe-b1ba-03f7745dc38d",
"active" : true,
"customQueryParameters" : "{}"
}'
Example response
HTTP/1.1 201 Created
Content-Type: application/json
Content-Length: 495
{
"id" : "71e215f1-527c-4b44-a5d7-61f0b7300312",
"organizationId" : "49315354-40be-435e-ae0b-1a5c18a69964",
"oidcPublicClientId" : "73bb41e1-86c7-4f25-bcf9-cd9de3278759",
"name" : "console-client-6472a785-a4c4-40fe-b1ba-03f7745dc38d",
"active" : true,
"customQueryParameters" : "{}",
"createdBy" : "21f0ffa7-d94b-4c7b-989e-8cda04428dc1",
"createdAt" : {
"nano" : 602528000,
"epochSecond" : 1787089058
},
"deletedAt" : null,
"deletedBy" : null,
"deleted" : false
}
Update Organization Oidc Public Client Mapping
PATCH /organization-oidc-public-client-mappings/{id}
Authorization
This endpoint requires:
-
updateaction on thisorganization-oidc-public-client-mappingresource.
Path parameters
| Parameter | Type | Optional | Description |
|---|---|---|---|
id |
Object |
false |
Request fields
| Path | Type | Optional | Description |
|---|---|---|---|
name |
String |
true |
|
active |
Boolean |
true |
|
customQueryParameters |
String |
true |
Response fields
| Path | Type | Optional | Description |
|---|---|---|---|
id |
String |
true |
|
organizationId |
String |
true |
|
oidcPublicClientId |
String |
true |
|
name |
String |
true |
|
active |
Boolean |
true |
|
customQueryParameters |
String |
true |
|
createdBy |
String |
true |
|
createdAt |
Object |
true |
|
deletedAt |
Object |
true |
|
deletedBy |
String |
true |
|
deleted |
Boolean |
true |
Example request
$ curl 'https://gateway.netFoundry.io/identity/v1/organization-oidc-public-client-mappings/18877615-7546-4e0e-b9d6-c37a08b37b08' -i -X PATCH \
-H 'Content-Type: application/json' \
-d '{
"name" : "custom-client-2cac80a3-4cc3-4da8-922c-01e18c9b7f6c",
"active" : true,
"customQueryParameters" : "{}"
}'
Example response
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 494
{
"id" : "18877615-7546-4e0e-b9d6-c37a08b37b08",
"organizationId" : "3bc41732-3e5f-4cc5-ab0b-afcff46ee569",
"oidcPublicClientId" : "4ddbaf36-b0e2-4deb-b8ad-15d970824925",
"name" : "custom-client-2cac80a3-4cc3-4da8-922c-01e18c9b7f6c",
"active" : true,
"customQueryParameters" : "{}",
"createdBy" : "98c128db-4228-461b-98d4-8cbfa5b543da",
"createdAt" : {
"nano" : 421520000,
"epochSecond" : 1787089058
},
"deletedAt" : null,
"deletedBy" : null,
"deleted" : false
}
Delete Organization Oidc Public Client Mapping
DELETE /organization-oidc-public-client-mappings/{id}
Authorization
This endpoint requires:
-
deleteaction on thisorganization-oidc-public-client-mappingresource.
Path parameters
| Parameter | Type | Optional | Description |
|---|---|---|---|
id |
Object |
false |
Response fields
| Path | Type | Optional | Description |
|---|---|---|---|
id |
String |
true |
|
organizationId |
String |
true |
|
oidcPublicClientId |
String |
true |
|
name |
String |
true |
|
active |
Boolean |
true |
|
customQueryParameters |
String |
true |
|
createdBy |
String |
true |
|
createdAt |
Object |
true |
|
deletedAt |
Object |
true |
|
deletedBy |
String |
true |
|
deleted |
Boolean |
true |
Example request
$ curl 'https://gateway.netFoundry.io/identity/v1/organization-oidc-public-client-mappings/439d0beb-6b73-49bb-9b83-e292e18f6789' -i -X DELETE
Example response
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 543
{
"id" : "439d0beb-6b73-49bb-9b83-e292e18f6789",
"organizationId" : "5ae21153-1e7a-4931-8b50-a1baeb055ec9",
"oidcPublicClientId" : "4c721acc-3282-4510-bbc9-e07faa0626e5",
"name" : "number two",
"active" : true,
"customQueryParameters" : "{}",
"createdBy" : "071a821a-6762-4eeb-8a6c-728f879d8a6f",
"createdAt" : {
"nano" : 793488000,
"epochSecond" : 1787089058
},
"deletedAt" : {
"nano" : 838993000,
"epochSecond" : 1787089058
},
"deletedBy" : "c06b5798-50a4-48ca-91f9-b38b4dc16dff",
"deleted" : true
}
OIDC Audiences
Find Oidc Audiences
GET /oidc-audiences
Response fields
Standard paging response where content field is list of following objects:
| Path | Type | Optional | Description |
|---|---|---|---|
id |
String |
true |
|
oidcIssuerId |
String |
true |
|
audience |
String |
true |
|
restrictedToOrganizationIds |
Array[Object] |
true |
|
active |
Boolean |
true |
|
createdBy |
String |
true |
|
createdAt |
Object |
true |
|
deletedAt |
Object |
true |
|
deletedBy |
String |
true |
|
deleted |
Boolean |
true |
Example request
$ curl 'https://gateway.netFoundry.io/identity/v1/oidc-audiences' -i -X GET
Example response
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 1282
[ {
"id" : "6a4f65ad-9db8-4ea7-b404-1d5c5f85cbdf",
"oidcIssuerId" : "fc221f2c-e97f-4994-a29e-afc26395f6b6",
"audience" : "https://gateway.{env}.netfoundry.io/",
"restrictedToOrganizationIds" : [ ],
"active" : true,
"createdBy" : "2b6f496d-36f1-4e66-a205-8abcf1d41d74",
"createdAt" : {
"nano" : 781316000,
"epochSecond" : 1787088963
},
"deletedAt" : null,
"deletedBy" : null,
"deleted" : false
}, {
"id" : "b71d8edd-6bf1-4ed3-84e8-f3b5fe82868f",
"oidcIssuerId" : "6c72dba0-a155-4804-9a70-89da12149793",
"audience" : "https://gateway.{env}.netfoundry.io/",
"restrictedToOrganizationIds" : [ ],
"active" : true,
"createdBy" : "2b6f496d-36f1-4e66-a205-8abcf1d41d74",
"createdAt" : {
"nano" : 781316000,
"epochSecond" : 1787088963
},
"deletedAt" : null,
"deletedBy" : null,
"deleted" : false
}, {
"id" : "ef5a6241-f7a5-487e-83c1-811ce4a6c4d3",
"oidcIssuerId" : "aee56fb6-4ba6-4d23-91c0-73eeba2205d9",
"audience" : "mop-aud-6af3da97-35c1-453b-a6a2-df1fbb6520e0",
"restrictedToOrganizationIds" : [ ],
"active" : true,
"createdBy" : "d53f25c7-83f8-4953-be4d-2550a28a841c",
"createdAt" : {
"nano" : 368278000,
"epochSecond" : 1787089052
},
"deletedAt" : null,
"deletedBy" : null,
"deleted" : false
} ]
Get Oidc Audience
GET /oidc-audiences/{id}
Path parameters
| Parameter | Type | Optional | Description |
|---|---|---|---|
id |
Object |
false |
Response fields
| Path | Type | Optional | Description |
|---|---|---|---|
id |
String |
true |
|
oidcIssuerId |
String |
true |
|
audience |
String |
true |
|
restrictedToOrganizationIds |
Array[Object] |
true |
|
active |
Boolean |
true |
|
createdBy |
String |
true |
|
createdAt |
Object |
true |
|
deletedAt |
Object |
true |
|
deletedBy |
String |
true |
|
deleted |
Boolean |
true |
Example request
$ curl 'https://gateway.netFoundry.io/identity/v1/oidc-audiences/2a3118a2-8646-48a5-a14c-5cd2e53b7526' -i -X GET
Example response
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 430
{
"id" : "2a3118a2-8646-48a5-a14c-5cd2e53b7526",
"oidcIssuerId" : "cacf74f2-2fec-4cee-86ae-33be38c782d4",
"audience" : "mop-aud-df31551c-e282-40e1-bb73-5aed0494e4c5",
"restrictedToOrganizationIds" : [ ],
"active" : true,
"createdBy" : "2503c333-fd87-49c7-ad8b-21c2338f8b53",
"createdAt" : {
"nano" : 501901000,
"epochSecond" : 1787089053
},
"deletedAt" : null,
"deletedBy" : null,
"deleted" : false
}
Create Oidc Audience
POST /oidc-audiences
Request fields
| Path | Type | Optional | Description |
|---|---|---|---|
oidcIssuerId |
String |
true |
|
audience |
String |
true |
|
restrictedToOrganizationIds |
Array[Object] |
true |
|
active |
Boolean |
true |
Response fields
| Path | Type | Optional | Description |
|---|---|---|---|
id |
String |
true |
|
oidcIssuerId |
String |
true |
|
audience |
String |
true |
|
restrictedToOrganizationIds |
Array[Object] |
true |
|
active |
Boolean |
true |
|
createdBy |
String |
true |
|
createdAt |
Object |
true |
|
deletedAt |
Object |
true |
|
deletedBy |
String |
true |
|
deleted |
Boolean |
true |
Example request
$ curl 'https://gateway.netFoundry.io/identity/v1/oidc-audiences' -i -X POST \
-H 'Content-Type: application/json' \
-d '{
"oidcIssuerId" : "7e903768-c915-4cc2-a180-b037a7905131",
"audience" : "mop-aud-3ffe31e6-3983-4912-86a9-dd4b82116670",
"restrictedToOrganizationIds" : [ ],
"active" : true
}'
Example response
HTTP/1.1 201 Created
Content-Type: application/json
Content-Length: 430
{
"id" : "68e1e17d-de8b-4004-8627-9ca8dd2e6b5c",
"oidcIssuerId" : "7e903768-c915-4cc2-a180-b037a7905131",
"audience" : "mop-aud-3ffe31e6-3983-4912-86a9-dd4b82116670",
"restrictedToOrganizationIds" : [ ],
"active" : true,
"createdBy" : "bc699eba-7b1e-498f-ac06-1bc3aa6f27f1",
"createdAt" : {
"nano" : 402499000,
"epochSecond" : 1787089053
},
"deletedAt" : null,
"deletedBy" : null,
"deleted" : false
}
Update Oidc Audience
PATCH /oidc-audiences/{id}
Path parameters
| Parameter | Type | Optional | Description |
|---|---|---|---|
id |
Object |
false |
Request fields
| Path | Type | Optional | Description |
|---|---|---|---|
audience |
String |
true |
|
restrictedToOrganizationIds |
Array[Object] |
true |
|
active |
Boolean |
true |
Response fields
| Path | Type | Optional | Description |
|---|---|---|---|
id |
String |
true |
|
oidcIssuerId |
String |
true |
|
audience |
String |
true |
|
restrictedToOrganizationIds |
Array[Object] |
true |
|
active |
Boolean |
true |
|
createdBy |
String |
true |
|
createdAt |
Object |
true |
|
deletedAt |
Object |
true |
|
deletedBy |
String |
true |
|
deleted |
Boolean |
true |
Example request
$ curl 'https://gateway.netFoundry.io/identity/v1/oidc-audiences/dd67026c-48d6-47c0-bda6-c41dc89a52d4' -i -X PATCH \
-H 'Content-Type: application/json' \
-d '{
"audience" : "mop-aud-10b5b5b9-ad96-4aee-9805-83bcad7861c4",
"restrictedToOrganizationIds" : [ ],
"active" : false
}'
Example response
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 431
{
"id" : "dd67026c-48d6-47c0-bda6-c41dc89a52d4",
"oidcIssuerId" : "fb33e6c8-eb89-4c33-9be2-b691d0022ad8",
"audience" : "mop-aud-10b5b5b9-ad96-4aee-9805-83bcad7861c4",
"restrictedToOrganizationIds" : [ ],
"active" : false,
"createdBy" : "c15a237b-e654-43d0-b68c-850485f6288a",
"createdAt" : {
"nano" : 187919000,
"epochSecond" : 1787089053
},
"deletedAt" : null,
"deletedBy" : null,
"deleted" : false
}
Delete Oidc Audience
DELETE /oidc-audiences/{id}
Path parameters
| Parameter | Type | Optional | Description |
|---|---|---|---|
id |
Object |
false |
Response fields
| Path | Type | Optional | Description |
|---|---|---|---|
id |
String |
true |
|
oidcIssuerId |
String |
true |
|
audience |
String |
true |
|
restrictedToOrganizationIds |
Array[Object] |
true |
|
active |
Boolean |
true |
|
createdBy |
String |
true |
|
createdAt |
Object |
true |
|
deletedAt |
Object |
true |
|
deletedBy |
String |
true |
|
deleted |
Boolean |
true |
Example request
$ curl 'https://gateway.netFoundry.io/identity/v1/oidc-audiences/ba16945d-5e6e-4845-9ec7-8c01450f3c08' -i -X DELETE
Example response
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 519
{
"id" : "ba16945d-5e6e-4845-9ec7-8c01450f3c08",
"oidcIssuerId" : "bb8bee63-d0e6-466e-a8e8-9cd154761a07",
"audience" : "mop-aud-9a061861-a5ab-4b11-9146-e8c42ead6fc1",
"restrictedToOrganizationIds" : [ ],
"active" : true,
"createdBy" : "1169752d-d5cf-4220-9380-b5dd6bf14953",
"createdAt" : {
"nano" : 618673000,
"epochSecond" : 1787089053
},
"deletedAt" : {
"nano" : 652310000,
"epochSecond" : 1787089053
},
"deletedBy" : "76d37ec7-bb65-4218-8dad-72555687dcf4",
"deleted" : true
}
User Identity to OIDC Audience Mappings
Find User Identity Audience Mappings
GET /user-identity-oidc-audience-mappings
Authorization
This endpoint requires:
-
readaction on thisuser-identity-oidc-audience-mappingresource.
Response fields
Standard paging response where content field is list of following objects:
| Path | Type | Optional | Description |
|---|---|---|---|
id |
String |
true |
|
userIdentityId |
String |
true |
|
oidcAudienceId |
String |
true |
|
subject |
String |
true |
|
active |
Boolean |
true |
|
createdBy |
String |
true |
|
createdAt |
Object |
true |
|
deletedAt |
Object |
true |
|
deletedBy |
String |
true |
|
deleted |
Boolean |
true |
Example request
$ curl 'https://gateway.netFoundry.io/identity/v1/user-identity-oidc-audience-mappings' -i -X GET
Example response
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 3
[ ]
Get User Identity Audience Mapping
GET /user-identity-oidc-audience-mappings/{id}
Authorization
This endpoint requires:
-
readaction on thisuser-identity-oidc-audience-mappingresource.
Path parameters
| Parameter | Type | Optional | Description |
|---|---|---|---|
id |
Object |
false |
Response fields
| Path | Type | Optional | Description |
|---|---|---|---|
id |
String |
true |
|
userIdentityId |
String |
true |
|
oidcAudienceId |
String |
true |
|
subject |
String |
true |
|
active |
Boolean |
true |
|
createdBy |
String |
true |
|
createdAt |
Object |
true |
|
deletedAt |
Object |
true |
|
deletedBy |
String |
true |
|
deleted |
Boolean |
true |
Example request
$ curl 'https://gateway.netFoundry.io/identity/v1/user-identity-oidc-audience-mappings/eb1db259-e43f-43f9-b65a-ce45698892f0' -i -X GET
Example response
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 460
{
"id" : "eb1db259-e43f-43f9-b65a-ce45698892f0",
"userIdentityId" : "5c71aa7e-7352-4f60-87c8-1cf0dbc9e8a0",
"oidcAudienceId" : "8952613a-cfcd-45d5-a2af-9c458bb86067",
"subject" : "console-client-137af05c-c64c-4e6c-a276-a827ebf79e27",
"active" : true,
"createdBy" : "f25fe8d4-7adb-4447-af88-903bbbe8ae7d",
"createdAt" : {
"nano" : 511824000,
"epochSecond" : 1787089066
},
"deletedAt" : null,
"deletedBy" : null,
"deleted" : false
}
Create User Identity Audience Mapping
POST /user-identity-oidc-audience-mappings
Authorization
This endpoint requires:
-
createaction on thisuser-identity-oidc-audience-mappingresource. -
create-identity-mappingaction on theuser-identityresource identified by theuserIdentityIdproperty. -
readaction on theoidc-audienceresource identified by theoidcAudienceIdproperty.
Request fields
| Path | Type | Optional | Description |
|---|---|---|---|
userIdentityId |
String |
true |
|
oidcAudienceId |
String |
true |
|
subject |
String |
true |
|
active |
Boolean |
true |
Response fields
| Path | Type | Optional | Description |
|---|---|---|---|
id |
String |
true |
|
userIdentityId |
String |
true |
|
oidcAudienceId |
String |
true |
|
subject |
String |
true |
|
active |
Boolean |
true |
|
createdBy |
String |
true |
|
createdAt |
Object |
true |
|
deletedAt |
Object |
true |
|
deletedBy |
String |
true |
|
deleted |
Boolean |
true |
Example request
$ curl 'https://gateway.netFoundry.io/identity/v1/user-identity-oidc-audience-mappings' -i -X POST \
-H 'Content-Type: application/json' \
-d '{
"userIdentityId" : "5a92c773-a4b2-4577-ab90-02887f196e34",
"oidcAudienceId" : "54bf72a7-23ec-4d68-b995-9e686443e12d",
"subject" : "console-client-8dda47aa-ccdb-4400-b132-e057a5b256a0",
"active" : true
}'
Example response
HTTP/1.1 201 Created
Content-Type: application/json
Content-Length: 460
{
"id" : "898b363b-5170-4ec7-90b9-9b5c9b24b282",
"userIdentityId" : "5a92c773-a4b2-4577-ab90-02887f196e34",
"oidcAudienceId" : "54bf72a7-23ec-4d68-b995-9e686443e12d",
"subject" : "console-client-8dda47aa-ccdb-4400-b132-e057a5b256a0",
"active" : true,
"createdBy" : "af64990a-f3ef-433c-bfba-348bf449f946",
"createdAt" : {
"nano" : 442570000,
"epochSecond" : 1787089066
},
"deletedAt" : null,
"deletedBy" : null,
"deleted" : false
}
Update User Identity Audience Mapping
PATCH /user-identity-oidc-audience-mappings/{id}
Authorization
This endpoint requires:
-
updateaction on thisuser-identity-oidc-audience-mappingresource.
Path parameters
| Parameter | Type | Optional | Description |
|---|---|---|---|
id |
Object |
false |
Request fields
| Path | Type | Optional | Description |
|---|---|---|---|
active |
Boolean |
true |
Response fields
| Path | Type | Optional | Description |
|---|---|---|---|
id |
String |
true |
|
userIdentityId |
String |
true |
|
oidcAudienceId |
String |
true |
|
subject |
String |
true |
|
active |
Boolean |
true |
|
createdBy |
String |
true |
|
createdAt |
Object |
true |
|
deletedAt |
Object |
true |
|
deletedBy |
String |
true |
|
deleted |
Boolean |
true |
Example request
$ curl 'https://gateway.netFoundry.io/identity/v1/user-identity-oidc-audience-mappings/ba8555bf-4c5f-4029-a4be-e6d57d11c2ca' -i -X PATCH \
-H 'Content-Type: application/json' \
-d '{
"active" : false
}'
Example response
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 461
{
"id" : "ba8555bf-4c5f-4029-a4be-e6d57d11c2ca",
"userIdentityId" : "438b8a2e-a0d3-4a68-bcee-cfc1f599e82b",
"oidcAudienceId" : "b58080f8-382a-4b20-a28a-61a030687437",
"subject" : "console-client-4d2b7495-df64-4960-9d37-535bb2755a2a",
"active" : false,
"createdBy" : "c57ddb8b-4105-448c-82a9-910c63c06769",
"createdAt" : {
"nano" : 264791000,
"epochSecond" : 1787089066
},
"deletedAt" : null,
"deletedBy" : null,
"deleted" : false
}
Delete User Identity Audience Mapping
DELETE /user-identity-oidc-audience-mappings/{id}
Authorization
This endpoint requires:
-
deleteaction on thisuser-identity-oidc-audience-mappingresource.
Path parameters
| Parameter | Type | Optional | Description |
|---|---|---|---|
id |
Object |
false |
Response fields
| Path | Type | Optional | Description |
|---|---|---|---|
id |
String |
true |
|
userIdentityId |
String |
true |
|
oidcAudienceId |
String |
true |
|
subject |
String |
true |
|
active |
Boolean |
true |
|
createdBy |
String |
true |
|
createdAt |
Object |
true |
|
deletedAt |
Object |
true |
|
deletedBy |
String |
true |
|
deleted |
Boolean |
true |
Example request
$ curl 'https://gateway.netFoundry.io/identity/v1/user-identity-oidc-audience-mappings/7900907f-e280-4bf6-a519-cb6cb43c3ed5' -i -X DELETE
Example response
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 549
{
"id" : "7900907f-e280-4bf6-a519-cb6cb43c3ed5",
"userIdentityId" : "b5094fa9-5c73-40ed-bf18-16bba3b8fb74",
"oidcAudienceId" : "4fe40697-8072-4292-ae6b-4365aa4477c5",
"subject" : "console-client-e3c23a70-6a95-4c1f-b384-17e116d0ede4",
"active" : true,
"createdBy" : "ed645bd4-b8f5-4e59-9ff6-9ae9441f6438",
"createdAt" : {
"nano" : 574821000,
"epochSecond" : 1787089066
},
"deletedAt" : {
"nano" : 584725000,
"epochSecond" : 1787089066
},
"deletedBy" : "cd3ef40f-c31b-4f6b-89b1-9b880e932cbf",
"deleted" : true
}
Identity Providers
Find Identity Providers
GET /identity-providers
Query parameters
Supports standard paging query parameters.
| Parameter | Type | Optional | Description |
|---|---|---|---|
name |
String |
true |
|
organizationId |
Object |
true |
|
auth0ConnectionId |
Object |
true |
|
auth0ConnectionType |
Object |
true |
Must be one of [Database, Social, Enterprise, Passwordless]. |
active |
Boolean |
true |
|
deleted |
Object |
true |
Response fields
Standard paging response where content field is list of following objects:
| Path | Type | Optional | Description |
|---|---|---|---|
id |
String |
true |
|
organizationId |
String |
true |
|
auth0ConnectionId |
String |
true |
|
name |
String |
true |
|
auth0ConnectionType |
String |
true |
Must be one of [Database, Social, Enterprise, Passwordless]. |
active |
Boolean |
true |
|
createdAt |
Object |
true |
|
updatedAt |
Object |
true |
|
deletedAt |
Object |
true |
Example request
$ curl 'https://gateway.netFoundry.io/identity/v1/identity-providers' -i -X GET
Example response
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 1136
[ {
"id" : "07cb8db8-2a10-4aa1-833a-38c8c51a6dba",
"organizationId" : "961856ee-f973-4625-93dd-d73501f7f56d",
"auth0ConnectionId" : "auth0-opaque-connection",
"name" : "Corp SAML",
"auth0ConnectionType" : "Enterprise",
"active" : true,
"createdAt" : {
"nano" : 691236000,
"epochSecond" : 1787089040
},
"updatedAt" : null,
"deletedAt" : null
}, {
"id" : "31323270-444e-46b1-baa0-a29785541ccd",
"organizationId" : "94a57c4b-7445-4730-accb-1b3ddb60c61f",
"auth0ConnectionId" : "auth0-opaque-connectionId-159",
"name" : "Username/Password",
"auth0ConnectionType" : "Database",
"active" : true,
"createdAt" : {
"nano" : 972286000,
"epochSecond" : 1787089036
},
"updatedAt" : null,
"deletedAt" : null
}, {
"id" : "359058ae-d78b-4b70-835d-35788faf1d9d",
"organizationId" : "2cc85afd-7180-4039-8501-a258a43b76df",
"auth0ConnectionId" : "auth0-opaque-connectionId-149",
"name" : "Username/Password",
"auth0ConnectionType" : "Database",
"active" : true,
"createdAt" : {
"nano" : 540980000,
"epochSecond" : 1787089036
},
"updatedAt" : null,
"deletedAt" : null
} ]
Get Identity Provider
GET /identity-providers/{id:[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}}
Path parameters
| Parameter | Type | Optional | Description |
|---|---|---|---|
id |
Object |
false |
Response fields
| Path | Type | Optional | Description |
|---|---|---|---|
id |
String |
true |
|
organizationId |
String |
true |
|
auth0ConnectionId |
String |
true |
|
name |
String |
true |
|
auth0ConnectionType |
String |
true |
Must be one of [Database, Social, Enterprise, Passwordless]. |
active |
Boolean |
true |
|
createdAt |
Object |
true |
|
updatedAt |
Object |
true |
|
deletedAt |
Object |
true |
Example request
$ curl 'https://gateway.netFoundry.io/identity/v1/identity-providers/ed0a89a9-ad3b-4dc9-a865-73c65e3c8192' -i -X GET
Example response
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 373
{
"id" : "ed0a89a9-ad3b-4dc9-a865-73c65e3c8192",
"organizationId" : "f1c46320-fee2-4823-ac2a-b0f3e074bb4a",
"auth0ConnectionId" : "auth0-opaque-connectionId-4",
"name" : "Google-Account",
"auth0ConnectionType" : "Social",
"active" : true,
"createdAt" : {
"nano" : 118665000,
"epochSecond" : 1787088971
},
"updatedAt" : null,
"deletedAt" : null
}
Create Identity Provider
POST /identity-providers
Request fields
| Path | Type | Optional | Description |
|---|---|---|---|
organizationId |
String |
true |
|
auth0ConnectionId |
String |
true |
|
name |
String |
true |
|
auth0ConnectionType |
String |
true |
Must be one of [Database, Social, Enterprise, Passwordless]. |
Response fields
| Path | Type | Optional | Description |
|---|---|---|---|
id |
String |
true |
|
organizationId |
String |
true |
|
auth0ConnectionId |
String |
true |
|
name |
String |
true |
|
auth0ConnectionType |
String |
true |
Must be one of [Database, Social, Enterprise, Passwordless]. |
active |
Boolean |
true |
|
createdAt |
Object |
true |
|
updatedAt |
Object |
true |
|
deletedAt |
Object |
true |
Example request
$ curl 'https://gateway.netFoundry.io/identity/v1/identity-providers' -i -X POST \
-H 'Content-Type: application/json' \
-d '{
"organizationId" : "961856ee-f973-4625-93dd-d73501f7f56d",
"auth0ConnectionId" : "auth0-opaque-connection",
"name" : "Corp SAML",
"auth0ConnectionType" : "Enterprise"
}'
Example response
HTTP/1.1 201 Created
Content-Type: application/json
Content-Length: 368
{
"id" : "07cb8db8-2a10-4aa1-833a-38c8c51a6dba",
"organizationId" : "961856ee-f973-4625-93dd-d73501f7f56d",
"auth0ConnectionId" : "auth0-opaque-connection",
"name" : "Corp SAML",
"auth0ConnectionType" : "Enterprise",
"active" : true,
"createdAt" : {
"nano" : 691236000,
"epochSecond" : 1787089040
},
"updatedAt" : null,
"deletedAt" : null
}
Update Identity Provider
PUT /identity-providers/{id}
Path parameters
| Parameter | Type | Optional | Description |
|---|---|---|---|
id |
Object |
false |
Request fields
| Path | Type | Optional | Description |
|---|---|---|---|
name |
String |
true |
Response fields
| Path | Type | Optional | Description |
|---|---|---|---|
id |
String |
true |
|
organizationId |
String |
true |
|
auth0ConnectionId |
String |
true |
|
name |
String |
true |
|
auth0ConnectionType |
String |
true |
Must be one of [Database, Social, Enterprise, Passwordless]. |
active |
Boolean |
true |
|
createdAt |
Object |
true |
|
updatedAt |
Object |
true |
|
deletedAt |
Object |
true |
Example request
$ curl 'https://gateway.netFoundry.io/identity/v1/identity-providers/2e000aa7-848e-42d2-bab5-232f50bef653' -i -X PUT \
-H 'Content-Type: application/json' \
-d '{
"name" : "New IdP Name"
}'
Example response
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 431
{
"id" : "2e000aa7-848e-42d2-bab5-232f50bef653",
"organizationId" : "1661e396-366d-4832-8f62-82111a1c3342",
"auth0ConnectionId" : "auth0-opaque-connectionId-249",
"name" : "New IdP Name",
"auth0ConnectionType" : "Database",
"active" : true,
"createdAt" : {
"nano" : 439665000,
"epochSecond" : 1787089041
},
"updatedAt" : {
"nano" : 477520000,
"epochSecond" : 1787089041
},
"deletedAt" : null
}
Activate Or Deactivate Identity Provider
PUT /identity-providers/{id}/{action:activate|deactivate}
Path parameters
| Parameter | Type | Optional | Description |
|---|---|---|---|
id |
Object |
false |
|
action |
String |
false |
Response fields
| Path | Type | Optional | Description |
|---|---|---|---|
id |
String |
true |
|
organizationId |
String |
true |
|
auth0ConnectionId |
String |
true |
|
name |
String |
true |
|
auth0ConnectionType |
String |
true |
Must be one of [Database, Social, Enterprise, Passwordless]. |
active |
Boolean |
true |
|
createdAt |
Object |
true |
|
updatedAt |
Object |
true |
|
deletedAt |
Object |
true |
Example request
$ curl 'https://gateway.netFoundry.io/identity/v1/identity-providers/999fabfa-14e7-4192-82c8-8ed4c7d4a06c/activate' -i -X PUT
Example response
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 380
{
"id" : "999fabfa-14e7-4192-82c8-8ed4c7d4a06c",
"organizationId" : "a3fc0d7a-13b3-4adc-91c5-29cc7d2b98f4",
"auth0ConnectionId" : "auth0-opaque-connectionId-243",
"name" : "Username/Password",
"auth0ConnectionType" : "Database",
"active" : true,
"createdAt" : {
"nano" : 978961000,
"epochSecond" : 1787089040
},
"updatedAt" : null,
"deletedAt" : null
}
Delete Identity Provider
DELETE /identity-providers/{id}
Path parameters
| Parameter | Type | Optional | Description |
|---|---|---|---|
id |
Object |
false |
Response fields
| Path | Type | Optional | Description |
|---|---|---|---|
id |
String |
true |
|
organizationId |
String |
true |
|
auth0ConnectionId |
String |
true |
|
name |
String |
true |
|
auth0ConnectionType |
String |
true |
Must be one of [Database, Social, Enterprise, Passwordless]. |
active |
Boolean |
true |
|
createdAt |
Object |
true |
|
updatedAt |
Object |
true |
|
deletedAt |
Object |
true |
Example request
$ curl 'https://gateway.netFoundry.io/identity/v1/identity-providers/36485383-1e10-4019-a310-aee1c15624fc' -i -X DELETE
Example response
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 492
{
"id" : "36485383-1e10-4019-a310-aee1c15624fc",
"organizationId" : "d0b10580-fb37-4fa5-baf4-f87355365b60",
"auth0ConnectionId" : "auth0-opaque-connectionId-247",
"name" : "Username/Password",
"auth0ConnectionType" : "Database",
"active" : true,
"createdAt" : {
"nano" : 302216000,
"epochSecond" : 1787089041
},
"updatedAt" : {
"nano" : 338376000,
"epochSecond" : 1787089041
},
"deletedAt" : {
"nano" : 337000000,
"epochSecond" : 1787089041
}
}
Default Roles
Find Default Roles
GET /default-roles
Response fields
Standard paging response where content field is list of following objects:
| Path | Type | Optional | Description |
|---|---|---|---|
id |
String |
true |
|
organizationId |
String |
true |
|
name |
String |
true |
|
roleType |
String |
true |
Must be one of [Standard, Custom]. |
roleId |
String |
true |
|
createdBy |
String |
true |
|
createdAt |
Object |
true |
|
deletedAt |
Object |
true |
|
deletedBy |
String |
true |
|
deleted |
Boolean |
true |
Example request
$ curl 'https://gateway.netFoundry.io/identity/v1/default-roles' -i -X GET
Example response
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 1385
[ {
"id" : "133c048f-60a6-4b9a-abc3-2fdd16b17495",
"organizationId" : "19161bac-886b-4e4f-805d-c10e896e1d31",
"name" : "Standard Role - 3316e4a1-717b-451c-8c31-151e2ddb95cf",
"roleType" : "Standard",
"roleId" : "3316e4a1-717b-451c-8c31-151e2ddb95cf",
"createdBy" : "536ad3f9-cc93-4825-8e85-29ecb7916589",
"createdAt" : {
"nano" : 712356000,
"epochSecond" : 1787089032
},
"deletedAt" : null,
"deletedBy" : null,
"deleted" : false
}, {
"id" : "1dc86f2f-c3ef-46b0-8500-01883bd2bac4",
"organizationId" : "95068bb0-864b-4930-b06e-9acf4957c826",
"name" : "Network Group Admin - Cloud Engineering Network Group",
"roleType" : "Standard",
"roleId" : "b75be358-a3f9-40a5-972d-a804c4758041",
"createdBy" : "2b6f496d-36f1-4e66-a205-8abcf1d41d74",
"createdAt" : {
"nano" : 526392000,
"epochSecond" : 1787089031
},
"deletedAt" : null,
"deletedBy" : null,
"deleted" : false
}, {
"id" : "2c013ff8-3fbe-426d-b399-83afd57dae17",
"organizationId" : "f86122fb-316b-4427-8c38-248165bf4504",
"name" : "Network Group Admin - NF Support (NFSUP) Network Group",
"roleType" : "Standard",
"roleId" : "cf53e966-a3ad-4e80-a5fc-380fe8d48e57",
"createdBy" : "2b6f496d-36f1-4e66-a205-8abcf1d41d74",
"createdAt" : {
"nano" : 498038000,
"epochSecond" : 1787089031
},
"deletedAt" : null,
"deletedBy" : null,
"deleted" : false
} ]
Get Default Role
GET /default-roles/{id}
Path parameters
| Parameter | Type | Optional | Description |
|---|---|---|---|
id |
Object |
false |
Response fields
| Path | Type | Optional | Description |
|---|---|---|---|
id |
String |
true |
|
organizationId |
String |
true |
|
name |
String |
true |
|
roleType |
String |
true |
Must be one of [Standard, Custom]. |
roleId |
String |
true |
|
createdBy |
String |
true |
|
createdAt |
Object |
true |
|
deletedAt |
Object |
true |
|
deletedBy |
String |
true |
|
deleted |
Boolean |
true |
Example request
$ curl 'https://gateway.netFoundry.io/identity/v1/default-roles/feb10146-764c-4259-8da5-235f4d81eb67' -i -X GET
Example response
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 454
{
"id" : "feb10146-764c-4259-8da5-235f4d81eb67",
"organizationId" : "19161bac-886b-4e4f-805d-c10e896e1d31",
"name" : "Custom Role - c155cbde-e596-4670-ab82-ae8648d36ebf",
"roleType" : "Custom",
"roleId" : "c155cbde-e596-4670-ab82-ae8648d36ebf",
"createdBy" : "b41bc1d2-1b17-42df-b261-f162cb417334",
"createdAt" : {
"nano" : 716350000,
"epochSecond" : 1787089032
},
"deletedAt" : null,
"deletedBy" : null,
"deleted" : false
}
Create Default Role
POST /default-roles
Authorization
This endpoint requires:
-
createaction on thisdefault-roleresource. -
updateaction on theorganizationresource identified by theorganizationproperty.
Request fields
| Path | Type | Optional | Description |
|---|---|---|---|
organizationId |
String |
true |
|
roleType |
String |
true |
Must be one of [Standard, Custom]. |
roleId |
String |
true |
Response fields
| Path | Type | Optional | Description |
|---|---|---|---|
id |
String |
true |
|
organizationId |
String |
true |
|
name |
String |
true |
|
roleType |
String |
true |
Must be one of [Standard, Custom]. |
roleId |
String |
true |
|
createdBy |
String |
true |
|
createdAt |
Object |
true |
|
deletedAt |
Object |
true |
|
deletedBy |
String |
true |
|
deleted |
Boolean |
true |
Example request
$ curl 'https://gateway.netFoundry.io/identity/v1/default-roles' -i -X POST \
-H 'Content-Type: application/json' \
-d '{
"organizationId" : "e25397d7-fa0b-4478-999c-aafe76f4b350",
"roleType" : "Standard",
"roleId" : "925329b7-6dc5-4fa6-bcd5-5d392fbe0ae6"
}'
Example response
HTTP/1.1 201 Created
Content-Type: application/json
Content-Length: 458
{
"id" : "4e0384fb-acdb-4489-a2e4-c6bd71f6bde8",
"organizationId" : "e25397d7-fa0b-4478-999c-aafe76f4b350",
"name" : "Standard Role - 925329b7-6dc5-4fa6-bcd5-5d392fbe0ae6",
"roleType" : "Standard",
"roleId" : "925329b7-6dc5-4fa6-bcd5-5d392fbe0ae6",
"createdBy" : "17e4283c-5b8e-4083-92ad-487c40802511",
"createdAt" : {
"nano" : 694099000,
"epochSecond" : 1787089033
},
"deletedAt" : null,
"deletedBy" : null,
"deleted" : false
}
Delete Default Role
DELETE /default-roles/{id}
Path parameters
| Parameter | Type | Optional | Description |
|---|---|---|---|
id |
Object |
false |
Response fields
| Path | Type | Optional | Description |
|---|---|---|---|
id |
String |
true |
|
organizationId |
String |
true |
|
name |
String |
true |
|
roleType |
String |
true |
Must be one of [Standard, Custom]. |
roleId |
String |
true |
|
createdBy |
String |
true |
|
createdAt |
Object |
true |
|
deletedAt |
Object |
true |
|
deletedBy |
String |
true |
|
deleted |
Boolean |
true |
Example request
$ curl 'https://gateway.netFoundry.io/identity/v1/default-roles/8cae44f0-d2e1-40f7-8a30-bcbd789161f7' -i -X DELETE
Example response
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 547
{
"id" : "8cae44f0-d2e1-40f7-8a30-bcbd789161f7",
"organizationId" : "19161bac-886b-4e4f-805d-c10e896e1d31",
"name" : "Standard Role - e938fafe-9cb8-4fa7-9fe5-2530890e13a0",
"roleType" : "Standard",
"roleId" : "e938fafe-9cb8-4fa7-9fe5-2530890e13a0",
"createdBy" : "cb48642f-c944-4959-9241-e9f69e94d70d",
"createdAt" : {
"nano" : 362511000,
"epochSecond" : 1787089033
},
"deletedAt" : {
"nano" : 377000000,
"epochSecond" : 1787089033
},
"deletedBy" : "5cd0fdcb-6f74-4b90-839b-481ea16ad28a",
"deleted" : true
}
Grant Default Role
POST /default-roles/{id}/grant
Authorization
This endpoint requires:
-
readaction on thisdefault-roleresource. -
createaction on theinvitationresource identified by theorganizationproperty.
Path parameters
| Parameter | Type | Optional | Description |
|---|---|---|---|
id |
Object |
false |
Request fields
No request body.
Response fields
No response body.
Example request
$ curl 'https://gateway.netFoundry.io/identity/v1/default-roles/a442f320-74cf-4c5f-ab82-7edb3e513c59/grant' -i -X POST \
-H 'Content-Type: application/json' \
-d '{
"includeIdentityIds" : [ "c8a5cc42-95df-4d8d-9964-91dcb5a5eb5c", "1df33b33-a747-4a96-8f27-32aad0c6c113", "852c6db4-02c7-4254-b020-8b71f2f721bf" ],
"excludeIdentityIds" : [ "0d98f5fc-0965-43c8-bf01-8558e2592bdb", "1df33b33-a747-4a96-8f27-32aad0c6c113", "852c6db4-02c7-4254-b020-8b71f2f721bf" ]
}'
Example response
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 51
{
"c8a5cc42-95df-4d8d-9964-91dcb5a5eb5c" : true
}
User Identity
Get Identity
GET /identities/self
Authorization
This endpoint requires no specific permission, only an authenticated client.
Response fields
| Path | Type | Optional | Description |
|---|---|---|---|
name |
String |
true |
|
id |
String |
true |
|
type |
String |
true |
|
active |
Boolean |
true |
|
deletedAt |
Object |
true |
|
String |
true |
||
tenantId |
String |
true |
Deprecated.. |
organizationId |
String |
true |
|
createdAt |
Object |
true |
Example request
$ curl 'https://gateway.netFoundry.io/identity/v1/identities/self' -i -X GET
Example response
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 778
{
"id" : "8979135f-a74b-460c-b617-01bc042374f6",
"organizationId" : "354e5af9-4581-419b-a9b6-fb93aa2b3cc2",
"firstName" : "First",
"lastName" : "Last",
"email" : "random-427@acme.com",
"identityMappings" : [ {
"id" : "14f3a3b2-2eac-485f-84b5-dfd7377e8cf6",
"auth0UserId" : "auth0-opaque-userId-428",
"identityProviderId" : "d003236e-677b-49b7-80b4-a4e2a80bff15",
"userIdentityId" : "8979135f-a74b-460c-b617-01bc042374f6"
} ],
"identityAudienceMappings" : [ ],
"active" : true,
"createdAt" : {
"nano" : 207258000,
"epochSecond" : 1787089063
},
"deletedAt" : null,
"invited" : false,
"tags" : { },
"name" : "First Last",
"status" : "ACTIVE",
"tenantId" : "354e5af9-4581-419b-a9b6-fb93aa2b3cc2",
"type" : "UserIdentity"
}
Get Identity
GET /identities/{id:[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}}
Path parameters
| Parameter | Type | Optional | Description |
|---|---|---|---|
id |
Object |
false |
Response fields
| Path | Type | Optional | Description |
|---|---|---|---|
name |
String |
true |
|
id |
String |
true |
|
type |
String |
true |
|
active |
Boolean |
true |
|
deletedAt |
Object |
true |
|
String |
true |
||
tenantId |
String |
true |
Deprecated.. |
organizationId |
String |
true |
|
createdAt |
Object |
true |
Example request
$ curl 'https://gateway.netFoundry.io/identity/v1/identities/1f2794a7-7fa9-4623-9510-0e3934c01200' -i -X GET
Example response
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 772
{
"id" : "1f2794a7-7fa9-4623-9510-0e3934c01200",
"organizationId" : "354e5af9-4581-419b-a9b6-fb93aa2b3cc2",
"firstName" : "John",
"lastName" : "Doe",
"email" : "john.doe@acme.com",
"identityMappings" : [ {
"id" : "e830724f-a626-4db4-acd7-a6fd5786be39",
"auth0UserId" : "auth0-opaque-userId-296",
"identityProviderId" : "d003236e-677b-49b7-80b4-a4e2a80bff15",
"userIdentityId" : "1f2794a7-7fa9-4623-9510-0e3934c01200"
} ],
"identityAudienceMappings" : [ ],
"active" : true,
"createdAt" : {
"nano" : 481748000,
"epochSecond" : 1787089049
},
"deletedAt" : null,
"invited" : false,
"tags" : { },
"name" : "John Doe",
"status" : "ACTIVE",
"tenantId" : "354e5af9-4581-419b-a9b6-fb93aa2b3cc2",
"type" : "UserIdentity"
}
Find User Identities
GET /user-identities
Response fields
Standard paging response where content field is list of following objects:
| Path | Type | Optional | Description |
|---|---|---|---|
id |
String |
true |
|
organizationId |
String |
true |
|
firstName |
String |
true |
|
lastName |
String |
true |
|
String |
true |
||
identityMappings |
Array[Object] |
true |
|
identityMappings[].id |
String |
true |
|
identityMappings[].auth0UserId |
String |
true |
|
identityMappings[].identityProviderId |
String |
true |
|
identityMappings[].userIdentityId |
String |
true |
|
identityAudienceMappings |
Array[Object] |
true |
|
identityAudienceMappings[].id |
String |
true |
|
identityAudienceMappings[].userIdentityId |
String |
true |
|
identityAudienceMappings[].oidcAudienceId |
String |
true |
|
identityAudienceMappings[].subject |
String |
true |
|
identityAudienceMappings[].active |
Boolean |
true |
|
identityAudienceMappings[].createdBy |
String |
true |
|
identityAudienceMappings[].createdAt |
Object |
true |
|
identityAudienceMappings[].deletedAt |
Object |
true |
|
identityAudienceMappings[].deletedBy |
String |
true |
|
identityAudienceMappings[].deleted |
Boolean |
true |
|
active |
Boolean |
true |
|
createdAt |
Object |
true |
|
deletedAt |
Object |
true |
|
invited |
Boolean |
true |
|
tags |
Map |
true |
|
name |
String |
true |
|
status |
String |
true |
|
tenantId |
String |
true |
Deprecated.. |
type |
String |
true |
Example request
$ curl 'https://gateway.netFoundry.io/identity/v1/user-identities' -i -X GET
Example response
HTTP/1.1 200 OK
Link: <https://gateway.netFoundry.io/identity/v1/user-identities?page=1>; rel="next", <https://gateway.netFoundry.io/identity/v1/user-identities?page=1>; rel="last"
Content-Type: application/json
Content-Length: 2289
[ {
"id" : "09bdef7f-4986-4a43-991f-a699e9d6d1d4",
"organizationId" : "354e5af9-4581-419b-a9b6-fb93aa2b3cc2",
"firstName" : "Scalar",
"lastName" : "Tag",
"email" : "scalar.tag.-432@acme.com",
"identityMappings" : [ ],
"identityAudienceMappings" : [ ],
"active" : true,
"createdAt" : {
"nano" : 519209000,
"epochSecond" : 1787089063
},
"deletedAt" : null,
"invited" : false,
"tags" : {
"env" : [ "staging", "prod" ],
"team" : [ "sre" ]
},
"name" : "Scalar Tag",
"status" : "ACTIVE",
"tenantId" : "354e5af9-4581-419b-a9b6-fb93aa2b3cc2",
"type" : "UserIdentity"
}, {
"id" : "1f2794a7-7fa9-4623-9510-0e3934c01200",
"organizationId" : "354e5af9-4581-419b-a9b6-fb93aa2b3cc2",
"firstName" : "John",
"lastName" : "Doe",
"email" : "john.doe@acme.com",
"identityMappings" : [ {
"id" : "e830724f-a626-4db4-acd7-a6fd5786be39",
"auth0UserId" : "auth0-opaque-userId-296",
"identityProviderId" : "d003236e-677b-49b7-80b4-a4e2a80bff15",
"userIdentityId" : "1f2794a7-7fa9-4623-9510-0e3934c01200"
} ],
"identityAudienceMappings" : [ ],
"active" : true,
"createdAt" : {
"nano" : 481748000,
"epochSecond" : 1787089049
},
"deletedAt" : null,
"invited" : false,
"tags" : { },
"name" : "John Doe",
"status" : "ACTIVE",
"tenantId" : "354e5af9-4581-419b-a9b6-fb93aa2b3cc2",
"type" : "UserIdentity"
}, {
"id" : "227fd5bd-6e3d-426c-a1f1-2be76683842f",
"organizationId" : "b53b4609-0c83-4499-a2ba-9137413c2639",
"firstName" : "mfa",
"lastName" : "281443ee-2d62-49ad-88df-df92ba367a82",
"email" : "mfa.joiner.281443ee-2d62-49ad-88df-df92ba367a82@acme.com",
"identityMappings" : [ {
"id" : "b4cf30d0-2d39-4788-94eb-4766d00778f9",
"auth0UserId" : "auth0|test-77e859d9-d20a-4346-817c-9e856880806e",
"identityProviderId" : "ae4ec507-b60e-4460-a1f7-7648beba2f3c",
"userIdentityId" : "227fd5bd-6e3d-426c-a1f1-2be76683842f"
} ],
"identityAudienceMappings" : [ ],
"active" : true,
"createdAt" : {
"nano" : 147665000,
"epochSecond" : 1787089051
},
"deletedAt" : null,
"invited" : false,
"tags" : { },
"name" : "mfa 281443ee-2d62-49ad-88df-df92ba367a82",
"status" : "ACTIVE",
"tenantId" : "b53b4609-0c83-4499-a2ba-9137413c2639",
"type" : "UserIdentity"
} ]
Get User Identity
GET /user-identities/{id:[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}}
Path parameters
| Parameter | Type | Optional | Description |
|---|---|---|---|
id |
Object |
false |
Response fields
| Path | Type | Optional | Description |
|---|---|---|---|
id |
String |
true |
|
organizationId |
String |
true |
|
firstName |
String |
true |
|
lastName |
String |
true |
|
String |
true |
||
identityMappings |
Array[Object] |
true |
|
identityMappings[].id |
String |
true |
|
identityMappings[].auth0UserId |
String |
true |
|
identityMappings[].identityProviderId |
String |
true |
|
identityMappings[].userIdentityId |
String |
true |
|
identityAudienceMappings |
Array[Object] |
true |
|
identityAudienceMappings[].id |
String |
true |
|
identityAudienceMappings[].userIdentityId |
String |
true |
|
identityAudienceMappings[].oidcAudienceId |
String |
true |
|
identityAudienceMappings[].subject |
String |
true |
|
identityAudienceMappings[].active |
Boolean |
true |
|
identityAudienceMappings[].createdBy |
String |
true |
|
identityAudienceMappings[].createdAt |
Object |
true |
|
identityAudienceMappings[].deletedAt |
Object |
true |
|
identityAudienceMappings[].deletedBy |
String |
true |
|
identityAudienceMappings[].deleted |
Boolean |
true |
|
active |
Boolean |
true |
|
createdAt |
Object |
true |
|
deletedAt |
Object |
true |
|
invited |
Boolean |
true |
|
tags |
Map |
true |
|
name |
String |
true |
|
status |
String |
true |
|
tenantId |
String |
true |
Deprecated.. |
type |
String |
true |
Example request
$ curl 'https://gateway.netFoundry.io/identity/v1/user-identities/1f2794a7-7fa9-4623-9510-0e3934c01200' -i -X GET
Example response
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 772
{
"id" : "1f2794a7-7fa9-4623-9510-0e3934c01200",
"organizationId" : "354e5af9-4581-419b-a9b6-fb93aa2b3cc2",
"firstName" : "John",
"lastName" : "Doe",
"email" : "john.doe@acme.com",
"identityMappings" : [ {
"id" : "e830724f-a626-4db4-acd7-a6fd5786be39",
"auth0UserId" : "auth0-opaque-userId-296",
"identityProviderId" : "d003236e-677b-49b7-80b4-a4e2a80bff15",
"userIdentityId" : "1f2794a7-7fa9-4623-9510-0e3934c01200"
} ],
"identityAudienceMappings" : [ ],
"active" : true,
"createdAt" : {
"nano" : 481748000,
"epochSecond" : 1787089049
},
"deletedAt" : null,
"invited" : false,
"tags" : { },
"name" : "John Doe",
"status" : "ACTIVE",
"tenantId" : "354e5af9-4581-419b-a9b6-fb93aa2b3cc2",
"type" : "UserIdentity"
}
Get User Identity By Mapping
GET /user-identities/mapping/{auth0UserId}/{identityProviderId}
Path parameters
| Parameter | Type | Optional | Description |
|---|---|---|---|
auth0UserId |
String |
false |
|
identityProviderId |
Object |
false |
Response fields
| Path | Type | Optional | Description |
|---|---|---|---|
id |
String |
true |
|
organizationId |
String |
true |
|
firstName |
String |
true |
|
lastName |
String |
true |
|
String |
true |
||
identityMappings |
Array[Object] |
true |
|
identityMappings[].id |
String |
true |
|
identityMappings[].auth0UserId |
String |
true |
|
identityMappings[].identityProviderId |
String |
true |
|
identityMappings[].userIdentityId |
String |
true |
|
identityAudienceMappings |
Array[Object] |
true |
|
identityAudienceMappings[].id |
String |
true |
|
identityAudienceMappings[].userIdentityId |
String |
true |
|
identityAudienceMappings[].oidcAudienceId |
String |
true |
|
identityAudienceMappings[].subject |
String |
true |
|
identityAudienceMappings[].active |
Boolean |
true |
|
identityAudienceMappings[].createdBy |
String |
true |
|
identityAudienceMappings[].createdAt |
Object |
true |
|
identityAudienceMappings[].deletedAt |
Object |
true |
|
identityAudienceMappings[].deletedBy |
String |
true |
|
identityAudienceMappings[].deleted |
Boolean |
true |
|
active |
Boolean |
true |
|
createdAt |
Object |
true |
|
deletedAt |
Object |
true |
|
invited |
Boolean |
true |
|
tags |
Map |
true |
|
name |
String |
true |
|
status |
String |
true |
|
tenantId |
String |
true |
Deprecated.. |
type |
String |
true |
Example request
$ curl 'https://gateway.netFoundry.io/identity/v1/user-identities/mapping/auth0-opaque-userId-296/d003236e-677b-49b7-80b4-a4e2a80bff15' -i -X GET
Example response
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 772
{
"id" : "1f2794a7-7fa9-4623-9510-0e3934c01200",
"organizationId" : "354e5af9-4581-419b-a9b6-fb93aa2b3cc2",
"firstName" : "John",
"lastName" : "Doe",
"email" : "john.doe@acme.com",
"identityMappings" : [ {
"id" : "e830724f-a626-4db4-acd7-a6fd5786be39",
"auth0UserId" : "auth0-opaque-userId-296",
"identityProviderId" : "d003236e-677b-49b7-80b4-a4e2a80bff15",
"userIdentityId" : "1f2794a7-7fa9-4623-9510-0e3934c01200"
} ],
"identityAudienceMappings" : [ ],
"active" : true,
"createdAt" : {
"nano" : 481748000,
"epochSecond" : 1787089049
},
"deletedAt" : null,
"invited" : false,
"tags" : { },
"name" : "John Doe",
"status" : "ACTIVE",
"tenantId" : "354e5af9-4581-419b-a9b6-fb93aa2b3cc2",
"type" : "UserIdentity"
}
Create Identity
POST /user-identities
Request fields
| Path | Type | Optional | Description |
|---|---|---|---|
organizationId |
String |
true |
|
firstName |
String |
true |
|
lastName |
String |
true |
|
String |
true |
||
tags |
Map |
true |
Response fields
| Path | Type | Optional | Description |
|---|---|---|---|
id |
String |
true |
|
organizationId |
String |
true |
|
firstName |
String |
true |
|
lastName |
String |
true |
|
String |
true |
||
identityMappings |
Array[Object] |
true |
|
identityMappings[].id |
String |
true |
|
identityMappings[].auth0UserId |
String |
true |
|
identityMappings[].identityProviderId |
String |
true |
|
identityMappings[].userIdentityId |
String |
true |
|
identityAudienceMappings |
Array[Object] |
true |
|
identityAudienceMappings[].id |
String |
true |
|
identityAudienceMappings[].userIdentityId |
String |
true |
|
identityAudienceMappings[].oidcAudienceId |
String |
true |
|
identityAudienceMappings[].subject |
String |
true |
|
identityAudienceMappings[].active |
Boolean |
true |
|
identityAudienceMappings[].createdBy |
String |
true |
|
identityAudienceMappings[].createdAt |
Object |
true |
|
identityAudienceMappings[].deletedAt |
Object |
true |
|
identityAudienceMappings[].deletedBy |
String |
true |
|
identityAudienceMappings[].deleted |
Boolean |
true |
|
active |
Boolean |
true |
|
createdAt |
Object |
true |
|
deletedAt |
Object |
true |
|
invited |
Boolean |
true |
|
tags |
Map |
true |
|
name |
String |
true |
|
status |
String |
true |
|
tenantId |
String |
true |
Deprecated.. |
type |
String |
true |
Example request
$ curl 'https://gateway.netFoundry.io/identity/v1/user-identities' -i -X POST \
-H 'Content-Type: application/json' \
-d '{
"organizationId" : "354e5af9-4581-419b-a9b6-fb93aa2b3cc2",
"firstName" : "Jane",
"lastName" : "Doe",
"email" : "jane.doe@acme.com",
"tags" : null
}'
Example response
HTTP/1.1 201 Created
Content-Type: application/json
Content-Length: 539
{
"id" : "0c7baeb7-95c0-4442-941b-7b6bc24c001a",
"organizationId" : "354e5af9-4581-419b-a9b6-fb93aa2b3cc2",
"firstName" : "Jane",
"lastName" : "Doe",
"email" : "jane.doe@acme.com",
"identityMappings" : [ ],
"identityAudienceMappings" : [ ],
"active" : true,
"createdAt" : {
"nano" : 239918000,
"epochSecond" : 1787089065
},
"deletedAt" : null,
"invited" : false,
"tags" : { },
"name" : "Jane Doe",
"status" : "ACTIVE",
"tenantId" : "354e5af9-4581-419b-a9b6-fb93aa2b3cc2",
"type" : "UserIdentity"
}
Update
PUT /user-identities/{id}
Path parameters
| Parameter | Type | Optional | Description |
|---|---|---|---|
id |
Object |
false |
Request fields
| Path | Type | Optional | Description |
|---|---|---|---|
firstName |
String |
true |
|
lastName |
String |
true |
|
String |
true |
||
tags |
Map |
true |
Response fields
| Path | Type | Optional | Description |
|---|---|---|---|
id |
String |
true |
|
organizationId |
String |
true |
|
firstName |
String |
true |
|
lastName |
String |
true |
|
String |
true |
||
identityMappings |
Array[Object] |
true |
|
identityMappings[].id |
String |
true |
|
identityMappings[].auth0UserId |
String |
true |
|
identityMappings[].identityProviderId |
String |
true |
|
identityMappings[].userIdentityId |
String |
true |
|
identityAudienceMappings |
Array[Object] |
true |
|
identityAudienceMappings[].id |
String |
true |
|
identityAudienceMappings[].userIdentityId |
String |
true |
|
identityAudienceMappings[].oidcAudienceId |
String |
true |
|
identityAudienceMappings[].subject |
String |
true |
|
identityAudienceMappings[].active |
Boolean |
true |
|
identityAudienceMappings[].createdBy |
String |
true |
|
identityAudienceMappings[].createdAt |
Object |
true |
|
identityAudienceMappings[].deletedAt |
Object |
true |
|
identityAudienceMappings[].deletedBy |
String |
true |
|
identityAudienceMappings[].deleted |
Boolean |
true |
|
active |
Boolean |
true |
|
createdAt |
Object |
true |
|
deletedAt |
Object |
true |
|
invited |
Boolean |
true |
|
tags |
Map |
true |
|
name |
String |
true |
|
status |
String |
true |
|
tenantId |
String |
true |
Deprecated.. |
type |
String |
true |
Example request
$ curl 'https://gateway.netFoundry.io/identity/v1/user-identities/9275418c-2b95-46f2-a0af-28b6700d666a' -i -X PUT \
-H 'Content-Type: application/json' \
-d '{
"firstName" : "Bobby",
"lastName" : "White",
"email" : "bobby.white@acme.com",
"tags" : null
}'
Example response
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 781
{
"id" : "9275418c-2b95-46f2-a0af-28b6700d666a",
"organizationId" : "354e5af9-4581-419b-a9b6-fb93aa2b3cc2",
"firstName" : "Bobby",
"lastName" : "White",
"email" : "bobby.white@acme.com",
"identityMappings" : [ {
"id" : "f668d773-eb52-4742-8093-da3526a1f546",
"auth0UserId" : "auth0-opaque-userId-440",
"identityProviderId" : "d003236e-677b-49b7-80b4-a4e2a80bff15",
"userIdentityId" : "9275418c-2b95-46f2-a0af-28b6700d666a"
} ],
"identityAudienceMappings" : [ ],
"active" : true,
"createdAt" : {
"nano" : 135069000,
"epochSecond" : 1787089064
},
"deletedAt" : null,
"invited" : false,
"tags" : { },
"name" : "Bobby White",
"status" : "ACTIVE",
"tenantId" : "354e5af9-4581-419b-a9b6-fb93aa2b3cc2",
"type" : "UserIdentity"
}
Activate Or Deactivate User Identity
PUT /user-identities/{id}/{action:activate|deactivate}
Path parameters
| Parameter | Type | Optional | Description |
|---|---|---|---|
id |
Object |
false |
|
action |
String |
false |
Response fields
| Path | Type | Optional | Description |
|---|---|---|---|
id |
String |
true |
|
organizationId |
String |
true |
|
firstName |
String |
true |
|
lastName |
String |
true |
|
String |
true |
||
identityMappings |
Array[Object] |
true |
|
identityMappings[].id |
String |
true |
|
identityMappings[].auth0UserId |
String |
true |
|
identityMappings[].identityProviderId |
String |
true |
|
identityMappings[].userIdentityId |
String |
true |
|
identityAudienceMappings |
Array[Object] |
true |
|
identityAudienceMappings[].id |
String |
true |
|
identityAudienceMappings[].userIdentityId |
String |
true |
|
identityAudienceMappings[].oidcAudienceId |
String |
true |
|
identityAudienceMappings[].subject |
String |
true |
|
identityAudienceMappings[].active |
Boolean |
true |
|
identityAudienceMappings[].createdBy |
String |
true |
|
identityAudienceMappings[].createdAt |
Object |
true |
|
identityAudienceMappings[].deletedAt |
Object |
true |
|
identityAudienceMappings[].deletedBy |
String |
true |
|
identityAudienceMappings[].deleted |
Boolean |
true |
|
active |
Boolean |
true |
|
createdAt |
Object |
true |
|
deletedAt |
Object |
true |
|
invited |
Boolean |
true |
|
tags |
Map |
true |
|
name |
String |
true |
|
status |
String |
true |
|
tenantId |
String |
true |
Deprecated.. |
type |
String |
true |
Example request
$ curl 'https://gateway.netFoundry.io/identity/v1/user-identities/d2a4b4af-4037-4fad-a74b-3d72ed6f3d68/deactivate' -i -X PUT
Example response
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 781
{
"id" : "d2a4b4af-4037-4fad-a74b-3d72ed6f3d68",
"organizationId" : "354e5af9-4581-419b-a9b6-fb93aa2b3cc2",
"firstName" : "First",
"lastName" : "Last",
"email" : "random-443@acme.com",
"identityMappings" : [ {
"id" : "e9e2d397-71df-4941-9a44-a0afcbfd5134",
"auth0UserId" : "auth0-opaque-userId-444",
"identityProviderId" : "d003236e-677b-49b7-80b4-a4e2a80bff15",
"userIdentityId" : "d2a4b4af-4037-4fad-a74b-3d72ed6f3d68"
} ],
"identityAudienceMappings" : [ ],
"active" : false,
"createdAt" : {
"nano" : 503597000,
"epochSecond" : 1787089064
},
"deletedAt" : null,
"invited" : false,
"tags" : { },
"name" : "First Last",
"status" : "INACTIVE",
"tenantId" : "354e5af9-4581-419b-a9b6-fb93aa2b3cc2",
"type" : "UserIdentity"
}
Reset User Identity Mfa Settings
PUT /user-identities/{id}/reset-mfa
Path parameters
| Parameter | Type | Optional | Description |
|---|---|---|---|
id |
Object |
false |
Response fields
No response body.
Example request
$ curl 'https://gateway.netFoundry.io/identity/v1/user-identities/fbf15ae1-9630-43b7-b296-4f948535d6df/reset-mfa' -i -X PUT
Example response
HTTP/1.1 200 OK
Delete User Identity Passkeys
DELETE /user-identities/{id}/passkeys
Path parameters
| Parameter | Type | Optional | Description |
|---|---|---|---|
id |
Object |
false |
Response fields
No response body.
Example request
$ curl 'https://gateway.netFoundry.io/identity/v1/user-identities/ebd8c0d7-2bc4-4131-b59a-748609555d8b/passkeys' -i -X DELETE
Example response
HTTP/1.1 204 No Content
Map Identity
POST /user-identities/{id}/mapping
Authorization
This endpoint requires:
-
create-identity-mappingaction on thisuser-identityresource.
Path parameters
| Parameter | Type | Optional | Description |
|---|---|---|---|
id |
Object |
false |
Request fields
| Path | Type | Optional | Description |
|---|---|---|---|
auth0UserId |
String |
true |
|
identityProviderId |
String |
true |
Response fields
No response body.
Example request
$ curl 'https://gateway.netFoundry.io/identity/v1/user-identities/fd46c121-c42c-4fa4-ada2-b45f9d95c13a/mapping' -i -X POST \
-H 'Content-Type: application/json' \
-d '{
"auth0UserId" : "new-auth0-userId:be00f63d-0524-4527-89f3-2ed5ab9bb978",
"identityProviderId" : "f1e1a9ed-ae88-403a-9147-a23c273135f7"
}'
Example response
HTTP/1.1 200 OK
API Account Identity
Find Api Account Identities
GET /api-account-identities
Query parameters
Supports standard paging query parameters.
| Parameter | Type | Optional | Description |
|---|---|---|---|
tenantId |
Object |
true |
Deprecated.. |
organizationId |
Object |
true |
|
name |
String |
true |
|
contactEmail |
String |
true |
|
active |
Boolean |
true |
|
includeDeleted |
Boolean |
true |
Default value: 'false'. |
provider |
String |
true |
Must be one of [Auth0, Cognito]. |
Response fields
Standard paging response where content field is list of following objects:
| Path | Type | Optional | Description |
|---|---|---|---|
id |
String |
true |
|
organizationId |
String |
true |
|
auth0ClientId |
String |
true |
|
awsCognitoClientId |
String |
true |
|
authenticationUrl |
String |
true |
|
name |
String |
true |
|
contactEmail |
String |
true |
|
description |
String |
true |
|
active |
Boolean |
true |
|
createdAt |
Object |
true |
|
updatedAt |
Object |
true |
|
deletedAt |
Object |
true |
|
tags |
Map |
true |
|
String |
true |
||
tenantId |
String |
true |
Deprecated.. |
type |
String |
true |
Example request
$ curl 'https://gateway.netFoundry.io/identity/v1/api-account-identities' -i -X GET
Example response
HTTP/1.1 200 OK
Link: <https://gateway.netFoundry.io/identity/v1/api-account-identities?page=1>; rel="next", <https://gateway.netFoundry.io/identity/v1/api-account-identities?page=2>; rel="last"
Content-Type: application/json
Content-Length: 2135
[ {
"id" : "13b14601-3d64-433f-9a13-1abc71f5e170",
"organizationId" : "f1c46320-fee2-4823-ac2a-b0f3e074bb4a",
"auth0ClientId" : null,
"awsCognitoClientId" : "e7235b27-c6d2-4bde-908a-16e5b174d10c|yulmxiap",
"authenticationUrl" : "https://netfoundry-test-jpwdpo.auth.us-east-1.amazoncognito.com/oauth2/token",
"name" : "Testing Limits",
"contactEmail" : "a@acme.com",
"description" : "description",
"active" : true,
"createdAt" : {
"nano" : 782957000,
"epochSecond" : 1787088989
},
"updatedAt" : null,
"deletedAt" : null,
"tags" : { },
"email" : "a@acme.com",
"tenantId" : "f1c46320-fee2-4823-ac2a-b0f3e074bb4a",
"type" : "ApiAccountIdentity"
}, {
"id" : "1bc8a91f-c100-463f-a068-3d8da403136d",
"organizationId" : "f1c46320-fee2-4823-ac2a-b0f3e074bb4a",
"auth0ClientId" : null,
"awsCognitoClientId" : "c2330bfb-00f0-4ce2-96e9-e6611474c8f3|mqrhodjj",
"authenticationUrl" : "https://netfoundry-test-ecvosv.auth.us-east-1.amazoncognito.com/oauth2/token",
"name" : "Test Rotation",
"contactEmail" : "hr.director@acme.com",
"description" : "description goes here",
"active" : true,
"createdAt" : {
"nano" : 258851000,
"epochSecond" : 1787088978
},
"updatedAt" : {
"nano" : 334704000,
"epochSecond" : 1787088978
},
"deletedAt" : null,
"tags" : { },
"email" : "hr.director@acme.com",
"tenantId" : "f1c46320-fee2-4823-ac2a-b0f3e074bb4a",
"type" : "ApiAccountIdentity"
}, {
"id" : "230d5e6f-2118-493f-b17c-d22e3ab0ff52",
"organizationId" : "f1c46320-fee2-4823-ac2a-b0f3e074bb4a",
"auth0ClientId" : "823e8d75-07c9-40f2-b68e-65a1d55a86c0",
"awsCognitoClientId" : null,
"authenticationUrl" : "https://netfoundry-sandbox.auth0.com/oauth/token",
"name" : "HR Bridge Service",
"contactEmail" : "hr.director@acme.com",
"description" : "description goes here",
"active" : true,
"createdAt" : {
"nano" : 959806000,
"epochSecond" : 1787088979
},
"updatedAt" : null,
"deletedAt" : null,
"tags" : { },
"email" : "hr.director@acme.com",
"tenantId" : "f1c46320-fee2-4823-ac2a-b0f3e074bb4a",
"type" : "ApiAccountIdentity"
} ]
Get Api Account Identity
GET /api-account-identities/{id:[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}}
Path parameters
| Parameter | Type | Optional | Description |
|---|---|---|---|
id |
Object |
false |
Response fields
| Path | Type | Optional | Description |
|---|---|---|---|
id |
String |
true |
|
organizationId |
String |
true |
|
auth0ClientId |
String |
true |
|
awsCognitoClientId |
String |
true |
|
authenticationUrl |
String |
true |
|
name |
String |
true |
|
contactEmail |
String |
true |
|
description |
String |
true |
|
active |
Boolean |
true |
|
createdAt |
Object |
true |
|
updatedAt |
Object |
true |
|
deletedAt |
Object |
true |
|
tags |
Map |
true |
|
String |
true |
||
tenantId |
String |
true |
Deprecated.. |
type |
String |
true |
Example request
$ curl 'https://gateway.netFoundry.io/identity/v1/api-account-identities/a3632b30-68b7-484e-a2e7-69c0a8712839' -i -X GET
Example response
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 734
{
"id" : "a3632b30-68b7-484e-a2e7-69c0a8712839",
"organizationId" : "f1c46320-fee2-4823-ac2a-b0f3e074bb4a",
"auth0ClientId" : "40a4db47-672d-4991-993a-9529032a01f7",
"awsCognitoClientId" : null,
"authenticationUrl" : "http://127.0.0.1:1234/IdP/OAuth2/login",
"name" : "api-account",
"contactEmail" : "no-reply@acme.com",
"description" : "This is an ACME non-interactive API client.",
"active" : true,
"createdAt" : {
"nano" : 637783000,
"epochSecond" : 1787088971
},
"updatedAt" : {
"nano" : 612435000,
"epochSecond" : 1787088977
},
"deletedAt" : null,
"tags" : { },
"email" : "no-reply@acme.com",
"tenantId" : "f1c46320-fee2-4823-ac2a-b0f3e074bb4a",
"type" : "ApiAccountIdentity"
}
Get Api Account Identity By Mapping
GET /api-account-identities/mapping/{clientId}
Path parameters
| Parameter | Type | Optional | Description |
|---|---|---|---|
clientId |
String |
false |
Response fields
| Path | Type | Optional | Description |
|---|---|---|---|
id |
String |
true |
|
organizationId |
String |
true |
|
auth0ClientId |
String |
true |
|
awsCognitoClientId |
String |
true |
|
authenticationUrl |
String |
true |
|
name |
String |
true |
|
contactEmail |
String |
true |
|
description |
String |
true |
|
active |
Boolean |
true |
|
createdAt |
Object |
true |
|
updatedAt |
Object |
true |
|
deletedAt |
Object |
true |
|
tags |
Map |
true |
|
String |
true |
||
tenantId |
String |
true |
Deprecated.. |
type |
String |
true |
Example request
$ curl 'https://gateway.netFoundry.io/identity/v1/api-account-identities/mapping/ba9e9092-2d21-4858-ac0f-37cf5bd587bc' -i -X GET
Example response
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 698
{
"id" : "8cbcc5e1-4a72-4f0a-a23a-9635b1a61846",
"organizationId" : "f1c46320-fee2-4823-ac2a-b0f3e074bb4a",
"auth0ClientId" : "ba9e9092-2d21-4858-ac0f-37cf5bd587bc",
"awsCognitoClientId" : null,
"authenticationUrl" : "http://127.0.0.1:1234/IdP/OAuth2/login",
"name" : "ACME Internal Service-37",
"contactEmail" : "service.admin-38@foo.com",
"description" : "updatable API Account description-39",
"active" : true,
"createdAt" : {
"nano" : 646255000,
"epochSecond" : 1787089016
},
"updatedAt" : null,
"deletedAt" : null,
"tags" : { },
"email" : "service.admin-38@foo.com",
"tenantId" : "f1c46320-fee2-4823-ac2a-b0f3e074bb4a",
"type" : "ApiAccountIdentity"
}
Create Api Account Identity
POST /api-account-identities
Request fields
| Path | Type | Optional | Description |
|---|---|---|---|
organizationId |
String |
true |
|
name |
String |
true |
|
contactEmail |
String |
true |
|
description |
String |
true |
|
grantDefaultRoles |
Boolean |
true |
|
provider |
String |
true |
Must be one of [Auth0, Cognito]. |
tags |
Map |
true |
Response fields
| Path | Type | Optional | Description |
|---|---|---|---|
apiAccountIdentity |
Object |
true |
|
apiAccountIdentity.id |
String |
true |
|
apiAccountIdentity.organizationId |
String |
true |
|
apiAccountIdentity.auth0ClientId |
String |
true |
|
apiAccountIdentity.awsCognitoClientId |
String |
true |
|
apiAccountIdentity.authenticationUrl |
String |
true |
|
apiAccountIdentity.name |
String |
true |
|
apiAccountIdentity.contactEmail |
String |
true |
|
apiAccountIdentity.description |
String |
true |
|
apiAccountIdentity.active |
Boolean |
true |
|
apiAccountIdentity.createdAt |
Object |
true |
|
apiAccountIdentity.updatedAt |
Object |
true |
|
apiAccountIdentity.deletedAt |
Object |
true |
|
apiAccountIdentity.tags |
Map |
true |
|
apiAccountIdentity.email |
String |
true |
|
apiAccountIdentity.tenantId |
String |
true |
Deprecated.. |
apiAccountIdentity.type |
String |
true |
|
clientId |
String |
true |
|
password |
String |
true |
|
authenticationUrl |
String |
true |
Example request
$ curl 'https://gateway.netFoundry.io/identity/v1/api-account-identities' -i -X POST \
-H 'Content-Type: application/json' \
-d '{
"organizationId" : "f1c46320-fee2-4823-ac2a-b0f3e074bb4a",
"name" : "HR Bridge Service",
"contactEmail" : "hr.director@acme.com",
"description" : "description goes here",
"grantDefaultRoles" : true,
"provider" : "Cognito",
"tags" : null
}'
Example response
HTTP/1.1 201 Created
Content-Type: application/json
Content-Length: 958
{
"apiAccountIdentity" : {
"id" : "dc4ebc5a-7690-40e5-95a3-b7737377bdf4",
"organizationId" : "f1c46320-fee2-4823-ac2a-b0f3e074bb4a",
"auth0ClientId" : null,
"awsCognitoClientId" : "c2330bfb-00f0-4ce2-96e9-e6611474c8f3|qsigeahk",
"authenticationUrl" : "https://netfoundry-test-ecvosv.auth.us-east-1.amazoncognito.com/oauth2/token",
"name" : "HR Bridge Service",
"contactEmail" : "hr.director@acme.com",
"description" : "description goes here",
"active" : true,
"createdAt" : {
"nano" : 771433000,
"epochSecond" : 1787088979
},
"updatedAt" : null,
"deletedAt" : null,
"tags" : { },
"email" : "hr.director@acme.com",
"tenantId" : "f1c46320-fee2-4823-ac2a-b0f3e074bb4a",
"type" : "ApiAccountIdentity"
},
"clientId" : "qsigeahk",
"password" : "xmwywmewmgueeoanxofkwflj",
"authenticationUrl" : "https://netfoundry-test-ecvosv.auth.us-east-1.amazoncognito.com/oauth2/token"
}
Update Identity Info
PUT /api-account-identities/{id}
Path parameters
| Parameter | Type | Optional | Description |
|---|---|---|---|
id |
Object |
false |
Request fields
| Path | Type | Optional | Description |
|---|---|---|---|
name |
String |
true |
|
contactEmail |
String |
true |
|
description |
String |
true |
|
tags |
Map |
true |
Response fields
| Path | Type | Optional | Description |
|---|---|---|---|
id |
String |
true |
|
organizationId |
String |
true |
|
auth0ClientId |
String |
true |
|
awsCognitoClientId |
String |
true |
|
authenticationUrl |
String |
true |
|
name |
String |
true |
|
contactEmail |
String |
true |
|
description |
String |
true |
|
active |
Boolean |
true |
|
createdAt |
Object |
true |
|
updatedAt |
Object |
true |
|
deletedAt |
Object |
true |
|
tags |
Map |
true |
|
String |
true |
||
tenantId |
String |
true |
Deprecated.. |
type |
String |
true |
Example request
$ curl 'https://gateway.netFoundry.io/identity/v1/api-account-identities/de7b49ff-e4ec-47eb-b375-7756fbd57c66' -i -X PUT \
-H 'Content-Type: application/json' \
-d '{
"name" : "Robot",
"contactEmail" : "robot@acme.com",
"description" : "description here.",
"tags" : null
}'
Example response
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 696
{
"id" : "de7b49ff-e4ec-47eb-b375-7756fbd57c66",
"organizationId" : "f1c46320-fee2-4823-ac2a-b0f3e074bb4a",
"auth0ClientId" : "7611ceec-07b8-4998-aa7d-f029e71f6967",
"awsCognitoClientId" : null,
"authenticationUrl" : "http://127.0.0.1:1234/IdP/OAuth2/login",
"name" : "Robot",
"contactEmail" : "robot@acme.com",
"description" : "description here.",
"active" : true,
"createdAt" : {
"nano" : 717084000,
"epochSecond" : 1787088971
},
"updatedAt" : {
"nano" : 495677000,
"epochSecond" : 1787088973
},
"deletedAt" : null,
"tags" : { },
"email" : "robot@acme.com",
"tenantId" : "f1c46320-fee2-4823-ac2a-b0f3e074bb4a",
"type" : "ApiAccountIdentity"
}
Activate Or Deactivate Api Account Identity
PUT /api-account-identities/{id}/{action:activate|deactivate}
Path parameters
| Parameter | Type | Optional | Description |
|---|---|---|---|
id |
Object |
false |
|
action |
String |
false |
Response fields
| Path | Type | Optional | Description |
|---|---|---|---|
id |
String |
true |
|
organizationId |
String |
true |
|
auth0ClientId |
String |
true |
|
awsCognitoClientId |
String |
true |
|
authenticationUrl |
String |
true |
|
name |
String |
true |
|
contactEmail |
String |
true |
|
description |
String |
true |
|
active |
Boolean |
true |
|
createdAt |
Object |
true |
|
updatedAt |
Object |
true |
|
deletedAt |
Object |
true |
|
tags |
Map |
true |
|
String |
true |
||
tenantId |
String |
true |
Deprecated.. |
type |
String |
true |
Example request
$ curl 'https://gateway.netFoundry.io/identity/v1/api-account-identities/5d0ff37c-f5ca-44b0-aee0-e1fa94956313/deactivate' -i -X PUT
Example response
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 755
{
"id" : "5d0ff37c-f5ca-44b0-aee0-e1fa94956313",
"organizationId" : "f1c46320-fee2-4823-ac2a-b0f3e074bb4a",
"auth0ClientId" : "de890922-7a4e-4e32-a852-463a3a201b82",
"awsCognitoClientId" : null,
"authenticationUrl" : "http://127.0.0.1:1234/IdP/OAuth2/login",
"name" : "ACME Internal Service-28",
"contactEmail" : "service.admin-29@foo.com",
"description" : "updatable API Account description-30",
"active" : false,
"createdAt" : {
"nano" : 959478000,
"epochSecond" : 1787089015
},
"updatedAt" : {
"nano" : 983205000,
"epochSecond" : 1787089015
},
"deletedAt" : null,
"tags" : { },
"email" : "service.admin-29@foo.com",
"tenantId" : "f1c46320-fee2-4823-ac2a-b0f3e074bb4a",
"type" : "ApiAccountIdentity"
}
Invitation
Find Invitations
GET /invitations
Query parameters
Supports standard paging query parameters.
| Parameter | Type | Optional | Description |
|---|---|---|---|
fromIdentityId |
Object |
true |
|
toTenantId |
Object |
true |
Deprecated.. |
toOrganizationId |
Object |
true |
|
invitedEmailAddress |
String |
true |
|
targetIdentityId |
Object |
true |
|
states |
Object |
true |
Must be one of [Open, Accepted, Declined, Expired, Revoked]. |
Response fields
Standard paging response where content field is list of following objects:
| Path | Type | Optional | Description |
|---|---|---|---|
id |
String |
true |
|
fromIdentityId |
String |
true |
|
toOrganizationId |
String |
true |
|
invitedEmailAddress |
String |
true |
|
invitationHost |
String |
true |
|
expiration |
Object |
true |
|
targetUserIdentityId |
String |
true |
|
accepted |
Boolean |
true |
|
revokedAt |
Object |
true |
|
responseReceivedAt |
Object |
true |
|
state |
String |
true |
|
toTenantId |
String |
true |
Deprecated.. |
Example request
$ curl 'https://gateway.netFoundry.io/identity/v1/invitations' -i -X GET
Example response
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 1874
[ {
"id" : "27fe5310-0079-432d-a816-c3155360988e",
"fromIdentityId" : "bca33e4a-19ef-4df9-9e7e-5224c2748b87",
"toOrganizationId" : "f1c46320-fee2-4823-ac2a-b0f3e074bb4a",
"invitedEmailAddress" : "new.employee-263@acme.com",
"invitationHost" : "cloudziti.io",
"expiration" : {
"nano" : 664353000,
"epochSecond" : 1787693842
},
"targetUserIdentityId" : "befde819-0f1a-41c5-b358-03cfcff8d1c3",
"accepted" : null,
"revokedAt" : {
"nano" : 717895000,
"epochSecond" : 1787089042
},
"responseReceivedAt" : {
"nano" : 717896000,
"epochSecond" : 1787089042
},
"state" : "Revoked",
"toTenantId" : "f1c46320-fee2-4823-ac2a-b0f3e074bb4a"
}, {
"id" : "8dc0d765-20d9-4e97-8262-d23951a62093",
"fromIdentityId" : "f1a9d605-7ef3-4cf2-a994-cfb9f8c1534f",
"toOrganizationId" : "f1c46320-fee2-4823-ac2a-b0f3e074bb4a",
"invitedEmailAddress" : "new.employee@acme.com",
"invitationHost" : "acme.cloudziti.io",
"expiration" : {
"nano" : 278366000,
"epochSecond" : 1787693842
},
"targetUserIdentityId" : "bd936fd0-6a63-4460-ac09-32d6f05c73ae",
"accepted" : null,
"revokedAt" : null,
"responseReceivedAt" : null,
"state" : "Open",
"toTenantId" : "f1c46320-fee2-4823-ac2a-b0f3e074bb4a"
}, {
"id" : "e22a8fa4-2e29-4f83-892c-6a6fcc85d085",
"fromIdentityId" : "bca33e4a-19ef-4df9-9e7e-5224c2748b87",
"toOrganizationId" : "f1c46320-fee2-4823-ac2a-b0f3e074bb4a",
"invitedEmailAddress" : "new.employee-256@acme.com",
"invitationHost" : "cloudziti.io",
"expiration" : {
"nano" : 6158000,
"epochSecond" : 1787693842
},
"targetUserIdentityId" : "8818ba77-dc14-42e4-98c6-53d76bf1a7fa",
"accepted" : false,
"revokedAt" : null,
"responseReceivedAt" : {
"nano" : 56933000,
"epochSecond" : 1787089042
},
"state" : "Declined",
"toTenantId" : "f1c46320-fee2-4823-ac2a-b0f3e074bb4a"
} ]
Get Invitation By Id
GET /invitations/{id:[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}}
Path parameters
| Parameter | Type | Optional | Description |
|---|---|---|---|
id |
Object |
false |
Response fields
| Path | Type | Optional | Description |
|---|---|---|---|
id |
String |
true |
|
fromIdentityId |
String |
true |
|
toOrganizationId |
String |
true |
|
invitedEmailAddress |
String |
true |
|
invitationHost |
String |
true |
|
expiration |
Object |
true |
|
targetUserIdentityId |
String |
true |
|
accepted |
Boolean |
true |
|
revokedAt |
Object |
true |
|
responseReceivedAt |
Object |
true |
|
state |
String |
true |
|
toTenantId |
String |
true |
Deprecated.. |
Example request
$ curl 'https://gateway.netFoundry.io/identity/v1/invitations/2e03677c-0f49-4cb5-96fc-4ab768753915' -i -X GET
Example response
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 564
{
"id" : "2e03677c-0f49-4cb5-96fc-4ab768753915",
"fromIdentityId" : "bca33e4a-19ef-4df9-9e7e-5224c2748b87",
"toOrganizationId" : "f1c46320-fee2-4823-ac2a-b0f3e074bb4a",
"invitedEmailAddress" : "new.employee-276@acme.com",
"invitationHost" : "cloudziti.io",
"expiration" : {
"nano" : 324127000,
"epochSecond" : 1787693843
},
"targetUserIdentityId" : "c4fc5304-c0af-4a27-9191-ab69b08b360a",
"accepted" : null,
"revokedAt" : null,
"responseReceivedAt" : null,
"state" : "Open",
"toTenantId" : "f1c46320-fee2-4823-ac2a-b0f3e074bb4a"
}
Create Invitation
POST /invitations
Authorization
This endpoint requires:
-
createaction on thisinvitationresource. -
readaction on theuser-identityresource identified by thetargetUserIdentityIdproperty.
Request fields
| Path | Type | Optional | Description |
|---|---|---|---|
toOrganizationId |
String |
true |
|
invitedEmailAddress |
String |
true |
|
invitationUrl |
String |
true |
|
targetUserIdentityId |
String |
true |
Response fields
| Path | Type | Optional | Description |
|---|---|---|---|
id |
String |
true |
|
fromIdentityId |
String |
true |
|
toOrganizationId |
String |
true |
|
invitedEmailAddress |
String |
true |
|
invitationHost |
String |
true |
|
expiration |
Object |
true |
|
targetUserIdentityId |
String |
true |
|
accepted |
Boolean |
true |
|
revokedAt |
Object |
true |
|
responseReceivedAt |
Object |
true |
|
state |
String |
true |
|
toTenantId |
String |
true |
Deprecated.. |
Example request
$ curl 'https://gateway.netFoundry.io/identity/v1/invitations' -i -X POST \
-H 'Content-Type: application/json' \
-d '{
"toOrganizationId" : "f1c46320-fee2-4823-ac2a-b0f3e074bb4a",
"invitedEmailAddress" : "new.employee@acme.com",
"invitationUrl" : "http://acme.cloudziti.io/invitation",
"targetUserIdentityId" : "bd936fd0-6a63-4460-ac09-32d6f05c73ae"
}'
Example response
HTTP/1.1 201 Created
Content-Type: application/json
Content-Length: 565
{
"id" : "8dc0d765-20d9-4e97-8262-d23951a62093",
"fromIdentityId" : "f1a9d605-7ef3-4cf2-a994-cfb9f8c1534f",
"toOrganizationId" : "f1c46320-fee2-4823-ac2a-b0f3e074bb4a",
"invitedEmailAddress" : "new.employee@acme.com",
"invitationHost" : "acme.cloudziti.io",
"expiration" : {
"nano" : 278366000,
"epochSecond" : 1787693842
},
"targetUserIdentityId" : "bd936fd0-6a63-4460-ac09-32d6f05c73ae",
"accepted" : null,
"revokedAt" : null,
"responseReceivedAt" : null,
"state" : "Open",
"toTenantId" : "f1c46320-fee2-4823-ac2a-b0f3e074bb4a"
}
Respond To Invitation
PUT /invitations/{id:[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}}/{action:accept|decline}
Path parameters
| Parameter | Type | Optional | Description |
|---|---|---|---|
id |
Object |
false |
|
action |
String |
false |
Response fields
| Path | Type | Optional | Description |
|---|---|---|---|
id |
String |
true |
|
fromIdentityId |
String |
true |
|
toOrganizationId |
String |
true |
|
invitedEmailAddress |
String |
true |
|
invitationHost |
String |
true |
|
expiration |
Object |
true |
|
targetUserIdentityId |
String |
true |
|
accepted |
Boolean |
true |
|
revokedAt |
Object |
true |
|
responseReceivedAt |
Object |
true |
|
state |
String |
true |
|
toTenantId |
String |
true |
Deprecated.. |
Example request
$ curl 'https://gateway.netFoundry.io/identity/v1/invitations/a17c1c47-c89f-4125-a315-4e7401b202fb/decline' -i -X PUT
Example response
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 625
{
"id" : "a17c1c47-c89f-4125-a315-4e7401b202fb",
"fromIdentityId" : "bca33e4a-19ef-4df9-9e7e-5224c2748b87",
"toOrganizationId" : "f1c46320-fee2-4823-ac2a-b0f3e074bb4a",
"invitedEmailAddress" : "new.employee-268@acme.com",
"invitationHost" : "cloudziti.io",
"expiration" : {
"nano" : 971722000,
"epochSecond" : 1787693842
},
"targetUserIdentityId" : "c56cbf0b-2bc2-4ffc-bbc5-82945791fb32",
"accepted" : false,
"revokedAt" : null,
"responseReceivedAt" : {
"nano" : 984581000,
"epochSecond" : 1787089042
},
"state" : "Declined",
"toTenantId" : "f1c46320-fee2-4823-ac2a-b0f3e074bb4a"
}
Revoke Invitation
PUT /invitations/{id:[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}}/revoke
Path parameters
| Parameter | Type | Optional | Description |
|---|---|---|---|
id |
Object |
false |
Response fields
| Path | Type | Optional | Description |
|---|---|---|---|
id |
String |
true |
|
fromIdentityId |
String |
true |
|
toOrganizationId |
String |
true |
|
invitedEmailAddress |
String |
true |
|
invitationHost |
String |
true |
|
expiration |
Object |
true |
|
targetUserIdentityId |
String |
true |
|
accepted |
Boolean |
true |
|
revokedAt |
Object |
true |
|
responseReceivedAt |
Object |
true |
|
state |
String |
true |
|
toTenantId |
String |
true |
Deprecated.. |
Example request
$ curl 'https://gateway.netFoundry.io/identity/v1/invitations/83baa86b-712a-4138-adf6-2daef3ede0ef/revoke' -i -X PUT
Example response
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 679
{
"id" : "83baa86b-712a-4138-adf6-2daef3ede0ef",
"fromIdentityId" : "bca33e4a-19ef-4df9-9e7e-5224c2748b87",
"toOrganizationId" : "f1c46320-fee2-4823-ac2a-b0f3e074bb4a",
"invitedEmailAddress" : "new.employee-284@acme.com",
"invitationHost" : "cloudziti.io",
"expiration" : {
"nano" : 640952000,
"epochSecond" : 1787693843
},
"targetUserIdentityId" : "e29493f8-3315-4f9c-9a91-135dd03c9e6c",
"accepted" : null,
"revokedAt" : {
"nano" : 650673000,
"epochSecond" : 1787089043
},
"responseReceivedAt" : {
"nano" : 650675000,
"epochSecond" : 1787089043
},
"state" : "Revoked",
"toTenantId" : "f1c46320-fee2-4823-ac2a-b0f3e074bb4a"
}
Support
Create Support Request
POST /nfconsole/support/requests
Authorization
Authorization not required for this request.
Request fields
| Path | Type | Optional | Description |
|---|---|---|---|
name |
String |
true |
|
String |
true |
||
selectedOrganizationId |
String |
true |
|
selectedNetworkId |
String |
true |
|
subject |
String |
true |
|
comment |
String |
true |
|
type |
String |
true |
Must be one of [problem, incident, question, task]. |
priority |
String |
true |
Must be one of [urgent, high, normal, low]. |
severity |
String |
true |
Must be one of [Severity1, Severity2, Severity3]. |
recentErrorMessages |
Array[String] |
true |
Example request
$ curl 'https://gateway.netFoundry.io/identity/v1/nfconsole/support/requests' -i -X POST \
-H 'Content-Type: application/json' \
-d '{
"name" : "Curious George",
"email" : "george@curious-client.com",
"selectedOrganizationId" : null,
"selectedNetworkId" : null,
"subject" : "Sales Contact Request",
"comment" : "This looks great! I'd like a sales rep to contact me.",
"type" : "question",
"priority" : "high",
"severity" : "Severity3",
"recentErrorMessages" : null
}'
Example response
HTTP/1.1 200 OK
Invitation Flow
Get Invitation By Key
GET /invitations/key/{key:\p{Alnum}{36}}
Authorization
Authorization not required for this request.
Path parameters
| Parameter | Type | Optional | Description |
|---|---|---|---|
key |
String |
false |
Response fields
| Path | Type | Optional | Description |
|---|---|---|---|
fromIdentity |
Object |
true |
|
fromIdentity.name |
String |
true |
|
fromIdentity.email |
String |
true |
|
targetIdentity |
Object |
true |
|
targetIdentity.name |
String |
true |
|
targetIdentity.email |
String |
true |
|
invitedEmailAddress |
String |
true |
|
toOrganizationName |
String |
true |
|
toOrganizationLabel |
String |
true |
|
expiration |
Object |
true |
|
accepted |
Boolean |
true |
|
state |
String |
true |
Must be one of [Open, Accepted, Declined, Expired, Revoked]. |
toTenantName |
String |
true |
Deprecated.. |
toTenantLabel |
String |
true |
Deprecated.. |
Example request
$ curl 'https://gateway.netFoundry.io/identity/v1/invitations/key/BycIKWyhXirR7nb6U9x6rD3ObTsXsUY17rCd' -i -X GET
Example response
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 523
{
"fromIdentity" : {
"name" : "John Doe",
"email" : "john.doe@acme.com"
},
"targetIdentity" : {
"name" : "First Last",
"email" : "random-318@acme.com"
},
"invitedEmailAddress" : "new.employee-320@acme.com",
"toOrganizationName" : "ACME International, Inc.",
"toOrganizationLabel" : "ACME-293",
"expiration" : {
"nano" : 472048000,
"epochSecond" : 1787693851
},
"accepted" : null,
"state" : "Open",
"toTenantName" : "ACME International, Inc.",
"toTenantLabel" : "ACME-293"
}
Decline Invitation
PUT /invitations/key/{key:\p{Alnum}{36}}/decline
Authorization
Authorization not required for this request.
Path parameters
| Parameter | Type | Optional | Description |
|---|---|---|---|
key |
String |
false |
Response fields
| Path | Type | Optional | Description |
|---|---|---|---|
fromIdentity |
Object |
true |
|
fromIdentity.name |
String |
true |
|
fromIdentity.email |
String |
true |
|
targetIdentity |
Object |
true |
|
targetIdentity.name |
String |
true |
|
targetIdentity.email |
String |
true |
|
invitedEmailAddress |
String |
true |
|
toOrganizationName |
String |
true |
|
toOrganizationLabel |
String |
true |
|
expiration |
Object |
true |
|
accepted |
Boolean |
true |
|
state |
String |
true |
Must be one of [Open, Accepted, Declined, Expired, Revoked]. |
toTenantName |
String |
true |
Deprecated.. |
toTenantLabel |
String |
true |
Deprecated.. |
Example request
$ curl 'https://gateway.netFoundry.io/identity/v1/invitations/key/bHj4I5Vb6nuzfL8fQXLm5Fbb9M8arjYG4mFi/decline' -i -X PUT
Example response
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 528
{
"fromIdentity" : {
"name" : "John Doe",
"email" : "john.doe@acme.com"
},
"targetIdentity" : {
"name" : "First Last",
"email" : "random-303@acme.com"
},
"invitedEmailAddress" : "new.employee-305@acme.com",
"toOrganizationName" : "ACME International, Inc.",
"toOrganizationLabel" : "ACME-293",
"expiration" : {
"nano" : 435416000,
"epochSecond" : 1787693850
},
"accepted" : false,
"state" : "Declined",
"toTenantName" : "ACME International, Inc.",
"toTenantLabel" : "ACME-293"
}
Initiate Accept Invitation
POST /invitations/key/{key:\p{Alnum}{36}}/accept-initiate
Authorization
Authorization not required for this request.
Path parameters
| Parameter | Type | Optional | Description |
|---|---|---|---|
key |
String |
false |
Request fields
| Path | Type | Optional | Description |
|---|---|---|---|
intermediateReturnUrl |
String |
true |
Response fields
| Path | Type | Optional | Description |
|---|---|---|---|
nfToken |
String |
true |
|
auth0ConnectionIds |
Array[String] |
true |
Example request
$ curl 'https://gateway.netFoundry.io/identity/v1/invitations/key/dFTN8Tp0w5imDi9iMZlOWj5AtzlyvUgSY5ML/accept-initiate' -i -X POST \
-H 'Content-Type: application/json' \
-d '{
"intermediateReturnUrl" : "http://console.nfadmin.netfoundry.io/invitation"
}'
Example response
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 987
{
"nfToken" : "eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJpYXQiOjE3ODcwODkwNTAsImV4cCI6MTc4NzA4OTk1MCwiaXNzIjoiaHR0cDovL2xvY2FsaG9zdDo4MDgwL2lkZW50aXR5L3YxIiwiYXVkIjoiaHR0cDovL2xvY2FsaG9zdDo4MDgwL2lkZW50aXR5L3YxIiwiZmxvdyI6Imludml0YXRpb24iLCJpbnZpdGF0aW9uSWQiOiJjZmUzYWZiYi1mNzYyLTQwODktODg0My04OTI1MGJhOTRmMDgiLCJ0ZW5hbnRMYWJlbCI6IkFDTUUtMjkzIiwiYXV0aDBDb25uZWN0aW9uSWRzIjpbImF1dGgwLW9wYXF1ZS1jb25uZWN0aW9uSWQtMjk0IiwiYXV0aDAtb3BhcXVlLWNvbm5lY3Rpb25JZC0yOTUiXSwicmVkaXJlY3RVcmwiOiJodHRwOi8vY29uc29sZS5uZmFkbWluLm5ldGZvdW5kcnkuaW8vaW52aXRhdGlvbiJ9.nY3IbAxZAZE6fIw7L4v8AW0OVLKn9UGwdyB6eIuI7DbiZH6U0Vojo6tNbdwrVtqGF3xxO5cp9ovARuGqPPGyYncLMuy70q64DAvGDqsKP72xU9IaYHVytrlweh41K4dDNVVFaopB6iZ5U6duUX9pJqusAV1EoAwCaKL4PS3cb4MvnlX-yCme-PrQor1V7T7FUuWF5N8U86rGcFizfp2Wlf8_TSUDPZTweuP_3qN7owHNYR90wXWhcksOkR_dfa2K63_3W5weal0xtSJluSJTJ9JpMx4IFKu-lda7pLScjlP9QHCto1ayxhpoJHSEW1z3ezR3HS85zyTP0OkH0v7P_Q",
"auth0ConnectionIds" : [ "auth0-opaque-connectionId-294", "auth0-opaque-connectionId-295" ]
}
Login Flow
Initiate Interactive Authorization
POST /organizations/authorize-initiate
Authorization
Authorization not required for this request.
Request fields
| Path | Type | Optional | Description |
|---|---|---|---|
realmLabel |
String |
true |
|
label |
String |
true |
|
intermediateReturnUrl |
String |
true |
Response fields
| Path | Type | Optional | Description |
|---|---|---|---|
nfToken |
String |
true |
|
auth0ConnectionIds |
Array[String] |
true |
Example request
$ curl 'https://gateway.netFoundry.io/identity/v1/organizations/authorize-initiate' -i -X POST \
-H 'Content-Type: application/json' \
-d '{
"realmLabel" : "netfoundry",
"label" : "ACME-2",
"intermediateReturnUrl" : "http://console.nfadmin.netfoundry.io/invitation"
}'
Example response
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 902
{
"nfToken" : "eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJpYXQiOjE3ODcwODkwNTIsImV4cCI6MTc4NzA4OTk1MiwiaXNzIjoiaHR0cDovL2xvY2FsaG9zdDo4MDgwL2lkZW50aXR5L3YxIiwiYXVkIjoiaHR0cHM6Ly9uZXRmb3VuZHJ5LXNhbmRib3guYXV0aDAuY29tLyIsImZsb3ciOiJsb2dpbiIsInRlbmFudExhYmVsIjoiQUNNRS0yIiwiYXV0aDBDb25uZWN0aW9uSWRzIjpbImF1dGgwLW9wYXF1ZS1jb25uZWN0aW9uSWQtNCIsImF1dGgwLW9wYXF1ZS1jb25uZWN0aW9uSWQtMyJdLCJyZWRpcmVjdFVybCI6Imh0dHA6Ly9jb25zb2xlLm5mYWRtaW4ubmV0Zm91bmRyeS5pby9pbnZpdGF0aW9uIn0.c6zzVSSraFX4FzrKzpAuE1VdWAc3LulWT9Hs9siA-Wb71cF_z8f7-c5n7w2g-zKD0OJzAjTNm2UKXyvXTJCq9bmyssD7x9nsV8I3byvNT6ujYIafBjhcqyRROaEqbsgbWtj0dFPyxhLbZW_1_hH-MLO-qg0rVgX5agQijTjpRstDSix32nyY4HRtpCrZV0_GxmMKxIH32hcvJ-MWF1Pne3J_Mmyk-AxJgTrqO4the635_20VymsKYdqf-9OdXlnYG8cDzlo8bwpsOUjTG3c65bDDWw76FiLg5lwygAoJ6VXeacT7VlP9Ni1gtZDaY_kTXbgshF58GTvf1A_yKzJNyw",
"auth0ConnectionIds" : [ "auth0-opaque-connectionId-4", "auth0-opaque-connectionId-3" ]
}
Identity Preference Flow
Find Identity Preferences
GET /identity-preferences
Response fields
Standard paging response where content field is list of following objects:
| Path | Type | Optional | Description |
|---|---|---|---|
id |
String |
true |
|
userIdentityId |
String |
true |
|
preferences |
Object |
true |
|
createdBy |
String |
true |
|
createdAt |
Object |
true |
|
updatedAt |
Object |
true |
|
deletedBy |
String |
true |
|
deletedAt |
Object |
true |
Example request
$ curl 'https://gateway.netFoundry.io/identity/v1/identity-preferences' -i -X GET
Example response
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 1283
[ {
"id" : "76a60407-e41f-4c3f-b874-c651b7498eaa",
"userIdentityId" : "d4267bed-6e4e-448d-a476-380e1ef0d02d",
"preferences" : {
"hello" : "world"
},
"createdBy" : "d4267bed-6e4e-448d-a476-380e1ef0d02d",
"createdAt" : {
"nano" : 817958000,
"epochSecond" : 1787089035
},
"updatedAt" : {
"nano" : 817958000,
"epochSecond" : 1787089035
},
"deletedBy" : null,
"deletedAt" : null
}, {
"id" : "81ca80e4-2f54-4091-87ba-e9800148c525",
"userIdentityId" : "edb2b6b9-74e7-4271-95d3-c16f33232551",
"preferences" : {
"first" : "my first preference."
},
"createdBy" : "edb2b6b9-74e7-4271-95d3-c16f33232551",
"createdAt" : {
"nano" : 496405000,
"epochSecond" : 1787089035
},
"updatedAt" : {
"nano" : 496405000,
"epochSecond" : 1787089035
},
"deletedBy" : null,
"deletedAt" : null
}, {
"id" : "e1efa710-2e69-46a1-a35d-b723d2e4abc4",
"userIdentityId" : "39109f9b-5fdf-4ea1-95e4-46a424c13fdb",
"preferences" : {
"first" : "my first preference."
},
"createdBy" : "39109f9b-5fdf-4ea1-95e4-46a424c13fdb",
"createdAt" : {
"nano" : 344084000,
"epochSecond" : 1787089035
},
"updatedAt" : {
"nano" : 344084000,
"epochSecond" : 1787089035
},
"deletedBy" : null,
"deletedAt" : null
} ]
Get Identity Preference
GET /identity-preferences/{id:[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}}
Path parameters
| Parameter | Type | Optional | Description |
|---|---|---|---|
id |
Object |
false |
Response fields
| Path | Type | Optional | Description |
|---|---|---|---|
id |
String |
true |
|
userIdentityId |
String |
true |
|
preferences |
Object |
true |
|
createdBy |
String |
true |
|
createdAt |
Object |
true |
|
updatedAt |
Object |
true |
|
deletedBy |
String |
true |
|
deletedAt |
Object |
true |
Example request
$ curl 'https://gateway.netFoundry.io/identity/v1/identity-preferences/839d9691-d788-43d5-9f28-1386f60fbd07' -i -X GET
Example response
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 415
{
"id" : "839d9691-d788-43d5-9f28-1386f60fbd07",
"userIdentityId" : "eaac83a5-56e1-4ea5-b622-8ae1affcb6f0",
"preferences" : {
"hello" : "world"
},
"createdBy" : "eaac83a5-56e1-4ea5-b622-8ae1affcb6f0",
"createdAt" : {
"nano" : 930696000,
"epochSecond" : 1787089037
},
"updatedAt" : {
"nano" : 930696000,
"epochSecond" : 1787089037
},
"deletedBy" : null,
"deletedAt" : null
}
Upsert Identity Preference
POST /identity-preferences
Authorization
This endpoint requires no specific permission, only an authenticated client.
Request fields
| Path | Type | Optional | Description |
|---|---|---|---|
userIdentityId |
String |
true |
|
preferences |
Object |
true |
Response fields
| Path | Type | Optional | Description |
|---|---|---|---|
id |
String |
true |
|
userIdentityId |
String |
true |
|
preferences |
Object |
true |
|
createdBy |
String |
true |
|
createdAt |
Object |
true |
|
updatedAt |
Object |
true |
|
deletedBy |
String |
true |
|
deletedAt |
Object |
true |
Example request
$ curl 'https://gateway.netFoundry.io/identity/v1/identity-preferences' -i -X POST \
-H 'Content-Type: application/json' \
-d '{
"userIdentityId" : null,
"preferences" : {
"first" : "my first preference."
}
}'
Example response
HTTP/1.1 201 Created
Content-Type: application/json
Content-Length: 430
{
"id" : "4504adfe-3987-4c78-8b9b-dd4bd43b64b9",
"userIdentityId" : "e532b7e1-7a38-488d-bfd5-f57e772a9ef5",
"preferences" : {
"first" : "my first preference."
},
"createdBy" : "e532b7e1-7a38-488d-bfd5-f57e772a9ef5",
"createdAt" : {
"nano" : 455834000,
"epochSecond" : 1787089036
},
"updatedAt" : {
"nano" : 455834000,
"epochSecond" : 1787089036
},
"deletedBy" : null,
"deletedAt" : null
}
Upsert Identity Preference By Id
PUT /identity-preferences/{id:[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}}
Authorization
This endpoint requires:
-
createaction on thisidentity-preferenceresource. -
updateaction on thisidentity-preferenceresource.
Path parameters
| Parameter | Type | Optional | Description |
|---|---|---|---|
id |
Object |
false |
Request fields
| Path | Type | Optional | Description |
|---|---|---|---|
userIdentityId |
String |
true |
|
preferences |
Object |
true |
Response fields
| Path | Type | Optional | Description |
|---|---|---|---|
id |
String |
true |
|
userIdentityId |
String |
true |
|
preferences |
Object |
true |
|
createdBy |
String |
true |
|
createdAt |
Object |
true |
|
updatedAt |
Object |
true |
|
deletedBy |
String |
true |
|
deletedAt |
Object |
true |
Example request
$ curl 'https://gateway.netFoundry.io/identity/v1/identity-preferences/41c18015-51a3-42dc-b13c-2595cc916ccf' -i -X PUT \
-H 'Content-Type: application/json' \
-d '{
"preferences" : {
"updated" : "my second preference."
}
}'
Example response
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 433
{
"id" : "41c18015-51a3-42dc-b13c-2595cc916ccf",
"userIdentityId" : "5b9df72e-47fe-4d5e-a967-1211834c5d3c",
"preferences" : {
"updated" : "my second preference."
},
"createdBy" : "5b9df72e-47fe-4d5e-a967-1211834c5d3c",
"createdAt" : {
"nano" : 422273000,
"epochSecond" : 1787089039
},
"updatedAt" : {
"nano" : 454484000,
"epochSecond" : 1787089039
},
"deletedBy" : null,
"deletedAt" : null
}
Delete Identity Preference By Id
DELETE /identity-preferences/{id:[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}}
Path parameters
| Parameter | Type | Optional | Description |
|---|---|---|---|
id |
Object |
false |
Response fields
| Path | Type | Optional | Description |
|---|---|---|---|
id |
String |
true |
|
userIdentityId |
String |
true |
|
preferences |
Object |
true |
|
createdBy |
String |
true |
|
createdAt |
Object |
true |
|
updatedAt |
Object |
true |
|
deletedBy |
String |
true |
|
deletedAt |
Object |
true |
Example request
$ curl 'https://gateway.netFoundry.io/identity/v1/identity-preferences/fc57108b-11a4-4ad8-b445-6af0b3ad2745' -i -X DELETE
Example response
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 505
{
"id" : "fc57108b-11a4-4ad8-b445-6af0b3ad2745",
"userIdentityId" : "5fdc20e2-a86a-481e-b4b8-67c5e6281abd",
"preferences" : {
"hello" : "world"
},
"createdBy" : "5fdc20e2-a86a-481e-b4b8-67c5e6281abd",
"createdAt" : {
"nano" : 139329000,
"epochSecond" : 1787089037
},
"updatedAt" : {
"nano" : 168877000,
"epochSecond" : 1787089037
},
"deletedBy" : "f90635fc-db4a-4514-9f2d-42a540f4a5fd",
"deletedAt" : {
"nano" : 168000000,
"epochSecond" : 1787089037
}
}
Organization Preference Flow
Find Organization Preferences
GET /organization-preferences
Response fields
Standard paging response where content field is list of following objects:
| Path | Type | Optional | Description |
|---|---|---|---|
id |
String |
true |
|
organizationId |
String |
true |
|
preferences |
Object |
true |
|
createdBy |
String |
true |
|
createdAt |
Object |
true |
|
updatedAt |
Object |
true |
|
deletedBy |
String |
true |
|
deletedAt |
Object |
true |
Example request
$ curl 'https://gateway.netFoundry.io/identity/v1/organization-preferences' -i -X GET
Example response
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 1268
[ {
"id" : "0bb8eab3-72bf-4348-b2af-dfac34da36ec",
"organizationId" : "cc7b0026-7af8-4dee-881b-377659680363",
"preferences" : {
"hello" : "world"
},
"createdBy" : "fa81979f-8c90-46e6-8cce-9bf309feb85c",
"createdAt" : {
"nano" : 563493000,
"epochSecond" : 1787089059
},
"updatedAt" : {
"nano" : 563493000,
"epochSecond" : 1787089059
},
"deletedBy" : null,
"deletedAt" : null
}, {
"id" : "62657107-93c3-4e39-8edf-17e771a95a60",
"organizationId" : "933dfce0-25e3-45b6-9431-876d4fa54ffe",
"preferences" : {
"first" : "my first preference."
},
"createdBy" : "21e1c597-44db-4f2e-be8f-63da87fe9691",
"createdAt" : {
"nano" : 687808000,
"epochSecond" : 1787089059
},
"updatedAt" : {
"nano" : 687808000,
"epochSecond" : 1787089059
},
"deletedBy" : null,
"deletedAt" : null
}, {
"id" : "6f20ee98-8f0c-4dde-8f4d-63b6d158b41a",
"organizationId" : "6bd9beb3-26c5-4dee-88a8-470407dcb5b2",
"preferences" : {
"hello" : "world"
},
"createdBy" : "1f6b65f1-29da-4a22-86ec-eaeb1f69a4e1",
"createdAt" : {
"nano" : 879364000,
"epochSecond" : 1787089059
},
"updatedAt" : {
"nano" : 879364000,
"epochSecond" : 1787089059
},
"deletedBy" : null,
"deletedAt" : null
} ]
Get Organization Preference
GET /organization-preferences/{id:[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}}
Path parameters
| Parameter | Type | Optional | Description |
|---|---|---|---|
id |
Object |
false |
Response fields
| Path | Type | Optional | Description |
|---|---|---|---|
id |
String |
true |
|
organizationId |
String |
true |
|
preferences |
Object |
true |
|
createdBy |
String |
true |
|
createdAt |
Object |
true |
|
updatedAt |
Object |
true |
|
deletedBy |
String |
true |
|
deletedAt |
Object |
true |
Example request
$ curl 'https://gateway.netFoundry.io/identity/v1/organization-preferences/6f20ee98-8f0c-4dde-8f4d-63b6d158b41a' -i -X GET
Example response
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 415
{
"id" : "6f20ee98-8f0c-4dde-8f4d-63b6d158b41a",
"organizationId" : "6bd9beb3-26c5-4dee-88a8-470407dcb5b2",
"preferences" : {
"hello" : "world"
},
"createdBy" : "1f6b65f1-29da-4a22-86ec-eaeb1f69a4e1",
"createdAt" : {
"nano" : 879364000,
"epochSecond" : 1787089059
},
"updatedAt" : {
"nano" : 879364000,
"epochSecond" : 1787089059
},
"deletedBy" : null,
"deletedAt" : null
}
Create Organization Preference
POST /organization-preferences
Request fields
| Path | Type | Optional | Description |
|---|---|---|---|
organizationId |
String |
true |
|
preferences |
Object |
true |
Response fields
| Path | Type | Optional | Description |
|---|---|---|---|
id |
String |
true |
|
organizationId |
String |
true |
|
preferences |
Object |
true |
|
createdBy |
String |
true |
|
createdAt |
Object |
true |
|
updatedAt |
Object |
true |
|
deletedBy |
String |
true |
|
deletedAt |
Object |
true |
Example request
$ curl 'https://gateway.netFoundry.io/identity/v1/organization-preferences' -i -X POST \
-H 'Content-Type: application/json' \
-d '{
"organizationId" : "933dfce0-25e3-45b6-9431-876d4fa54ffe",
"preferences" : {
"first" : "my first preference."
}
}'
Example response
HTTP/1.1 201 Created
Content-Type: application/json
Content-Length: 430
{
"id" : "62657107-93c3-4e39-8edf-17e771a95a60",
"organizationId" : "933dfce0-25e3-45b6-9431-876d4fa54ffe",
"preferences" : {
"first" : "my first preference."
},
"createdBy" : "21e1c597-44db-4f2e-be8f-63da87fe9691",
"createdAt" : {
"nano" : 687808000,
"epochSecond" : 1787089059
},
"updatedAt" : {
"nano" : 687808000,
"epochSecond" : 1787089059
},
"deletedBy" : null,
"deletedAt" : null
}
Update Organization Preference
PUT /organization-preferences/{id}
Path parameters
| Parameter | Type | Optional | Description |
|---|---|---|---|
id |
Object |
false |
Request fields
| Path | Type | Optional | Description |
|---|---|---|---|
preferences |
Object |
true |
Response fields
| Path | Type | Optional | Description |
|---|---|---|---|
id |
String |
true |
|
organizationId |
String |
true |
|
preferences |
Object |
true |
|
createdBy |
String |
true |
|
createdAt |
Object |
true |
|
updatedAt |
Object |
true |
|
deletedBy |
String |
true |
|
deletedAt |
Object |
true |
Example request
$ curl 'https://gateway.netFoundry.io/identity/v1/organization-preferences/223e0b9b-6cf5-4490-98b7-2594fa1b12a0' -i -X PUT \
-H 'Content-Type: application/json' \
-d '{
"preferences" : {
"updated" : "my second preference."
}
}'
Example response
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 433
{
"id" : "223e0b9b-6cf5-4490-98b7-2594fa1b12a0",
"organizationId" : "ac1922de-f2f5-4678-b389-def2f0edf2ce",
"preferences" : {
"updated" : "my second preference."
},
"createdBy" : "39a3680c-c672-4b78-8463-250964b536b2",
"createdAt" : {
"nano" : 142001000,
"epochSecond" : 1787089060
},
"updatedAt" : {
"nano" : 175007000,
"epochSecond" : 1787089060
},
"deletedBy" : null,
"deletedAt" : null
}
Delete Organization Preference
DELETE /organization-preferences/{id}
Path parameters
| Parameter | Type | Optional | Description |
|---|---|---|---|
id |
Object |
false |
Response fields
| Path | Type | Optional | Description |
|---|---|---|---|
id |
String |
true |
|
organizationId |
String |
true |
|
preferences |
Object |
true |
|
createdBy |
String |
true |
|
createdAt |
Object |
true |
|
updatedAt |
Object |
true |
|
deletedBy |
String |
true |
|
deletedAt |
Object |
true |
Example request
$ curl 'https://gateway.netFoundry.io/identity/v1/organization-preferences/a664d69d-4cb2-4ece-8e68-038f4a50dc0d' -i -X DELETE
Example response
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 505
{
"id" : "a664d69d-4cb2-4ece-8e68-038f4a50dc0d",
"organizationId" : "1f39e6e2-bb6f-4616-8ffb-2fc4d2bc1d38",
"preferences" : {
"hello" : "world"
},
"createdBy" : "006fb514-48de-4518-8917-45ccffe85ea3",
"createdAt" : {
"nano" : 767565000,
"epochSecond" : 1787089059
},
"updatedAt" : {
"nano" : 795726000,
"epochSecond" : 1787089059
},
"deletedBy" : "7063b960-a457-4f01-b494-60efb37e5a6b",
"deletedAt" : {
"nano" : 795000000,
"epochSecond" : 1787089059
}
}