diff --git a/.schema/api.swagger.json b/.schema/api.swagger.json
index af2acdce0247..225f2a6e6d3e 100755
--- a/.schema/api.swagger.json
+++ b/.schema/api.swagger.json
@@ -402,9 +402,7 @@
"https"
],
"tags": [
- "common",
- "public",
- "admin"
+ "public"
],
"operationId": "getSchema",
"parameters": [
@@ -494,7 +492,7 @@
},
"/self-service/errors": {
"get": {
- "description": "This endpoint returns the error associated with a user-facing self service errors.\n\nWhen accessing this endpoint through ORY Kratos' Public API, ensure that cookies are set as they are required for CSRF to work. To prevent\ntoken scanning attacks, the public endpoint does not return 404 status codes.\n\nThis endpoint supports stub values to help you implement the error UI:\n\n`?error=stub:500` - returns a stub 500 (Internal Server Error) error.\n\nMore information can be found at [ORY Kratos User User Facing Error Documentation](https://www.ory.sh/docs/kratos/self-service/flows/user-facing-errors).",
+ "description": "This endpoint returns the error associated with a user-facing self service errors.\n\nThis endpoint supports stub values to help you implement the error UI:\n\n`?error=stub:500` - returns a stub 500 (Internal Server Error) error.\n\nMore information can be found at [ORY Kratos User User Facing Error Documentation](https://www.ory.sh/docs/kratos/self-service/flows/user-facing-errors).",
"produces": [
"application/json"
],
@@ -503,7 +501,6 @@
"https"
],
"tags": [
- "common",
"public",
"admin"
],
@@ -624,7 +621,6 @@
"https"
],
"tags": [
- "common",
"public",
"admin"
],
@@ -814,7 +810,6 @@
"https"
],
"tags": [
- "common",
"public",
"admin"
],
@@ -986,7 +981,6 @@
"https"
],
"tags": [
- "common",
"public",
"admin"
],
@@ -1165,7 +1159,6 @@
"https"
],
"tags": [
- "common",
"public",
"admin"
],
@@ -1411,7 +1404,6 @@
"https"
],
"tags": [
- "common",
"public",
"admin"
],
diff --git a/docs/docs/reference/api.mdx b/docs/docs/reference/api.mdx
index 33708fead919..f8a935b4fcaa 100644
--- a/docs/docs/reference/api.mdx
+++ b/docs/docs/reference/api.mdx
@@ -3,8 +3,6 @@ title: REST API
id: api
---
-
-
Welcome to the ORY Kratos HTTP API documentation!
import Tabs from '@theme/Tabs'
@@ -12,21 +10,24 @@ import TabItem from '@theme/TabItem'
:::info
-You are viewing REST API documentation. This documentation is auto-generated from a swagger specification which
-itself is generated from annotations in the source code of the project. It is possible that this documentation includes
-bugs and that code samples are incomplete or wrong.
+You are viewing REST API documentation. This documentation is auto-generated
+from a swagger specification which itself is generated from annotations in the
+source code of the project. It is possible that this documentation includes bugs
+and that code samples are incomplete or wrong.
If you find issues in the respective documentation, please do not edit the
-Markdown files directly (as they are generated) but raise an issue on the project's GitHub presence instead. This documentation
-will improve over time with your help! If you have ideas how to improve this part of the documentation, feel free to
-share them in a [GitHub issue](https://github.com/ory/docs/issues/new) any time.
+Markdown files directly (as they are generated) but raise an issue on the
+project's GitHub presence instead. This documentation will improve over time
+with your help! If you have ideas how to improve this part of the documentation,
+feel free to share them in a
+[GitHub issue](https://github.com/ory/docs/issues/new) any time.
:::
## Authentication
-* API Key (sessionToken)
- - Parameter Name: **Authorization**, in: header.
+- API Key (sessionToken)
+ - Parameter Name: **Authorization**, in: header.
@@ -42,14 +43,15 @@ Accept: application/json
```
-This endpoint returns a 200 status code when the HTTP server is up running.
-This status does currently not include checks whether the database connection is working.
+This endpoint returns a 200 status code when the HTTP server is up running. This
+status does currently not include checks whether the database connection is
+working.
If the service supports TLS Edge Termination, this endpoint does not require the
`X-Forwarded-Proto` header to be set.
-Be aware that if you are running multiple nodes of this service, the health status will never
-refer to the cluster state, only to a single instance.
+Be aware that if you are running multiple nodes of this service, the health
+status will never refer to the cluster state, only to a single instance.
#### Responses
@@ -57,10 +59,10 @@ refer to the cluster state, only to a single instance.
##### Overview
-|Status|Meaning|Description|Schema|
-|---|---|---|---|
-|200|[OK](https://tools.ietf.org/html/rfc7231#section-6.3.1)|healthStatus|[healthStatus](#schemahealthstatus)|
-|500|[Internal Server Error](https://tools.ietf.org/html/rfc7231#section-6.6.1)|genericError|[genericError](#schemagenericerror)|
+| Status | Meaning | Description | Schema |
+| ------ | -------------------------------------------------------------------------- | ------------ | ----------------------------------- |
+| 200 | [OK](https://tools.ietf.org/html/rfc7231#section-6.3.1) | healthStatus | [healthStatus](#schemahealthstatus) |
+| 500 | [Internal Server Error](https://tools.ietf.org/html/rfc7231#section-6.6.1) | genericError | [genericError](#schemagenericerror) |
##### Examples
@@ -72,9 +74,7 @@ refer to the cluster state, only to a single instance.
}
```
-
+
#### Code samples
@@ -100,7 +100,7 @@ import (
)
func main() {
- headers := map[string][]string{
+ headers := map[string][]string{
"Accept": []string{"application/json"},
}
@@ -120,20 +120,20 @@ func main() {
```javascript
-const fetch = require('node-fetch');
+const fetch = require('node-fetch')
const headers = {
- 'Accept': 'application/json'
+ Accept: 'application/json'
}
fetch('/health/alive', {
method: 'GET',
headers
})
-.then(r => r.json())
-.then((body) => {
+ .then((r) => r.json())
+ .then((body) => {
console.log(body)
-})
+ })
```
@@ -210,14 +210,14 @@ Accept: application/json
```
-This endpoint returns a 200 status code when the HTTP server is up running and the environment dependencies (e.g.
-the database) are responsive as well.
+This endpoint returns a 200 status code when the HTTP server is up running and
+the environment dependencies (e.g. the database) are responsive as well.
If the service supports TLS Edge Termination, this endpoint does not require the
`X-Forwarded-Proto` header to be set.
-Be aware that if you are running multiple nodes of this service, the health status will never
-refer to the cluster state, only to a single instance.
+Be aware that if you are running multiple nodes of this service, the health
+status will never refer to the cluster state, only to a single instance.
#### Responses
@@ -225,10 +225,10 @@ refer to the cluster state, only to a single instance.
##### Overview
-|Status|Meaning|Description|Schema|
-|---|---|---|---|
-|200|[OK](https://tools.ietf.org/html/rfc7231#section-6.3.1)|healthStatus|[healthStatus](#schemahealthstatus)|
-|503|[Service Unavailable](https://tools.ietf.org/html/rfc7231#section-6.6.4)|healthNotReadyStatus|[healthNotReadyStatus](#schemahealthnotreadystatus)|
+| Status | Meaning | Description | Schema |
+| ------ | ------------------------------------------------------------------------ | -------------------- | --------------------------------------------------- |
+| 200 | [OK](https://tools.ietf.org/html/rfc7231#section-6.3.1) | healthStatus | [healthStatus](#schemahealthstatus) |
+| 503 | [Service Unavailable](https://tools.ietf.org/html/rfc7231#section-6.6.4) | healthNotReadyStatus | [healthNotReadyStatus](#schemahealthnotreadystatus) |
##### Examples
@@ -240,9 +240,7 @@ refer to the cluster state, only to a single instance.
}
```
-
+
#### Code samples
@@ -268,7 +266,7 @@ import (
)
func main() {
- headers := map[string][]string{
+ headers := map[string][]string{
"Accept": []string{"application/json"},
}
@@ -288,20 +286,20 @@ func main() {
```javascript
-const fetch = require('node-fetch');
+const fetch = require('node-fetch')
const headers = {
- 'Accept': 'application/json'
+ Accept: 'application/json'
}
fetch('/health/ready', {
method: 'GET',
headers
})
-.then(r => r.json())
-.then((body) => {
+ .then((r) => r.json())
+ .then((body) => {
console.log(body)
-})
+ })
```
@@ -384,16 +382,17 @@ Accept: application/json
Lists all identities. Does not support search at the moment.
-Learn how identities work in [ORY Kratos' User And Identity Model Documentation](https://www.ory.sh/docs/next/kratos/concepts/identity-user-model).
+Learn how identities work in
+[ORY Kratos' User And Identity Model Documentation](https://www.ory.sh/docs/next/kratos/concepts/identity-user-model).
#### Parameters
-|Parameter|In|Type|Required|Description|
-|---|---|---|---|---|
-|per_page|query|integer(int64)|false|Items per Page|
-|page|query|integer(int64)|false|Pagination Page|
+| Parameter | In | Type | Required | Description |
+| --------- | ----- | -------------- | -------- | --------------- |
+| per_page | query | integer(int64) | false | Items per Page |
+| page | query | integer(int64) | false | Pagination Page |
##### Detailed descriptions
@@ -407,10 +406,10 @@ This is the number of items per page.
##### Overview
-|Status|Meaning|Description|Schema|
-|---|---|---|---|
-|200|[OK](https://tools.ietf.org/html/rfc7231#section-6.3.1)|A list of identities.|Inline|
-|500|[Internal Server Error](https://tools.ietf.org/html/rfc7231#section-6.6.1)|genericError|[genericError](#schemagenericerror)|
+| Status | Meaning | Description | Schema |
+| ------ | -------------------------------------------------------------------------- | --------------------- | ----------------------------------- |
+| 200 | [OK](https://tools.ietf.org/html/rfc7231#section-6.3.1) | A list of identities. | Inline |
+| 500 | [Internal Server Error](https://tools.ietf.org/html/rfc7231#section-6.6.1) | genericError | [genericError](#schemagenericerror) |
@@ -418,24 +417,24 @@ This is the number of items per page.
Status Code **200**
-|Name|Type|Required|Restrictions|Description|
-|---|---|---|---|---|
-|*anonymous*|[[Identity](#schemaidentity)]|false|none|none|
-|» id|[UUID](#schemauuid)(uuid4)|true|none|none|
-|» recovery_addresses|[[RecoveryAddress](#schemarecoveryaddress)]|false|none|RecoveryAddresses contains all the addresses that can be used to recover an identity.|
-|»» id|[UUID](#schemauuid)(uuid4)|true|none|none|
-|»» value|string|true|none|none|
-|»» via|[RecoveryAddressType](#schemarecoveryaddresstype)|true|none|none|
-|» schema_id|string|true|none|SchemaID is the ID of the JSON Schema to be used for validating the identity's traits.|
-|» schema_url|string|false|none|SchemaURL is the URL of the endpoint where the identity's traits schema can be fetched from.
format: url|
-|» traits|[Traits](#schematraits)|true|none|none|
-|» verifiable_addresses|[[VerifiableAddress](#schemaverifiableaddress)]|false|none|VerifiableAddresses contains all the addresses that can be verified by the user.|
-|»» id|[UUID](#schemauuid)(uuid4)|true|none|none|
-|»» status|[VerifiableAddressStatus](#schemaverifiableaddressstatus)|true|none|none|
-|»» value|string|true|none|none|
-|»» verified|boolean|true|none|none|
-|»» verified_at|[NullTime](#schemanulltime)(date-time)|false|none|none|
-|»» via|[VerifiableAddressType](#schemaverifiableaddresstype)|true|none|none|
+| Name | Type | Required | Restrictions | Description |
+| ---------------------- | --------------------------------------------------------- | -------- | ------------ | --------------------------------------------------------------------------------------------------------------- |
+| _anonymous_ | [[Identity](#schemaidentity)] | false | none | none |
+| » id | [UUID](#schemauuid)(uuid4) | true | none | none |
+| » recovery_addresses | [[RecoveryAddress](#schemarecoveryaddress)] | false | none | RecoveryAddresses contains all the addresses that can be used to recover an identity. |
+| »» id | [UUID](#schemauuid)(uuid4) | true | none | none |
+| »» value | string | true | none | none |
+| »» via | [RecoveryAddressType](#schemarecoveryaddresstype) | true | none | none |
+| » schema_id | string | true | none | SchemaID is the ID of the JSON Schema to be used for validating the identity's traits. |
+| » schema_url | string | false | none | SchemaURL is the URL of the endpoint where the identity's traits schema can be fetched from.
format: url |
+| » traits | [Traits](#schematraits) | true | none | none |
+| » verifiable_addresses | [[VerifiableAddress](#schemaverifiableaddress)] | false | none | VerifiableAddresses contains all the addresses that can be verified by the user. |
+| »» id | [UUID](#schemauuid)(uuid4) | true | none | none |
+| »» status | [VerifiableAddressStatus](#schemaverifiableaddressstatus) | true | none | none |
+| »» value | string | true | none | none |
+| »» verified | boolean | true | none | none |
+| »» verified_at | [NullTime](#schemanulltime)(date-time) | false | none | none |
+| »» via | [VerifiableAddressType](#schemaverifiableaddresstype) | true | none | none |
##### Examples
@@ -469,9 +468,7 @@ Status Code **200**
]
```
-
+
#### Code samples
@@ -497,7 +494,7 @@ import (
)
func main() {
- headers := map[string][]string{
+ headers := map[string][]string{
"Accept": []string{"application/json"},
}
@@ -517,20 +514,20 @@ func main() {
```javascript
-const fetch = require('node-fetch');
+const fetch = require('node-fetch')
const headers = {
- 'Accept': 'application/json'
+ Accept: 'application/json'
}
fetch('/identities', {
method: 'GET',
headers
})
-.then(r => r.json())
-.then((body) => {
+ .then((r) => r.json())
+ .then((body) => {
console.log(body)
-})
+ })
```
@@ -608,10 +605,12 @@ Accept: application/json
```
-This endpoint creates an identity. It is NOT possible to set an identity's credentials (password, ...)
-using this method! A way to achieve that will be introduced in the future.
+This endpoint creates an identity. It is NOT possible to set an identity's
+credentials (password, ...) using this method! A way to achieve that will be
+introduced in the future.
-Learn how identities work in [ORY Kratos' User And Identity Model Documentation](https://www.ory.sh/docs/next/kratos/concepts/identity-user-model).
+Learn how identities work in
+[ORY Kratos' User And Identity Model Documentation](https://www.ory.sh/docs/next/kratos/concepts/identity-user-model).
#### Request body
@@ -626,9 +625,9 @@ Learn how identities work in [ORY Kratos' User And Identity Model Documentation]
#### Parameters
-|Parameter|In|Type|Required|Description|
-|---|---|---|---|---|
-|body|body|[CreateIdentity](#schemacreateidentity)|false|none|
+| Parameter | In | Type | Required | Description |
+| --------- | ---- | --------------------------------------- | -------- | ----------- |
+| body | body | [CreateIdentity](#schemacreateidentity) | false | none |
#### Responses
@@ -636,11 +635,11 @@ Learn how identities work in [ORY Kratos' User And Identity Model Documentation]
##### Overview
-|Status|Meaning|Description|Schema|
-|---|---|---|---|
-|201|[Created](https://tools.ietf.org/html/rfc7231#section-6.3.2)|A single identity.|[Identity](#schemaidentity)|
-|400|[Bad Request](https://tools.ietf.org/html/rfc7231#section-6.5.1)|genericError|[genericError](#schemagenericerror)|
-|500|[Internal Server Error](https://tools.ietf.org/html/rfc7231#section-6.6.1)|genericError|[genericError](#schemagenericerror)|
+| Status | Meaning | Description | Schema |
+| ------ | -------------------------------------------------------------------------- | ------------------ | ----------------------------------- |
+| 201 | [Created](https://tools.ietf.org/html/rfc7231#section-6.3.2) | A single identity. | [Identity](#schemaidentity) |
+| 400 | [Bad Request](https://tools.ietf.org/html/rfc7231#section-6.5.1) | genericError | [genericError](#schemagenericerror) |
+| 500 | [Internal Server Error](https://tools.ietf.org/html/rfc7231#section-6.6.1) | genericError | [genericError](#schemagenericerror) |
##### Examples
@@ -672,9 +671,7 @@ Learn how identities work in [ORY Kratos' User And Identity Model Documentation]
}
```
-
+
#### Code samples
@@ -700,7 +697,7 @@ import (
)
func main() {
- headers := map[string][]string{
+ headers := map[string][]string{
"Content-Type": []string{"application/json"},
"Accept": []string{"application/json"},
}
@@ -817,15 +814,16 @@ Accept: application/json
```
-Learn how identities work in [ORY Kratos' User And Identity Model Documentation](https://www.ory.sh/docs/next/kratos/concepts/identity-user-model).
+Learn how identities work in
+[ORY Kratos' User And Identity Model Documentation](https://www.ory.sh/docs/next/kratos/concepts/identity-user-model).
#### Parameters
-|Parameter|In|Type|Required|Description|
-|---|---|---|---|---|
-|id|path|string|true|ID must be set to the ID of identity you want to get|
+| Parameter | In | Type | Required | Description |
+| --------- | ---- | ------ | -------- | ---------------------------------------------------- |
+| id | path | string | true | ID must be set to the ID of identity you want to get |
#### Responses
@@ -833,11 +831,11 @@ Learn how identities work in [ORY Kratos' User And Identity Model Documentation]
##### Overview
-|Status|Meaning|Description|Schema|
-|---|---|---|---|
-|200|[OK](https://tools.ietf.org/html/rfc7231#section-6.3.1)|A single identity.|[Identity](#schemaidentity)|
-|400|[Bad Request](https://tools.ietf.org/html/rfc7231#section-6.5.1)|genericError|[genericError](#schemagenericerror)|
-|500|[Internal Server Error](https://tools.ietf.org/html/rfc7231#section-6.6.1)|genericError|[genericError](#schemagenericerror)|
+| Status | Meaning | Description | Schema |
+| ------ | -------------------------------------------------------------------------- | ------------------ | ----------------------------------- |
+| 200 | [OK](https://tools.ietf.org/html/rfc7231#section-6.3.1) | A single identity. | [Identity](#schemaidentity) |
+| 400 | [Bad Request](https://tools.ietf.org/html/rfc7231#section-6.5.1) | genericError | [genericError](#schemagenericerror) |
+| 500 | [Internal Server Error](https://tools.ietf.org/html/rfc7231#section-6.6.1) | genericError | [genericError](#schemagenericerror) |
##### Examples
@@ -869,9 +867,7 @@ Learn how identities work in [ORY Kratos' User And Identity Model Documentation]
}
```
-
+
#### Code samples
@@ -897,7 +893,7 @@ import (
)
func main() {
- headers := map[string][]string{
+ headers := map[string][]string{
"Accept": []string{"application/json"},
}
@@ -917,20 +913,20 @@ func main() {
```javascript
-const fetch = require('node-fetch');
+const fetch = require('node-fetch')
const headers = {
- 'Accept': 'application/json'
+ Accept: 'application/json'
}
fetch('/identities/{id}', {
method: 'GET',
headers
})
-.then(r => r.json())
-.then((body) => {
+ .then((r) => r.json())
+ .then((body) => {
console.log(body)
-})
+ })
```
@@ -1008,12 +1004,15 @@ Accept: application/json
```
-This endpoint updates an identity. It is NOT possible to set an identity's credentials (password, ...)
-using this method! A way to achieve that will be introduced in the future.
+This endpoint updates an identity. It is NOT possible to set an identity's
+credentials (password, ...) using this method! A way to achieve that will be
+introduced in the future.
-The full identity payload (except credentials) is expected. This endpoint does not support patching.
+The full identity payload (except credentials) is expected. This endpoint does
+not support patching.
-Learn how identities work in [ORY Kratos' User And Identity Model Documentation](https://www.ory.sh/docs/next/kratos/concepts/identity-user-model).
+Learn how identities work in
+[ORY Kratos' User And Identity Model Documentation](https://www.ory.sh/docs/next/kratos/concepts/identity-user-model).
#### Request body
@@ -1028,10 +1027,10 @@ Learn how identities work in [ORY Kratos' User And Identity Model Documentation]
#### Parameters
-|Parameter|In|Type|Required|Description|
-|---|---|---|---|---|
-|id|path|string|true|ID must be set to the ID of identity you want to update|
-|body|body|[UpdateIdentity](#schemaupdateidentity)|false|none|
+| Parameter | In | Type | Required | Description |
+| --------- | ---- | --------------------------------------- | -------- | ------------------------------------------------------- |
+| id | path | string | true | ID must be set to the ID of identity you want to update |
+| body | body | [UpdateIdentity](#schemaupdateidentity) | false | none |
#### Responses
@@ -1039,12 +1038,12 @@ Learn how identities work in [ORY Kratos' User And Identity Model Documentation]
##### Overview
-|Status|Meaning|Description|Schema|
-|---|---|---|---|
-|200|[OK](https://tools.ietf.org/html/rfc7231#section-6.3.1)|A single identity.|[Identity](#schemaidentity)|
-|400|[Bad Request](https://tools.ietf.org/html/rfc7231#section-6.5.1)|genericError|[genericError](#schemagenericerror)|
-|404|[Not Found](https://tools.ietf.org/html/rfc7231#section-6.5.4)|genericError|[genericError](#schemagenericerror)|
-|500|[Internal Server Error](https://tools.ietf.org/html/rfc7231#section-6.6.1)|genericError|[genericError](#schemagenericerror)|
+| Status | Meaning | Description | Schema |
+| ------ | -------------------------------------------------------------------------- | ------------------ | ----------------------------------- |
+| 200 | [OK](https://tools.ietf.org/html/rfc7231#section-6.3.1) | A single identity. | [Identity](#schemaidentity) |
+| 400 | [Bad Request](https://tools.ietf.org/html/rfc7231#section-6.5.1) | genericError | [genericError](#schemagenericerror) |
+| 404 | [Not Found](https://tools.ietf.org/html/rfc7231#section-6.5.4) | genericError | [genericError](#schemagenericerror) |
+| 500 | [Internal Server Error](https://tools.ietf.org/html/rfc7231#section-6.6.1) | genericError | [genericError](#schemagenericerror) |
##### Examples
@@ -1076,9 +1075,7 @@ Learn how identities work in [ORY Kratos' User And Identity Model Documentation]
}
```
-
+
#### Code samples
@@ -1104,7 +1101,7 @@ import (
)
func main() {
- headers := map[string][]string{
+ headers := map[string][]string{
"Content-Type": []string{"application/json"},
"Accept": []string{"application/json"},
}
@@ -1221,19 +1218,21 @@ Accept: application/json
```
-Calling this endpoint irrecoverably and permanently deletes the identity given its ID. This action can not be undone.
-This endpoint returns 204 when the identity was deleted or when the identity was not found, in which case it is
+Calling this endpoint irrecoverably and permanently deletes the identity given
+its ID. This action can not be undone. This endpoint returns 204 when the
+identity was deleted or when the identity was not found, in which case it is
assumed that is has been deleted already.
-Learn how identities work in [ORY Kratos' User And Identity Model Documentation](https://www.ory.sh/docs/next/kratos/concepts/identity-user-model).
+Learn how identities work in
+[ORY Kratos' User And Identity Model Documentation](https://www.ory.sh/docs/next/kratos/concepts/identity-user-model).
#### Parameters
-|Parameter|In|Type|Required|Description|
-|---|---|---|---|---|
-|id|path|string|true|ID is the identity's ID.|
+| Parameter | In | Type | Required | Description |
+| --------- | ---- | ------ | -------- | ------------------------ |
+| id | path | string | true | ID is the identity's ID. |
#### Responses
@@ -1241,11 +1240,11 @@ Learn how identities work in [ORY Kratos' User And Identity Model Documentation]
##### Overview
-|Status|Meaning|Description|Schema|
-|---|---|---|---|
-|204|[No Content](https://tools.ietf.org/html/rfc7231#section-6.3.5)|Empty responses are sent when, for example, resources are deleted. The HTTP status code for empty responses is
-typically 201.|None|
-|500|[Internal Server Error](https://tools.ietf.org/html/rfc7231#section-6.6.1)|genericError|[genericError](#schemagenericerror)|
+| Status | Meaning | Description | Schema |
+| -------------- | -------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------- | ----------------------------------- |
+| 204 | [No Content](https://tools.ietf.org/html/rfc7231#section-6.3.5) | Empty responses are sent when, for example, resources are deleted. The HTTP status code for empty responses is |
+| typically 201. | None |
+| 500 | [Internal Server Error](https://tools.ietf.org/html/rfc7231#section-6.6.1) | genericError | [genericError](#schemagenericerror) |
##### Examples
@@ -1265,9 +1264,7 @@ typically 201.|None|
}
```
-
+
#### Code samples
@@ -1293,7 +1290,7 @@ import (
)
func main() {
- headers := map[string][]string{
+ headers := map[string][]string{
"Accept": []string{"application/json"},
}
@@ -1313,20 +1310,20 @@ func main() {
```javascript
-const fetch = require('node-fetch');
+const fetch = require('node-fetch')
const headers = {
- 'Accept': 'application/json'
+ Accept: 'application/json'
}
fetch('/identities/{id}', {
method: 'DELETE',
headers
})
-.then(r => r.json())
-.then((body) => {
+ .then((r) => r.json())
+ .then((body) => {
console.log(body)
-})
+ })
```
@@ -1396,6 +1393,7 @@ p JSON.parse(result)
### Get snapshot metrics from the Hydra service. If you're using k8s, you can then add annotations to
+
your deployment like so:
```
@@ -1412,19 +1410,19 @@ prometheus.io/path: "/metrics/prometheus"
#### Responses
-
+
##### Overview
-|Status|Meaning|Description|Schema|
-|---|---|---|---|
-|200|[OK](https://tools.ietf.org/html/rfc7231#section-6.3.1)|Empty responses are sent when, for example, resources are deleted. The HTTP status code for empty responses is
-typically 201.|None|
+| Status | Meaning | Description | Schema |
+| -------------- | ------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------- | ------ |
+| 200 | [OK](https://tools.ietf.org/html/rfc7231#section-6.3.1) | Empty responses are sent when, for example, resources are deleted. The HTTP status code for empty responses is |
+| typically 201. | None |
-
+
#### Code samples
@@ -1467,15 +1465,15 @@ func main() {
```javascript
-const fetch = require('node-fetch');
+const fetch = require('node-fetch')
fetch('/metrics/prometheus', {
method: 'GET'
})
-.then(r => r.json())
-.then((body) => {
+ .then((r) => r.json())
+ .then((body) => {
console.log(body)
-})
+ })
```
@@ -1544,8 +1542,8 @@ Accept: application/json
```
-This endpoint creates a recovery link which should be given to the user in order for them to recover
-(or activate) their account.
+This endpoint creates a recovery link which should be given to the user in order
+for them to recover (or activate) their account.
#### Request body
@@ -1560,9 +1558,9 @@ This endpoint creates a recovery link which should be given to the user in order
#### Parameters
-|Parameter|In|Type|Required|Description|
-|---|---|---|---|---|
-|body|body|[CreateRecoveryLink](#schemacreaterecoverylink)|false|none|
+| Parameter | In | Type | Required | Description |
+| --------- | ---- | ----------------------------------------------- | -------- | ----------- |
+| body | body | [CreateRecoveryLink](#schemacreaterecoverylink) | false | none |
#### Responses
@@ -1570,12 +1568,12 @@ This endpoint creates a recovery link which should be given to the user in order
##### Overview
-|Status|Meaning|Description|Schema|
-|---|---|---|---|
-|200|[OK](https://tools.ietf.org/html/rfc7231#section-6.3.1)|recoveryLink|[recoveryLink](#schemarecoverylink)|
-|400|[Bad Request](https://tools.ietf.org/html/rfc7231#section-6.5.1)|genericError|[genericError](#schemagenericerror)|
-|404|[Not Found](https://tools.ietf.org/html/rfc7231#section-6.5.4)|genericError|[genericError](#schemagenericerror)|
-|500|[Internal Server Error](https://tools.ietf.org/html/rfc7231#section-6.6.1)|genericError|[genericError](#schemagenericerror)|
+| Status | Meaning | Description | Schema |
+| ------ | -------------------------------------------------------------------------- | ------------ | ----------------------------------- |
+| 200 | [OK](https://tools.ietf.org/html/rfc7231#section-6.3.1) | recoveryLink | [recoveryLink](#schemarecoverylink) |
+| 400 | [Bad Request](https://tools.ietf.org/html/rfc7231#section-6.5.1) | genericError | [genericError](#schemagenericerror) |
+| 404 | [Not Found](https://tools.ietf.org/html/rfc7231#section-6.5.4) | genericError | [genericError](#schemagenericerror) |
+| 500 | [Internal Server Error](https://tools.ietf.org/html/rfc7231#section-6.6.1) | genericError | [genericError](#schemagenericerror) |
##### Examples
@@ -1588,9 +1586,7 @@ This endpoint creates a recovery link which should be given to the user in order
}
```
-
+
#### Code samples
@@ -1616,7 +1612,7 @@ import (
)
func main() {
- headers := map[string][]string{
+ headers := map[string][]string{
"Content-Type": []string{"application/json"},
"Accept": []string{"application/json"},
}
@@ -1743,9 +1739,9 @@ Get a Traits Schema Definition
#### Parameters
-|Parameter|In|Type|Required|Description|
-|---|---|---|---|---|
-|id|path|string|true|ID must be set to the ID of schema you want to get|
+| Parameter | In | Type | Required | Description |
+| --------- | ---- | ------ | -------- | -------------------------------------------------- |
+| id | path | string | true | ID must be set to the ID of schema you want to get |
#### Responses
@@ -1753,11 +1749,11 @@ Get a Traits Schema Definition
##### Overview
-|Status|Meaning|Description|Schema|
-|---|---|---|---|
-|200|[OK](https://tools.ietf.org/html/rfc7231#section-6.3.1)|The raw identity traits schema|Inline|
-|404|[Not Found](https://tools.ietf.org/html/rfc7231#section-6.5.4)|genericError|[genericError](#schemagenericerror)|
-|500|[Internal Server Error](https://tools.ietf.org/html/rfc7231#section-6.6.1)|genericError|[genericError](#schemagenericerror)|
+| Status | Meaning | Description | Schema |
+| ------ | -------------------------------------------------------------------------- | ------------------------------ | ----------------------------------- |
+| 200 | [OK](https://tools.ietf.org/html/rfc7231#section-6.3.1) | The raw identity traits schema | Inline |
+| 404 | [Not Found](https://tools.ietf.org/html/rfc7231#section-6.5.4) | genericError | [genericError](#schemagenericerror) |
+| 500 | [Internal Server Error](https://tools.ietf.org/html/rfc7231#section-6.6.1) | genericError | [genericError](#schemagenericerror) |
@@ -1771,9 +1767,7 @@ Get a Traits Schema Definition
{}
```
-
+
#### Code samples
@@ -1799,7 +1793,7 @@ import (
)
func main() {
- headers := map[string][]string{
+ headers := map[string][]string{
"Accept": []string{"application/json"},
}
@@ -1819,20 +1813,20 @@ func main() {
```javascript
-const fetch = require('node-fetch');
+const fetch = require('node-fetch')
const headers = {
- 'Accept': 'application/json'
+ Accept: 'application/json'
}
fetch('/schemas/{id}', {
method: 'GET',
headers
})
-.then(r => r.json())
-.then((body) => {
+ .then((r) => r.json())
+ .then((body) => {
console.log(body)
-})
+ })
```
@@ -1909,24 +1903,27 @@ Accept: application/json
```
-This endpoint returns the error associated with a user-facing self service errors.
+This endpoint returns the error associated with a user-facing self service
+errors.
-When accessing this endpoint through ORY Kratos' Public API, ensure that cookies are set as they are required for CSRF to work. To prevent
-token scanning attacks, the public endpoint does not return 404 status codes.
+When accessing this endpoint through ORY Kratos' Public API, ensure that cookies
+are set as they are required for CSRF to work. To prevent token scanning
+attacks, the public endpoint does not return 404 status codes.
This endpoint supports stub values to help you implement the error UI:
`?error=stub:500` - returns a stub 500 (Internal Server Error) error.
-More information can be found at [ORY Kratos User User Facing Error Documentation](https://www.ory.sh/docs/kratos/self-service/flows/user-facing-errors).
+More information can be found at
+[ORY Kratos User User Facing Error Documentation](https://www.ory.sh/docs/kratos/self-service/flows/user-facing-errors).
#### Parameters
-|Parameter|In|Type|Required|Description|
-|---|---|---|---|---|
-|error|query|string|true|Error is the container's ID|
+| Parameter | In | Type | Required | Description |
+| --------- | ----- | ------ | -------- | --------------------------- |
+| error | query | string | true | Error is the container's ID |
#### Responses
@@ -1934,12 +1931,12 @@ More information can be found at [ORY Kratos User User Facing Error Documentatio
##### Overview
-|Status|Meaning|Description|Schema|
-|---|---|---|---|
-|200|[OK](https://tools.ietf.org/html/rfc7231#section-6.3.1)|User-facing error response|[errorContainer](#schemaerrorcontainer)|
-|403|[Forbidden](https://tools.ietf.org/html/rfc7231#section-6.5.3)|genericError|[genericError](#schemagenericerror)|
-|404|[Not Found](https://tools.ietf.org/html/rfc7231#section-6.5.4)|genericError|[genericError](#schemagenericerror)|
-|500|[Internal Server Error](https://tools.ietf.org/html/rfc7231#section-6.6.1)|genericError|[genericError](#schemagenericerror)|
+| Status | Meaning | Description | Schema |
+| ------ | -------------------------------------------------------------------------- | -------------------------- | --------------------------------------- |
+| 200 | [OK](https://tools.ietf.org/html/rfc7231#section-6.3.1) | User-facing error response | [errorContainer](#schemaerrorcontainer) |
+| 403 | [Forbidden](https://tools.ietf.org/html/rfc7231#section-6.5.3) | genericError | [genericError](#schemagenericerror) |
+| 404 | [Not Found](https://tools.ietf.org/html/rfc7231#section-6.5.4) | genericError | [genericError](#schemagenericerror) |
+| 500 | [Internal Server Error](https://tools.ietf.org/html/rfc7231#section-6.6.1) | genericError | [genericError](#schemagenericerror) |
##### Examples
@@ -1952,9 +1949,7 @@ More information can be found at [ORY Kratos User User Facing Error Documentatio
}
```
-
+
#### Code samples
@@ -1980,7 +1975,7 @@ import (
)
func main() {
- headers := map[string][]string{
+ headers := map[string][]string{
"Accept": []string{"application/json"},
}
@@ -2000,20 +1995,20 @@ func main() {
```javascript
-const fetch = require('node-fetch');
+const fetch = require('node-fetch')
const headers = {
- 'Accept': 'application/json'
+ Accept: 'application/json'
}
fetch('/self-service/errors?error=string', {
method: 'GET',
headers
})
-.then(r => r.json())
-.then((body) => {
+ .then((r) => r.json())
+ .then((body) => {
console.log(body)
-})
+ })
```
@@ -2092,17 +2087,19 @@ Accept: application/json
```
-This endpoint returns a login flow's context with, for example, error details and other information.
+This endpoint returns a login flow's context with, for example, error details
+and other information.
-More information can be found at [ORY Kratos User Login and User Registration Documentation](https://www.ory.sh/docs/next/kratos/self-service/flows/user-login-user-registration).
+More information can be found at
+[ORY Kratos User Login and User Registration Documentation](https://www.ory.sh/docs/next/kratos/self-service/flows/user-login-user-registration).
#### Parameters
-|Parameter|In|Type|Required|Description|
-|---|---|---|---|---|
-|id|query|string|true|The Login Flow ID|
+| Parameter | In | Type | Required | Description |
+| --------- | ----- | ------ | -------- | ----------------- |
+| id | query | string | true | The Login Flow ID |
##### Detailed descriptions
@@ -2117,13 +2114,13 @@ application (e.g. `/login?flow=abcde`).
##### Overview
-|Status|Meaning|Description|Schema|
-|---|---|---|---|
-|200|[OK](https://tools.ietf.org/html/rfc7231#section-6.3.1)|loginFlow|[loginFlow](#schemaloginflow)|
-|403|[Forbidden](https://tools.ietf.org/html/rfc7231#section-6.5.3)|genericError|[genericError](#schemagenericerror)|
-|404|[Not Found](https://tools.ietf.org/html/rfc7231#section-6.5.4)|genericError|[genericError](#schemagenericerror)|
-|410|[Gone](https://tools.ietf.org/html/rfc7231#section-6.5.9)|genericError|[genericError](#schemagenericerror)|
-|500|[Internal Server Error](https://tools.ietf.org/html/rfc7231#section-6.6.1)|genericError|[genericError](#schemagenericerror)|
+| Status | Meaning | Description | Schema |
+| ------ | -------------------------------------------------------------------------- | ------------ | ----------------------------------- |
+| 200 | [OK](https://tools.ietf.org/html/rfc7231#section-6.3.1) | loginFlow | [loginFlow](#schemaloginflow) |
+| 403 | [Forbidden](https://tools.ietf.org/html/rfc7231#section-6.5.3) | genericError | [genericError](#schemagenericerror) |
+| 404 | [Not Found](https://tools.ietf.org/html/rfc7231#section-6.5.4) | genericError | [genericError](#schemagenericerror) |
+| 410 | [Gone](https://tools.ietf.org/html/rfc7231#section-6.5.9) | genericError | [genericError](#schemagenericerror) |
+| 500 | [Internal Server Error](https://tools.ietf.org/html/rfc7231#section-6.6.1) | genericError | [genericError](#schemagenericerror) |
##### Examples
@@ -2253,9 +2250,7 @@ application (e.g. `/login?flow=abcde`).
}
```
-
+
#### Code samples
@@ -2281,7 +2276,7 @@ import (
)
func main() {
- headers := map[string][]string{
+ headers := map[string][]string{
"Accept": []string{"application/json"},
}
@@ -2301,20 +2296,20 @@ func main() {
```javascript
-const fetch = require('node-fetch');
+const fetch = require('node-fetch')
const headers = {
- 'Accept': 'application/json'
+ Accept: 'application/json'
}
fetch('/self-service/login/flows?id=string', {
method: 'GET',
headers
})
-.then(r => r.json())
-.then((body) => {
+ .then((r) => r.json())
+ .then((body) => {
console.log(body)
-})
+ })
```
@@ -2393,24 +2388,26 @@ Accept: application/json
```
-This endpoint returns a recovery flow's context with, for example, error details and other information.
+This endpoint returns a recovery flow's context with, for example, error details
+and other information.
-More information can be found at [ORY Kratos Account Recovery Documentation](../self-service/flows/account-recovery.mdx).
+More information can be found at
+[ORY Kratos Account Recovery Documentation](../self-service/flows/account-recovery.mdx).
#### Parameters
-|Parameter|In|Type|Required|Description|
-|---|---|---|---|---|
-|id|query|string|true|The Flow ID|
+| Parameter | In | Type | Required | Description |
+| --------- | ----- | ------ | -------- | ----------- |
+| id | query | string | true | The Flow ID |
##### Detailed descriptions
**id**: The Flow ID
-The value for this parameter comes from `request` URL Query parameter sent to your
-application (e.g. `/recovery?flow=abcde`).
+The value for this parameter comes from `request` URL Query parameter sent to
+your application (e.g. `/recovery?flow=abcde`).
#### Responses
@@ -2418,12 +2415,12 @@ application (e.g. `/recovery?flow=abcde`).
##### Overview
-|Status|Meaning|Description|Schema|
-|---|---|---|---|
-|200|[OK](https://tools.ietf.org/html/rfc7231#section-6.3.1)|recoveryFlow|[recoveryFlow](#schemarecoveryflow)|
-|404|[Not Found](https://tools.ietf.org/html/rfc7231#section-6.5.4)|genericError|[genericError](#schemagenericerror)|
-|410|[Gone](https://tools.ietf.org/html/rfc7231#section-6.5.9)|genericError|[genericError](#schemagenericerror)|
-|500|[Internal Server Error](https://tools.ietf.org/html/rfc7231#section-6.6.1)|genericError|[genericError](#schemagenericerror)|
+| Status | Meaning | Description | Schema |
+| ------ | -------------------------------------------------------------------------- | ------------ | ----------------------------------- |
+| 200 | [OK](https://tools.ietf.org/html/rfc7231#section-6.3.1) | recoveryFlow | [recoveryFlow](#schemarecoveryflow) |
+| 404 | [Not Found](https://tools.ietf.org/html/rfc7231#section-6.5.4) | genericError | [genericError](#schemagenericerror) |
+| 410 | [Gone](https://tools.ietf.org/html/rfc7231#section-6.5.9) | genericError | [genericError](#schemagenericerror) |
+| 500 | [Internal Server Error](https://tools.ietf.org/html/rfc7231#section-6.6.1) | genericError | [genericError](#schemagenericerror) |
##### Examples
@@ -2517,9 +2514,7 @@ application (e.g. `/recovery?flow=abcde`).
}
```
-
+
#### Code samples
@@ -2545,7 +2540,7 @@ import (
)
func main() {
- headers := map[string][]string{
+ headers := map[string][]string{
"Accept": []string{"application/json"},
}
@@ -2565,20 +2560,20 @@ func main() {
```javascript
-const fetch = require('node-fetch');
+const fetch = require('node-fetch')
const headers = {
- 'Accept': 'application/json'
+ Accept: 'application/json'
}
fetch('/self-service/recovery/flows?id=string', {
method: 'GET',
headers
})
-.then(r => r.json())
-.then((body) => {
+ .then((r) => r.json())
+ .then((body) => {
console.log(body)
-})
+ })
```
@@ -2657,17 +2652,19 @@ Accept: application/json
```
-This endpoint returns a registration flow's context with, for example, error details and other information.
+This endpoint returns a registration flow's context with, for example, error
+details and other information.
-More information can be found at [ORY Kratos User Login and User Registration Documentation](https://www.ory.sh/docs/next/kratos/self-service/flows/user-login-user-registration).
+More information can be found at
+[ORY Kratos User Login and User Registration Documentation](https://www.ory.sh/docs/next/kratos/self-service/flows/user-login-user-registration).
#### Parameters
-|Parameter|In|Type|Required|Description|
-|---|---|---|---|---|
-|id|query|string|true|The Registration Flow ID|
+| Parameter | In | Type | Required | Description |
+| --------- | ----- | ------ | -------- | ------------------------ |
+| id | query | string | true | The Registration Flow ID |
##### Detailed descriptions
@@ -2682,13 +2679,13 @@ application (e.g. `/registration?flow=abcde`).
##### Overview
-|Status|Meaning|Description|Schema|
-|---|---|---|---|
-|200|[OK](https://tools.ietf.org/html/rfc7231#section-6.3.1)|registrationFlow|[registrationFlow](#schemaregistrationflow)|
-|403|[Forbidden](https://tools.ietf.org/html/rfc7231#section-6.5.3)|genericError|[genericError](#schemagenericerror)|
-|404|[Not Found](https://tools.ietf.org/html/rfc7231#section-6.5.4)|genericError|[genericError](#schemagenericerror)|
-|410|[Gone](https://tools.ietf.org/html/rfc7231#section-6.5.9)|genericError|[genericError](#schemagenericerror)|
-|500|[Internal Server Error](https://tools.ietf.org/html/rfc7231#section-6.6.1)|genericError|[genericError](#schemagenericerror)|
+| Status | Meaning | Description | Schema |
+| ------ | -------------------------------------------------------------------------- | ---------------- | ------------------------------------------- |
+| 200 | [OK](https://tools.ietf.org/html/rfc7231#section-6.3.1) | registrationFlow | [registrationFlow](#schemaregistrationflow) |
+| 403 | [Forbidden](https://tools.ietf.org/html/rfc7231#section-6.5.3) | genericError | [genericError](#schemagenericerror) |
+| 404 | [Not Found](https://tools.ietf.org/html/rfc7231#section-6.5.4) | genericError | [genericError](#schemagenericerror) |
+| 410 | [Gone](https://tools.ietf.org/html/rfc7231#section-6.5.9) | genericError | [genericError](#schemagenericerror) |
+| 500 | [Internal Server Error](https://tools.ietf.org/html/rfc7231#section-6.6.1) | genericError | [genericError](#schemagenericerror) |
##### Examples
@@ -2817,9 +2814,7 @@ application (e.g. `/registration?flow=abcde`).
}
```
-
+
#### Code samples
@@ -2845,7 +2840,7 @@ import (
)
func main() {
- headers := map[string][]string{
+ headers := map[string][]string{
"Accept": []string{"application/json"},
}
@@ -2865,20 +2860,20 @@ func main() {
```javascript
-const fetch = require('node-fetch');
+const fetch = require('node-fetch')
const headers = {
- 'Accept': 'application/json'
+ Accept: 'application/json'
}
fetch('/self-service/registration/flows?id=string', {
method: 'GET',
headers
})
-.then(r => r.json())
-.then((body) => {
+ .then((r) => r.json())
+ .then((body) => {
console.log(body)
-})
+ })
```
@@ -2957,21 +2952,24 @@ Accept: application/json
```
-When accessing this endpoint through ORY Kratos' Public API you must ensure that either the ORY Kratos Session Cookie
-or the ORY Kratos Session Token are set. The public endpoint does not return 404 status codes
-but instead 403 or 500 to improve data privacy.
+When accessing this endpoint through ORY Kratos' Public API you must ensure that
+either the ORY Kratos Session Cookie or the ORY Kratos Session Token are set.
+The public endpoint does not return 404 status codes but instead 403 or 500 to
+improve data privacy.
-You can access this endpoint without credentials when using ORY Kratos' Admin API.
+You can access this endpoint without credentials when using ORY Kratos' Admin
+API.
-More information can be found at [ORY Kratos User Settings & Profile Management Documentation](../self-service/flows/user-settings).
+More information can be found at
+[ORY Kratos User Settings & Profile Management Documentation](../self-service/flows/user-settings).
#### Parameters
-|Parameter|In|Type|Required|Description|
-|---|---|---|---|---|
-|id|query|string|true|ID is the Settings Flow ID|
+| Parameter | In | Type | Required | Description |
+| --------- | ----- | ------ | -------- | -------------------------- |
+| id | query | string | true | ID is the Settings Flow ID |
##### Detailed descriptions
@@ -2986,13 +2984,13 @@ application (e.g. `/settings?flow=abcde`).
##### Overview
-|Status|Meaning|Description|Schema|
-|---|---|---|---|
-|200|[OK](https://tools.ietf.org/html/rfc7231#section-6.3.1)|settingsFlow|[settingsFlow](#schemasettingsflow)|
-|403|[Forbidden](https://tools.ietf.org/html/rfc7231#section-6.5.3)|genericError|[genericError](#schemagenericerror)|
-|404|[Not Found](https://tools.ietf.org/html/rfc7231#section-6.5.4)|genericError|[genericError](#schemagenericerror)|
-|410|[Gone](https://tools.ietf.org/html/rfc7231#section-6.5.9)|genericError|[genericError](#schemagenericerror)|
-|500|[Internal Server Error](https://tools.ietf.org/html/rfc7231#section-6.6.1)|genericError|[genericError](#schemagenericerror)|
+| Status | Meaning | Description | Schema |
+| ------ | -------------------------------------------------------------------------- | ------------ | ----------------------------------- |
+| 200 | [OK](https://tools.ietf.org/html/rfc7231#section-6.3.1) | settingsFlow | [settingsFlow](#schemasettingsflow) |
+| 403 | [Forbidden](https://tools.ietf.org/html/rfc7231#section-6.5.3) | genericError | [genericError](#schemagenericerror) |
+| 404 | [Not Found](https://tools.ietf.org/html/rfc7231#section-6.5.4) | genericError | [genericError](#schemagenericerror) |
+| 410 | [Gone](https://tools.ietf.org/html/rfc7231#section-6.5.9) | genericError | [genericError](#schemagenericerror) |
+| 500 | [Internal Server Error](https://tools.ietf.org/html/rfc7231#section-6.6.1) | genericError | [genericError](#schemagenericerror) |
##### Examples
@@ -3109,9 +3107,7 @@ application (e.g. `/settings?flow=abcde`).
}
```
-
+
#### Code samples
@@ -3137,7 +3133,7 @@ import (
)
func main() {
- headers := map[string][]string{
+ headers := map[string][]string{
"Accept": []string{"application/json"},
}
@@ -3157,20 +3153,20 @@ func main() {
```javascript
-const fetch = require('node-fetch');
+const fetch = require('node-fetch')
const headers = {
- 'Accept': 'application/json'
+ Accept: 'application/json'
}
fetch('/self-service/settings/flows?id=string', {
method: 'GET',
headers
})
-.then(r => r.json())
-.then((body) => {
+ .then((r) => r.json())
+ .then((body) => {
console.log(body)
-})
+ })
```
@@ -3249,24 +3245,26 @@ Accept: application/json
```
-This endpoint returns a verification flow's context with, for example, error details and other information.
+This endpoint returns a verification flow's context with, for example, error
+details and other information.
-More information can be found at [ORY Kratos Email and Phone Verification Documentation](https://www.ory.sh/docs/kratos/selfservice/flows/verify-email-account-activation).
+More information can be found at
+[ORY Kratos Email and Phone Verification Documentation](https://www.ory.sh/docs/kratos/selfservice/flows/verify-email-account-activation).
#### Parameters
-|Parameter|In|Type|Required|Description|
-|---|---|---|---|---|
-|id|query|string|true|The Flow ID|
+| Parameter | In | Type | Required | Description |
+| --------- | ----- | ------ | -------- | ----------- |
+| id | query | string | true | The Flow ID |
##### Detailed descriptions
**id**: The Flow ID
-The value for this parameter comes from `request` URL Query parameter sent to your
-application (e.g. `/verification?flow=abcde`).
+The value for this parameter comes from `request` URL Query parameter sent to
+your application (e.g. `/verification?flow=abcde`).
#### Responses
@@ -3274,12 +3272,12 @@ application (e.g. `/verification?flow=abcde`).
##### Overview
-|Status|Meaning|Description|Schema|
-|---|---|---|---|
-|200|[OK](https://tools.ietf.org/html/rfc7231#section-6.3.1)|verificationFlow|[verificationFlow](#schemaverificationflow)|
-|403|[Forbidden](https://tools.ietf.org/html/rfc7231#section-6.5.3)|genericError|[genericError](#schemagenericerror)|
-|404|[Not Found](https://tools.ietf.org/html/rfc7231#section-6.5.4)|genericError|[genericError](#schemagenericerror)|
-|500|[Internal Server Error](https://tools.ietf.org/html/rfc7231#section-6.6.1)|genericError|[genericError](#schemagenericerror)|
+| Status | Meaning | Description | Schema |
+| ------ | -------------------------------------------------------------------------- | ---------------- | ------------------------------------------- |
+| 200 | [OK](https://tools.ietf.org/html/rfc7231#section-6.3.1) | verificationFlow | [verificationFlow](#schemaverificationflow) |
+| 403 | [Forbidden](https://tools.ietf.org/html/rfc7231#section-6.5.3) | genericError | [genericError](#schemagenericerror) |
+| 404 | [Not Found](https://tools.ietf.org/html/rfc7231#section-6.5.4) | genericError | [genericError](#schemagenericerror) |
+| 500 | [Internal Server Error](https://tools.ietf.org/html/rfc7231#section-6.6.1) | genericError | [genericError](#schemagenericerror) |
##### Examples
@@ -3373,9 +3371,7 @@ application (e.g. `/verification?flow=abcde`).
}
```
-
+
#### Code samples
@@ -3401,7 +3397,7 @@ import (
)
func main() {
- headers := map[string][]string{
+ headers := map[string][]string{
"Accept": []string{"application/json"},
}
@@ -3421,20 +3417,20 @@ func main() {
```javascript
-const fetch = require('node-fetch');
+const fetch = require('node-fetch')
const headers = {
- 'Accept': 'application/json'
+ Accept: 'application/json'
}
fetch('/self-service/verification/flows?id=string', {
method: 'GET',
headers
})
-.then(r => r.json())
-.then((body) => {
+ .then((r) => r.json())
+ .then((body) => {
console.log(body)
-})
+ })
```
@@ -3519,12 +3515,14 @@ Accept: application/json
This endpoint initializes a logout flow.
-> This endpoint is NOT INTENDED for API clients and only works
-with browsers (Chrome, Firefox, ...).
+> This endpoint is NOT INTENDED for API clients and only works with browsers
+> (Chrome, Firefox, ...).
-On successful logout, the browser will be redirected (HTTP 302 Found) to `urls.default_return_to`.
+On successful logout, the browser will be redirected (HTTP 302 Found) to
+`urls.default_return_to`.
-More information can be found at [ORY Kratos User Logout Documentation](https://www.ory.sh/docs/next/kratos/self-service/flows/user-logout).
+More information can be found at
+[ORY Kratos User Logout Documentation](https://www.ory.sh/docs/next/kratos/self-service/flows/user-logout).
#### Responses
@@ -3532,11 +3530,11 @@ More information can be found at [ORY Kratos User Logout Documentation](https://
##### Overview
-|Status|Meaning|Description|Schema|
-|---|---|---|---|
-|302|[Found](https://tools.ietf.org/html/rfc7231#section-6.4.3)|Empty responses are sent when, for example, resources are deleted. The HTTP status code for empty responses is
-typically 201.|None|
-|500|[Internal Server Error](https://tools.ietf.org/html/rfc7231#section-6.6.1)|genericError|[genericError](#schemagenericerror)|
+| Status | Meaning | Description | Schema |
+| -------------- | -------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------- | ----------------------------------- |
+| 302 | [Found](https://tools.ietf.org/html/rfc7231#section-6.4.3) | Empty responses are sent when, for example, resources are deleted. The HTTP status code for empty responses is |
+| typically 201. | None |
+| 500 | [Internal Server Error](https://tools.ietf.org/html/rfc7231#section-6.6.1) | genericError | [genericError](#schemagenericerror) |
##### Examples
@@ -3556,9 +3554,7 @@ typically 201.|None|
}
```
-
+
#### Code samples
@@ -3584,7 +3580,7 @@ import (
)
func main() {
- headers := map[string][]string{
+ headers := map[string][]string{
"Accept": []string{"application/json"},
}
@@ -3604,20 +3600,20 @@ func main() {
```javascript
-const fetch = require('node-fetch');
+const fetch = require('node-fetch')
const headers = {
- 'Accept': 'application/json'
+ Accept: 'application/json'
}
fetch('/self-service/browser/flows/logout', {
method: 'GET',
headers
})
-.then(r => r.json())
-.then((body) => {
+ .then((r) => r.json())
+ .then((body) => {
console.log(body)
-})
+ })
```
@@ -3694,12 +3690,14 @@ Accept: application/json
```
-This endpoint completes a browser-based settings flow. This is usually achieved by POSTing data to this
-endpoint.
+This endpoint completes a browser-based settings flow. This is usually achieved
+by POSTing data to this endpoint.
-> This endpoint is NOT INTENDED for API clients and only works with browsers (Chrome, Firefox, ...) and HTML Forms.
+> This endpoint is NOT INTENDED for API clients and only works with browsers
+> (Chrome, Firefox, ...) and HTML Forms.
-More information can be found at [ORY Kratos User Settings & Profile Management Documentation](../self-service/flows/user-settings).
+More information can be found at
+[ORY Kratos User Settings & Profile Management Documentation](../self-service/flows/user-settings).
#### Responses
@@ -3707,11 +3705,11 @@ More information can be found at [ORY Kratos User Settings & Profile Management
##### Overview
-|Status|Meaning|Description|Schema|
-|---|---|---|---|
-|302|[Found](https://tools.ietf.org/html/rfc7231#section-6.4.3)|Empty responses are sent when, for example, resources are deleted. The HTTP status code for empty responses is
-typically 201.|None|
-|500|[Internal Server Error](https://tools.ietf.org/html/rfc7231#section-6.6.1)|genericError|[genericError](#schemagenericerror)|
+| Status | Meaning | Description | Schema |
+| -------------- | -------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------- | ----------------------------------- |
+| 302 | [Found](https://tools.ietf.org/html/rfc7231#section-6.4.3) | Empty responses are sent when, for example, resources are deleted. The HTTP status code for empty responses is |
+| typically 201. | None |
+| 500 | [Internal Server Error](https://tools.ietf.org/html/rfc7231#section-6.6.1) | genericError | [genericError](#schemagenericerror) |
##### Examples
@@ -3731,9 +3729,7 @@ typically 201.|None|
}
```
-
+
#### Code samples
@@ -3759,7 +3755,7 @@ import (
)
func main() {
- headers := map[string][]string{
+ headers := map[string][]string{
"Accept": []string{"application/json"},
}
@@ -3779,20 +3775,23 @@ func main() {
```javascript
-const fetch = require('node-fetch');
+const fetch = require('node-fetch')
const headers = {
- 'Accept': 'application/json'
+ Accept: 'application/json'
}
-fetch('/self-service/browser/flows/registration/strategies/oidc/settings/connections', {
- method: 'POST',
- headers
-})
-.then(r => r.json())
-.then((body) => {
+fetch(
+ '/self-service/browser/flows/registration/strategies/oidc/settings/connections',
+ {
+ method: 'POST',
+ headers
+ }
+)
+ .then((r) => r.json())
+ .then((body) => {
console.log(body)
-})
+ })
```
@@ -3869,40 +3868,44 @@ Accept: application/json
```
-This endpoint initiates a login flow for API clients such as mobile devices, smart TVs, and so on.
+This endpoint initiates a login flow for API clients such as mobile devices,
+smart TVs, and so on.
-If a valid provided session cookie or session token is provided, a 400 Bad Request error
-will be returned unless the URL query parameter `?refresh=true` is set.
+If a valid provided session cookie or session token is provided, a 400 Bad
+Request error will be returned unless the URL query parameter `?refresh=true` is
+set.
To fetch an existing login flow call `/self-service/login/flows?flow=`.
:::warning
-You MUST NOT use this endpoint in client-side (Single Page Apps, ReactJS, AngularJS) nor server-side (Java Server
-Pages, NodeJS, PHP, Golang, ...) browser applications. Using this endpoint in these applications will make
-you vulnerable to a variety of CSRF attacks, including CSRF login attacks.
+You MUST NOT use this endpoint in client-side (Single Page Apps, ReactJS,
+AngularJS) nor server-side (Java Server Pages, NodeJS, PHP, Golang, ...) browser
+applications. Using this endpoint in these applications will make you vulnerable
+to a variety of CSRF attacks, including CSRF login attacks.
-This endpoint MUST ONLY be used in scenarios such as native mobile apps (React Native, Objective C, Swift, Java, ...).
+This endpoint MUST ONLY be used in scenarios such as native mobile apps (React
+Native, Objective C, Swift, Java, ...).
:::
-More information can be found at [ORY Kratos User Login and User Registration Documentation](https://www.ory.sh/docs/next/kratos/self-service/flows/user-login-user-registration).
+More information can be found at
+[ORY Kratos User Login and User Registration Documentation](https://www.ory.sh/docs/next/kratos/self-service/flows/user-login-user-registration).
#### Parameters
-|Parameter|In|Type|Required|Description|
-|---|---|---|---|---|
-|refresh|query|boolean|false|Refresh a login session|
+| Parameter | In | Type | Required | Description |
+| --------- | ----- | ------- | -------- | ----------------------- |
+| refresh | query | boolean | false | Refresh a login session |
##### Detailed descriptions
**refresh**: Refresh a login session
-If set to true, this will refresh an existing login session by
-asking the user to sign in again. This will reset the
-authenticated_at time of the session.
+If set to true, this will refresh an existing login session by asking the user
+to sign in again. This will reset the authenticated_at time of the session.
#### Responses
@@ -3910,11 +3913,11 @@ authenticated_at time of the session.
##### Overview
-|Status|Meaning|Description|Schema|
-|---|---|---|---|
-|200|[OK](https://tools.ietf.org/html/rfc7231#section-6.3.1)|loginFlow|[loginFlow](#schemaloginflow)|
-|400|[Bad Request](https://tools.ietf.org/html/rfc7231#section-6.5.1)|genericError|[genericError](#schemagenericerror)|
-|500|[Internal Server Error](https://tools.ietf.org/html/rfc7231#section-6.6.1)|genericError|[genericError](#schemagenericerror)|
+| Status | Meaning | Description | Schema |
+| ------ | -------------------------------------------------------------------------- | ------------ | ----------------------------------- |
+| 200 | [OK](https://tools.ietf.org/html/rfc7231#section-6.3.1) | loginFlow | [loginFlow](#schemaloginflow) |
+| 400 | [Bad Request](https://tools.ietf.org/html/rfc7231#section-6.5.1) | genericError | [genericError](#schemagenericerror) |
+| 500 | [Internal Server Error](https://tools.ietf.org/html/rfc7231#section-6.6.1) | genericError | [genericError](#schemagenericerror) |
##### Examples
@@ -4044,9 +4047,7 @@ authenticated_at time of the session.
}
```
-
+
#### Code samples
@@ -4072,7 +4073,7 @@ import (
)
func main() {
- headers := map[string][]string{
+ headers := map[string][]string{
"Accept": []string{"application/json"},
}
@@ -4092,20 +4093,20 @@ func main() {
```javascript
-const fetch = require('node-fetch');
+const fetch = require('node-fetch')
const headers = {
- 'Accept': 'application/json'
+ Accept: 'application/json'
}
fetch('/self-service/login/api', {
method: 'GET',
headers
})
-.then(r => r.json())
-.then((body) => {
+ .then((r) => r.json())
+ .then((body) => {
console.log(body)
-})
+ })
```
@@ -4182,14 +4183,17 @@ Accept: application/json
```
-This endpoint initializes a browser-based user login flow. Once initialized, the browser will be redirected to
-`selfservice.flows.login.ui_url` with the flow ID set as the query parameter `?flow=`. If a valid user session
-exists already, the browser will be redirected to `urls.default_redirect_url` unless the query parameter
-`?refresh=true` was set.
+This endpoint initializes a browser-based user login flow. Once initialized, the
+browser will be redirected to `selfservice.flows.login.ui_url` with the flow ID
+set as the query parameter `?flow=`. If a valid user session exists already, the
+browser will be redirected to `urls.default_redirect_url` unless the query
+parameter `?refresh=true` was set.
-This endpoint is NOT INTENDED for API clients and only works with browsers (Chrome, Firefox, ...).
+This endpoint is NOT INTENDED for API clients and only works with browsers
+(Chrome, Firefox, ...).
-More information can be found at [ORY Kratos User Login and User Registration Documentation](https://www.ory.sh/docs/next/kratos/self-service/flows/user-login-user-registration).
+More information can be found at
+[ORY Kratos User Login and User Registration Documentation](https://www.ory.sh/docs/next/kratos/self-service/flows/user-login-user-registration).
#### Responses
@@ -4197,11 +4201,11 @@ More information can be found at [ORY Kratos User Login and User Registration Do
##### Overview
-|Status|Meaning|Description|Schema|
-|---|---|---|---|
-|302|[Found](https://tools.ietf.org/html/rfc7231#section-6.4.3)|Empty responses are sent when, for example, resources are deleted. The HTTP status code for empty responses is
-typically 201.|None|
-|500|[Internal Server Error](https://tools.ietf.org/html/rfc7231#section-6.6.1)|genericError|[genericError](#schemagenericerror)|
+| Status | Meaning | Description | Schema |
+| -------------- | -------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------- | ----------------------------------- |
+| 302 | [Found](https://tools.ietf.org/html/rfc7231#section-6.4.3) | Empty responses are sent when, for example, resources are deleted. The HTTP status code for empty responses is |
+| typically 201. | None |
+| 500 | [Internal Server Error](https://tools.ietf.org/html/rfc7231#section-6.6.1) | genericError | [genericError](#schemagenericerror) |
##### Examples
@@ -4221,9 +4225,7 @@ typically 201.|None|
}
```
-
+
#### Code samples
@@ -4249,7 +4251,7 @@ import (
)
func main() {
- headers := map[string][]string{
+ headers := map[string][]string{
"Accept": []string{"application/json"},
}
@@ -4269,20 +4271,20 @@ func main() {
```javascript
-const fetch = require('node-fetch');
+const fetch = require('node-fetch')
const headers = {
- 'Accept': 'application/json'
+ Accept: 'application/json'
}
fetch('/self-service/login/browser', {
method: 'GET',
headers
})
-.then(r => r.json())
-.then((body) => {
+ .then((r) => r.json())
+ .then((body) => {
console.log(body)
-})
+ })
```
@@ -4359,30 +4361,32 @@ Accept: application/json
```
-Use this endpoint to complete a login flow by sending an identity's identifier and password. This endpoint
-behaves differently for API and browser flows.
+Use this endpoint to complete a login flow by sending an identity's identifier
+and password. This endpoint behaves differently for API and browser flows.
API flows expect `application/json` to be sent in the body and responds with
-HTTP 200 and a application/json body with the session token on success;
-HTTP 302 redirect to a fresh login flow if the original flow expired with the appropriate error messages set;
-HTTP 400 on form validation errors.
+HTTP 200 and a application/json body with the session token on success; HTTP 302
+redirect to a fresh login flow if the original flow expired with the appropriate
+error messages set; HTTP 400 on form validation errors.
-Browser flows expect `application/x-www-form-urlencoded` to be sent in the body and responds with
-a HTTP 302 redirect to the post/after login URL or the `return_to` value if it was set and if the login succeeded;
-a HTTP 302 redirect to the login UI URL with the flow ID containing the validation errors otherwise.
+Browser flows expect `application/x-www-form-urlencoded` to be sent in the body
+and responds with a HTTP 302 redirect to the post/after login URL or the
+`return_to` value if it was set and if the login succeeded; a HTTP 302 redirect
+to the login UI URL with the flow ID containing the validation errors otherwise.
-More information can be found at [ORY Kratos User Login and User Registration Documentation](https://www.ory.sh/docs/next/kratos/self-service/flows/user-login-user-registration).
+More information can be found at
+[ORY Kratos User Login and User Registration Documentation](https://www.ory.sh/docs/next/kratos/self-service/flows/user-login-user-registration).
#### Parameters
-|Parameter|In|Type|Required|Description|
-|---|---|---|---|---|
-|password|query|string|false|The user's password.|
-|identifier|query|string|false|Identifier is the email or username of the user trying to log in.|
-|csrf_token|query|string|false|Sending the anti-csrf token is only required for browser login flows.|
-|flow|query|string|true|The Flow ID|
+| Parameter | In | Type | Required | Description |
+| ---------- | ----- | ------ | -------- | --------------------------------------------------------------------- |
+| password | query | string | false | The user's password. |
+| identifier | query | string | false | Identifier is the email or username of the user trying to log in. |
+| csrf_token | query | string | false | Sending the anti-csrf token is only required for browser login flows. |
+| flow | query | string | true | The Flow ID |
#### Responses
@@ -4390,13 +4394,13 @@ More information can be found at [ORY Kratos User Login and User Registration Do
##### Overview
-|Status|Meaning|Description|Schema|
-|---|---|---|---|
-|200|[OK](https://tools.ietf.org/html/rfc7231#section-6.3.1)|loginViaApiResponse|[loginViaApiResponse](#schemaloginviaapiresponse)|
-|302|[Found](https://tools.ietf.org/html/rfc7231#section-6.4.3)|Empty responses are sent when, for example, resources are deleted. The HTTP status code for empty responses is
-typically 201.|None|
-|400|[Bad Request](https://tools.ietf.org/html/rfc7231#section-6.5.1)|loginFlow|[loginFlow](#schemaloginflow)|
-|500|[Internal Server Error](https://tools.ietf.org/html/rfc7231#section-6.6.1)|genericError|[genericError](#schemagenericerror)|
+| Status | Meaning | Description | Schema |
+| -------------- | -------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------- | ------------------------------------------------- |
+| 200 | [OK](https://tools.ietf.org/html/rfc7231#section-6.3.1) | loginViaApiResponse | [loginViaApiResponse](#schemaloginviaapiresponse) |
+| 302 | [Found](https://tools.ietf.org/html/rfc7231#section-6.4.3) | Empty responses are sent when, for example, resources are deleted. The HTTP status code for empty responses is |
+| typically 201. | None |
+| 400 | [Bad Request](https://tools.ietf.org/html/rfc7231#section-6.5.1) | loginFlow | [loginFlow](#schemaloginflow) |
+| 500 | [Internal Server Error](https://tools.ietf.org/html/rfc7231#section-6.6.1) | genericError | [genericError](#schemagenericerror) |
##### Examples
@@ -4438,9 +4442,7 @@ typically 201.|None|
}
```
-
+
#### Code samples
@@ -4466,7 +4468,7 @@ import (
)
func main() {
- headers := map[string][]string{
+ headers := map[string][]string{
"Accept": []string{"application/json"},
}
@@ -4486,20 +4488,20 @@ func main() {
```javascript
-const fetch = require('node-fetch');
+const fetch = require('node-fetch')
const headers = {
- 'Accept': 'application/json'
+ Accept: 'application/json'
}
fetch('/self-service/login/methods/password?flow=string', {
method: 'GET',
headers
})
-.then(r => r.json())
-.then((body) => {
+ .then((r) => r.json())
+ .then((body) => {
console.log(body)
-})
+ })
```
@@ -4578,23 +4580,29 @@ Accept: application/json
```
-This endpoint initiates a recovery flow for API clients such as mobile devices, smart TVs, and so on.
+This endpoint initiates a recovery flow for API clients such as mobile devices,
+smart TVs, and so on.
-If a valid provided session cookie or session token is provided, a 400 Bad Request error.
+If a valid provided session cookie or session token is provided, a 400 Bad
+Request error.
-To fetch an existing recovery flow call `/self-service/recovery/flows?flow=`.
+To fetch an existing recovery flow call
+`/self-service/recovery/flows?flow=`.
:::warning
-You MUST NOT use this endpoint in client-side (Single Page Apps, ReactJS, AngularJS) nor server-side (Java Server
-Pages, NodeJS, PHP, Golang, ...) browser applications. Using this endpoint in these applications will make
-you vulnerable to a variety of CSRF attacks.
+You MUST NOT use this endpoint in client-side (Single Page Apps, ReactJS,
+AngularJS) nor server-side (Java Server Pages, NodeJS, PHP, Golang, ...) browser
+applications. Using this endpoint in these applications will make you vulnerable
+to a variety of CSRF attacks.
-This endpoint MUST ONLY be used in scenarios such as native mobile apps (React Native, Objective C, Swift, Java, ...).
+This endpoint MUST ONLY be used in scenarios such as native mobile apps (React
+Native, Objective C, Swift, Java, ...).
:::
-More information can be found at [ORY Kratos Account Recovery Documentation](../self-service/flows/account-recovery.mdx).
+More information can be found at
+[ORY Kratos Account Recovery Documentation](../self-service/flows/account-recovery.mdx).
#### Responses
@@ -4602,11 +4610,11 @@ More information can be found at [ORY Kratos Account Recovery Documentation](../
##### Overview
-|Status|Meaning|Description|Schema|
-|---|---|---|---|
-|200|[OK](https://tools.ietf.org/html/rfc7231#section-6.3.1)|recoveryFlow|[recoveryFlow](#schemarecoveryflow)|
-|400|[Bad Request](https://tools.ietf.org/html/rfc7231#section-6.5.1)|genericError|[genericError](#schemagenericerror)|
-|500|[Internal Server Error](https://tools.ietf.org/html/rfc7231#section-6.6.1)|genericError|[genericError](#schemagenericerror)|
+| Status | Meaning | Description | Schema |
+| ------ | -------------------------------------------------------------------------- | ------------ | ----------------------------------- |
+| 200 | [OK](https://tools.ietf.org/html/rfc7231#section-6.3.1) | recoveryFlow | [recoveryFlow](#schemarecoveryflow) |
+| 400 | [Bad Request](https://tools.ietf.org/html/rfc7231#section-6.5.1) | genericError | [genericError](#schemagenericerror) |
+| 500 | [Internal Server Error](https://tools.ietf.org/html/rfc7231#section-6.6.1) | genericError | [genericError](#schemagenericerror) |
##### Examples
@@ -4700,9 +4708,7 @@ More information can be found at [ORY Kratos Account Recovery Documentation](../
}
```
-
+
#### Code samples
@@ -4728,7 +4734,7 @@ import (
)
func main() {
- headers := map[string][]string{
+ headers := map[string][]string{
"Accept": []string{"application/json"},
}
@@ -4748,20 +4754,20 @@ func main() {
```javascript
-const fetch = require('node-fetch');
+const fetch = require('node-fetch')
const headers = {
- 'Accept': 'application/json'
+ Accept: 'application/json'
}
fetch('/self-service/recovery/api', {
method: 'GET',
headers
})
-.then(r => r.json())
-.then((body) => {
+ .then((r) => r.json())
+ .then((body) => {
console.log(body)
-})
+ })
```
@@ -4838,13 +4844,17 @@ Accept: application/json
```
-This endpoint initializes a browser-based account recovery flow. Once initialized, the browser will be redirected to
-`selfservice.flows.recovery.ui_url` with the flow ID set as the query parameter `?flow=`. If a valid user session
-exists, the browser is returned to the configured return URL.
+This endpoint initializes a browser-based account recovery flow. Once
+initialized, the browser will be redirected to
+`selfservice.flows.recovery.ui_url` with the flow ID set as the query parameter
+`?flow=`. If a valid user session exists, the browser is returned to the
+configured return URL.
-This endpoint is NOT INTENDED for API clients and only works with browsers (Chrome, Firefox, ...).
+This endpoint is NOT INTENDED for API clients and only works with browsers
+(Chrome, Firefox, ...).
-More information can be found at [ORY Kratos Account Recovery Documentation](../self-service/flows/account-recovery.mdx).
+More information can be found at
+[ORY Kratos Account Recovery Documentation](../self-service/flows/account-recovery.mdx).
#### Responses
@@ -4852,11 +4862,11 @@ More information can be found at [ORY Kratos Account Recovery Documentation](../
##### Overview
-|Status|Meaning|Description|Schema|
-|---|---|---|---|
-|302|[Found](https://tools.ietf.org/html/rfc7231#section-6.4.3)|Empty responses are sent when, for example, resources are deleted. The HTTP status code for empty responses is
-typically 201.|None|
-|500|[Internal Server Error](https://tools.ietf.org/html/rfc7231#section-6.6.1)|genericError|[genericError](#schemagenericerror)|
+| Status | Meaning | Description | Schema |
+| -------------- | -------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------- | ----------------------------------- |
+| 302 | [Found](https://tools.ietf.org/html/rfc7231#section-6.4.3) | Empty responses are sent when, for example, resources are deleted. The HTTP status code for empty responses is |
+| typically 201. | None |
+| 500 | [Internal Server Error](https://tools.ietf.org/html/rfc7231#section-6.6.1) | genericError | [genericError](#schemagenericerror) |
##### Examples
@@ -4876,9 +4886,7 @@ typically 201.|None|
}
```
-
+
#### Code samples
@@ -4904,7 +4912,7 @@ import (
)
func main() {
- headers := map[string][]string{
+ headers := map[string][]string{
"Accept": []string{"application/json"},
}
@@ -4924,20 +4932,20 @@ func main() {
```javascript
-const fetch = require('node-fetch');
+const fetch = require('node-fetch')
const headers = {
- 'Accept': 'application/json'
+ Accept: 'application/json'
}
fetch('/self-service/recovery/browser', {
method: 'GET',
headers
})
-.then(r => r.json())
-.then((body) => {
+ .then((r) => r.json())
+ .then((body) => {
console.log(body)
-})
+ })
```
@@ -5015,22 +5023,27 @@ Accept: application/json
```
-Use this endpoint to complete a recovery flow using the link method. This endpoint
-behaves differently for API and browser flows and has several states:
+Use this endpoint to complete a recovery flow using the link method. This
+endpoint behaves differently for API and browser flows and has several states:
-`choose_method` expects `flow` (in the URL query) and `email` (in the body) to be sent
-and works with API- and Browser-initiated flows.
-For API clients it either returns a HTTP 200 OK when the form is valid and HTTP 400 OK when the form is invalid
-and a HTTP 302 Found redirect with a fresh recovery flow if the flow was otherwise invalid (e.g. expired).
-For Browser clients it returns a HTTP 302 Found redirect to the Recovery UI URL with the Recovery Flow ID appended.
-`sent_email` is the success state after `choose_method` and allows the user to request another recovery email. It
-works for both API and Browser-initiated flows and returns the same responses as the flow in `choose_method` state.
-`passed_challenge` expects a `token` to be sent in the URL query and given the nature of the flow ("sending a recovery link")
-does not have any API capabilities. The server responds with a HTTP 302 Found redirect either to the Settings UI URL
-(if the link was valid) and instructs the user to update their password, or a redirect to the Recover UI URL with
-a new Recovery Flow ID which contains an error message that the recovery link was invalid.
+`choose_method` expects `flow` (in the URL query) and `email` (in the body) to
+be sent and works with API- and Browser-initiated flows. For API clients it
+either returns a HTTP 200 OK when the form is valid and HTTP 400 OK when the
+form is invalid and a HTTP 302 Found redirect with a fresh recovery flow if the
+flow was otherwise invalid (e.g. expired). For Browser clients it returns a HTTP
+302 Found redirect to the Recovery UI URL with the Recovery Flow ID appended.
+`sent_email` is the success state after `choose_method` and allows the user to
+request another recovery email. It works for both API and Browser-initiated
+flows and returns the same responses as the flow in `choose_method` state.
+`passed_challenge` expects a `token` to be sent in the URL query and given the
+nature of the flow ("sending a recovery link") does not have any API
+capabilities. The server responds with a HTTP 302 Found redirect either to the
+Settings UI URL (if the link was valid) and instructs the user to update their
+password, or a redirect to the Recover UI URL with a new Recovery Flow ID which
+contains an error message that the recovery link was invalid.
-More information can be found at [ORY Kratos Account Recovery Documentation](../self-service/flows/account-recovery.mdx).
+More information can be found at
+[ORY Kratos Account Recovery Documentation](../self-service/flows/account-recovery.mdx).
#### Request body
@@ -5044,25 +5057,24 @@ More information can be found at [ORY Kratos Account Recovery Documentation](../
```yaml
csrf_token: string
email: string
-
```
#### Parameters
-|Parameter|In|Type|Required|Description|
-|---|---|---|---|---|
-|token|query|string|false|Recovery Token|
-|flow|query|string|false|The Flow ID|
-|body|body|[completeSelfServiceRecoveryFlowWithLinkMethod](#schemacompleteselfservicerecoveryflowwithlinkmethod)|false|none|
+| Parameter | In | Type | Required | Description |
+| --------- | ----- | ----------------------------------------------------------------------------------------------------- | -------- | -------------- |
+| token | query | string | false | Recovery Token |
+| flow | query | string | false | The Flow ID |
+| body | body | [completeSelfServiceRecoveryFlowWithLinkMethod](#schemacompleteselfservicerecoveryflowwithlinkmethod) | false | none |
##### Detailed descriptions
**token**: Recovery Token
-The recovery token which completes the recovery request. If the token
-is invalid (e.g. expired) an error will be shown to the end-user.
+The recovery token which completes the recovery request. If the token is invalid
+(e.g. expired) an error will be shown to the end-user.
**flow**: The Flow ID
@@ -5074,12 +5086,12 @@ format: uuid
##### Overview
-|Status|Meaning|Description|Schema|
-|---|---|---|---|
-|302|[Found](https://tools.ietf.org/html/rfc7231#section-6.4.3)|Empty responses are sent when, for example, resources are deleted. The HTTP status code for empty responses is
-typically 201.|None|
-|400|[Bad Request](https://tools.ietf.org/html/rfc7231#section-6.5.1)|recoveryFlow|[recoveryFlow](#schemarecoveryflow)|
-|500|[Internal Server Error](https://tools.ietf.org/html/rfc7231#section-6.6.1)|genericError|[genericError](#schemagenericerror)|
+| Status | Meaning | Description | Schema |
+| -------------- | -------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------- | ----------------------------------- |
+| 302 | [Found](https://tools.ietf.org/html/rfc7231#section-6.4.3) | Empty responses are sent when, for example, resources are deleted. The HTTP status code for empty responses is |
+| typically 201. | None |
+| 400 | [Bad Request](https://tools.ietf.org/html/rfc7231#section-6.5.1) | recoveryFlow | [recoveryFlow](#schemarecoveryflow) |
+| 500 | [Internal Server Error](https://tools.ietf.org/html/rfc7231#section-6.6.1) | genericError | [genericError](#schemagenericerror) |
##### Examples
@@ -5173,9 +5185,7 @@ typically 201.|None|
}
```
-
+
#### Code samples
@@ -5201,7 +5211,7 @@ import (
)
func main() {
- headers := map[string][]string{
+ headers := map[string][]string{
"Content-Type": []string{"application/json"},
"Accept": []string{"application/json"},
}
@@ -5318,24 +5328,30 @@ Accept: application/json
```
-This endpoint initiates a registration flow for API clients such as mobile devices, smart TVs, and so on.
+This endpoint initiates a registration flow for API clients such as mobile
+devices, smart TVs, and so on.
-If a valid provided session cookie or session token is provided, a 400 Bad Request error
-will be returned unless the URL query parameter `?refresh=true` is set.
+If a valid provided session cookie or session token is provided, a 400 Bad
+Request error will be returned unless the URL query parameter `?refresh=true` is
+set.
-To fetch an existing registration flow call `/self-service/registration/flows?flow=`.
+To fetch an existing registration flow call
+`/self-service/registration/flows?flow=`.
:::warning
-You MUST NOT use this endpoint in client-side (Single Page Apps, ReactJS, AngularJS) nor server-side (Java Server
-Pages, NodeJS, PHP, Golang, ...) browser applications. Using this endpoint in these applications will make
-you vulnerable to a variety of CSRF attacks.
+You MUST NOT use this endpoint in client-side (Single Page Apps, ReactJS,
+AngularJS) nor server-side (Java Server Pages, NodeJS, PHP, Golang, ...) browser
+applications. Using this endpoint in these applications will make you vulnerable
+to a variety of CSRF attacks.
-This endpoint MUST ONLY be used in scenarios such as native mobile apps (React Native, Objective C, Swift, Java, ...).
+This endpoint MUST ONLY be used in scenarios such as native mobile apps (React
+Native, Objective C, Swift, Java, ...).
:::
-More information can be found at [ORY Kratos User Login and User Registration Documentation](https://www.ory.sh/docs/next/kratos/self-service/flows/user-login-user-registration).
+More information can be found at
+[ORY Kratos User Login and User Registration Documentation](https://www.ory.sh/docs/next/kratos/self-service/flows/user-login-user-registration).
#### Responses
@@ -5343,11 +5359,11 @@ More information can be found at [ORY Kratos User Login and User Registration Do
##### Overview
-|Status|Meaning|Description|Schema|
-|---|---|---|---|
-|200|[OK](https://tools.ietf.org/html/rfc7231#section-6.3.1)|registrationFlow|[registrationFlow](#schemaregistrationflow)|
-|400|[Bad Request](https://tools.ietf.org/html/rfc7231#section-6.5.1)|genericError|[genericError](#schemagenericerror)|
-|500|[Internal Server Error](https://tools.ietf.org/html/rfc7231#section-6.6.1)|genericError|[genericError](#schemagenericerror)|
+| Status | Meaning | Description | Schema |
+| ------ | -------------------------------------------------------------------------- | ---------------- | ------------------------------------------- |
+| 200 | [OK](https://tools.ietf.org/html/rfc7231#section-6.3.1) | registrationFlow | [registrationFlow](#schemaregistrationflow) |
+| 400 | [Bad Request](https://tools.ietf.org/html/rfc7231#section-6.5.1) | genericError | [genericError](#schemagenericerror) |
+| 500 | [Internal Server Error](https://tools.ietf.org/html/rfc7231#section-6.6.1) | genericError | [genericError](#schemagenericerror) |
##### Examples
@@ -5476,9 +5492,7 @@ More information can be found at [ORY Kratos User Login and User Registration Do
}
```
-
+
#### Code samples
@@ -5504,7 +5518,7 @@ import (
)
func main() {
- headers := map[string][]string{
+ headers := map[string][]string{
"Accept": []string{"application/json"},
}
@@ -5524,20 +5538,20 @@ func main() {
```javascript
-const fetch = require('node-fetch');
+const fetch = require('node-fetch')
const headers = {
- 'Accept': 'application/json'
+ Accept: 'application/json'
}
fetch('/self-service/registration/api', {
method: 'GET',
headers
})
-.then(r => r.json())
-.then((body) => {
+ .then((r) => r.json())
+ .then((body) => {
console.log(body)
-})
+ })
```
@@ -5614,18 +5628,22 @@ Accept: application/json
```
-This endpoint initializes a browser-based user registration flow. Once initialized, the browser will be redirected to
-`selfservice.flows.registration.ui_url` with the flow ID set as the query parameter `?flow=`. If a valid user session
-exists already, the browser will be redirected to `urls.default_redirect_url` unless the query parameter
+This endpoint initializes a browser-based user registration flow. Once
+initialized, the browser will be redirected to
+`selfservice.flows.registration.ui_url` with the flow ID set as the query
+parameter `?flow=`. If a valid user session exists already, the browser will be
+redirected to `urls.default_redirect_url` unless the query parameter
`?refresh=true` was set.
:::note
-This endpoint is NOT INTENDED for API clients and only works with browsers (Chrome, Firefox, ...).
+This endpoint is NOT INTENDED for API clients and only works with browsers
+(Chrome, Firefox, ...).
:::
-More information can be found at [ORY Kratos User Login and User Registration Documentation](https://www.ory.sh/docs/next/kratos/self-service/flows/user-login-user-registration).
+More information can be found at
+[ORY Kratos User Login and User Registration Documentation](https://www.ory.sh/docs/next/kratos/self-service/flows/user-login-user-registration).
#### Responses
@@ -5633,11 +5651,11 @@ More information can be found at [ORY Kratos User Login and User Registration Do
##### Overview
-|Status|Meaning|Description|Schema|
-|---|---|---|---|
-|302|[Found](https://tools.ietf.org/html/rfc7231#section-6.4.3)|Empty responses are sent when, for example, resources are deleted. The HTTP status code for empty responses is
-typically 201.|None|
-|500|[Internal Server Error](https://tools.ietf.org/html/rfc7231#section-6.6.1)|genericError|[genericError](#schemagenericerror)|
+| Status | Meaning | Description | Schema |
+| -------------- | -------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------- | ----------------------------------- |
+| 302 | [Found](https://tools.ietf.org/html/rfc7231#section-6.4.3) | Empty responses are sent when, for example, resources are deleted. The HTTP status code for empty responses is |
+| typically 201. | None |
+| 500 | [Internal Server Error](https://tools.ietf.org/html/rfc7231#section-6.6.1) | genericError | [genericError](#schemagenericerror) |
##### Examples
@@ -5657,9 +5675,7 @@ typically 201.|None|
}
```
-
+
#### Code samples
@@ -5685,7 +5701,7 @@ import (
)
func main() {
- headers := map[string][]string{
+ headers := map[string][]string{
"Accept": []string{"application/json"},
}
@@ -5705,20 +5721,20 @@ func main() {
```javascript
-const fetch = require('node-fetch');
+const fetch = require('node-fetch')
const headers = {
- 'Accept': 'application/json'
+ Accept: 'application/json'
}
fetch('/self-service/registration/browser', {
method: 'GET',
headers
})
-.then(r => r.json())
-.then((body) => {
+ .then((r) => r.json())
+ .then((body) => {
console.log(body)
-})
+ })
```
@@ -5796,20 +5812,25 @@ Accept: application/json
```
-Use this endpoint to complete a registration flow by sending an identity's traits and password. This endpoint
-behaves differently for API and browser flows.
+Use this endpoint to complete a registration flow by sending an identity's
+traits and password. This endpoint behaves differently for API and browser
+flows.
-API flows expect `application/json` to be sent in the body and respond with
-HTTP 200 and a application/json body with the created identity success - if the session hook is configured the
-`session` and `session_token` will also be included;
-HTTP 302 redirect to a fresh registration flow if the original flow expired with the appropriate error messages set;
-HTTP 400 on form validation errors.
+API flows expect `application/json` to be sent in the body and respond with HTTP
+200 and a application/json body with the created identity success - if the
+session hook is configured the `session` and `session_token` will also be
+included; HTTP 302 redirect to a fresh registration flow if the original flow
+expired with the appropriate error messages set; HTTP 400 on form validation
+errors.
-Browser flows expect `application/x-www-form-urlencoded` to be sent in the body and responds with
-a HTTP 302 redirect to the post/after registration URL or the `return_to` value if it was set and if the registration succeeded;
-a HTTP 302 redirect to the registration UI URL with the flow ID containing the validation errors otherwise.
+Browser flows expect `application/x-www-form-urlencoded` to be sent in the body
+and responds with a HTTP 302 redirect to the post/after registration URL or the
+`return_to` value if it was set and if the registration succeeded; a HTTP 302
+redirect to the registration UI URL with the flow ID containing the validation
+errors otherwise.
-More information can be found at [ORY Kratos User Login and User Registration Documentation](https://www.ory.sh/docs/next/kratos/self-service/flows/user-login-user-registration).
+More information can be found at
+[ORY Kratos User Login and User Registration Documentation](https://www.ory.sh/docs/next/kratos/self-service/flows/user-login-user-registration).
#### Request body
@@ -5819,17 +5840,16 @@ More information can be found at [ORY Kratos User Login and User Registration Do
```yaml
{}
-
```
#### Parameters
-|Parameter|In|Type|Required|Description|
-|---|---|---|---|---|
-|flow|query|string|false|Flow is flow ID.|
-|body|body|object|false|none|
+| Parameter | In | Type | Required | Description |
+| --------- | ----- | ------ | -------- | ---------------- |
+| flow | query | string | false | Flow is flow ID. |
+| body | body | object | false | none |
#### Responses
@@ -5837,13 +5857,13 @@ More information can be found at [ORY Kratos User Login and User Registration Do
##### Overview
-|Status|Meaning|Description|Schema|
-|---|---|---|---|
-|200|[OK](https://tools.ietf.org/html/rfc7231#section-6.3.1)|registrationViaApiResponse|[registrationViaApiResponse](#schemaregistrationviaapiresponse)|
-|302|[Found](https://tools.ietf.org/html/rfc7231#section-6.4.3)|Empty responses are sent when, for example, resources are deleted. The HTTP status code for empty responses is
-typically 201.|None|
-|400|[Bad Request](https://tools.ietf.org/html/rfc7231#section-6.5.1)|registrationFlow|[registrationFlow](#schemaregistrationflow)|
-|500|[Internal Server Error](https://tools.ietf.org/html/rfc7231#section-6.6.1)|genericError|[genericError](#schemagenericerror)|
+| Status | Meaning | Description | Schema |
+| -------------- | -------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------- |
+| 200 | [OK](https://tools.ietf.org/html/rfc7231#section-6.3.1) | registrationViaApiResponse | [registrationViaApiResponse](#schemaregistrationviaapiresponse) |
+| 302 | [Found](https://tools.ietf.org/html/rfc7231#section-6.4.3) | Empty responses are sent when, for example, resources are deleted. The HTTP status code for empty responses is |
+| typically 201. | None |
+| 400 | [Bad Request](https://tools.ietf.org/html/rfc7231#section-6.5.1) | registrationFlow | [registrationFlow](#schemaregistrationflow) |
+| 500 | [Internal Server Error](https://tools.ietf.org/html/rfc7231#section-6.6.1) | genericError | [genericError](#schemagenericerror) |
##### Examples
@@ -5908,9 +5928,7 @@ typically 201.|None|
}
```
-
+
#### Code samples
@@ -5936,7 +5954,7 @@ import (
)
func main() {
- headers := map[string][]string{
+ headers := map[string][]string{
"Content-Type": []string{"application/json"},
"Accept": []string{"application/json"},
}
@@ -5957,10 +5975,11 @@ func main() {
```javascript
-const fetch = require('node-fetch');
-const input = '{}';
+const fetch = require('node-fetch')
+const input = '{}'
const headers = {
- 'Content-Type': 'application/json', 'Accept': 'application/json'
+ 'Content-Type': 'application/json',
+ Accept: 'application/json'
}
fetch('/self-service/registration/methods/password', {
@@ -5968,10 +5987,10 @@ fetch('/self-service/registration/methods/password', {
body: input,
headers
})
-.then(r => r.json())
-.then((body) => {
+ .then((r) => r.json())
+ .then((body) => {
console.log(body)
-})
+ })
```
@@ -6050,22 +6069,27 @@ Accept: application/json
```
-This endpoint initiates a settings flow for API clients such as mobile devices, smart TVs, and so on.
-You must provide a valid ORY Kratos Session Token for this endpoint to respond with HTTP 200 OK.
+This endpoint initiates a settings flow for API clients such as mobile devices,
+smart TVs, and so on. You must provide a valid ORY Kratos Session Token for this
+endpoint to respond with HTTP 200 OK.
-To fetch an existing settings flow call `/self-service/settings/flows?flow=`.
+To fetch an existing settings flow call
+`/self-service/settings/flows?flow=`.
:::warning
-You MUST NOT use this endpoint in client-side (Single Page Apps, ReactJS, AngularJS) nor server-side (Java Server
-Pages, NodeJS, PHP, Golang, ...) browser applications. Using this endpoint in these applications will make
-you vulnerable to a variety of CSRF attacks.
+You MUST NOT use this endpoint in client-side (Single Page Apps, ReactJS,
+AngularJS) nor server-side (Java Server Pages, NodeJS, PHP, Golang, ...) browser
+applications. Using this endpoint in these applications will make you vulnerable
+to a variety of CSRF attacks.
-This endpoint MUST ONLY be used in scenarios such as native mobile apps (React Native, Objective C, Swift, Java, ...).
+This endpoint MUST ONLY be used in scenarios such as native mobile apps (React
+Native, Objective C, Swift, Java, ...).
:::
-More information can be found at [ORY Kratos User Settings & Profile Management Documentation](../self-service/flows/user-settings).
+More information can be found at
+[ORY Kratos User Settings & Profile Management Documentation](../self-service/flows/user-settings).
#### Responses
@@ -6073,11 +6097,11 @@ More information can be found at [ORY Kratos User Settings & Profile Management
##### Overview
-|Status|Meaning|Description|Schema|
-|---|---|---|---|
-|200|[OK](https://tools.ietf.org/html/rfc7231#section-6.3.1)|settingsFlow|[settingsFlow](#schemasettingsflow)|
-|400|[Bad Request](https://tools.ietf.org/html/rfc7231#section-6.5.1)|genericError|[genericError](#schemagenericerror)|
-|500|[Internal Server Error](https://tools.ietf.org/html/rfc7231#section-6.6.1)|genericError|[genericError](#schemagenericerror)|
+| Status | Meaning | Description | Schema |
+| ------ | -------------------------------------------------------------------------- | ------------ | ----------------------------------- |
+| 200 | [OK](https://tools.ietf.org/html/rfc7231#section-6.3.1) | settingsFlow | [settingsFlow](#schemasettingsflow) |
+| 400 | [Bad Request](https://tools.ietf.org/html/rfc7231#section-6.5.1) | genericError | [genericError](#schemagenericerror) |
+| 500 | [Internal Server Error](https://tools.ietf.org/html/rfc7231#section-6.6.1) | genericError | [genericError](#schemagenericerror) |
##### Examples
@@ -6194,9 +6218,7 @@ More information can be found at [ORY Kratos User Settings & Profile Management
}
```
-
+
#### Code samples
@@ -6222,7 +6244,7 @@ import (
)
func main() {
- headers := map[string][]string{
+ headers := map[string][]string{
"Accept": []string{"application/json"},
}
@@ -6242,20 +6264,20 @@ func main() {
```javascript
-const fetch = require('node-fetch');
+const fetch = require('node-fetch')
const headers = {
- 'Accept': 'application/json'
+ Accept: 'application/json'
}
fetch('/self-service/settings/api', {
method: 'GET',
headers
})
-.then(r => r.json())
-.then((body) => {
+ .then((r) => r.json())
+ .then((body) => {
console.log(body)
-})
+ })
```
@@ -6332,17 +6354,20 @@ Accept: application/json
```
-This endpoint initializes a browser-based user settings flow. Once initialized, the browser will be redirected to
-`selfservice.flows.settings.ui_url` with the flow ID set as the query parameter `?flow=`. If no valid
-ORY Kratos Session Cookie is included in the request, a login flow will be initialized.
+This endpoint initializes a browser-based user settings flow. Once initialized,
+the browser will be redirected to `selfservice.flows.settings.ui_url` with the
+flow ID set as the query parameter `?flow=`. If no valid ORY Kratos Session
+Cookie is included in the request, a login flow will be initialized.
:::note
-This endpoint is NOT INTENDED for API clients and only works with browsers (Chrome, Firefox, ...).
+This endpoint is NOT INTENDED for API clients and only works with browsers
+(Chrome, Firefox, ...).
:::
-More information can be found at [ORY Kratos User Settings & Profile Management Documentation](../self-service/flows/user-settings).
+More information can be found at
+[ORY Kratos User Settings & Profile Management Documentation](../self-service/flows/user-settings).
#### Responses
@@ -6350,11 +6375,11 @@ More information can be found at [ORY Kratos User Settings & Profile Management
##### Overview
-|Status|Meaning|Description|Schema|
-|---|---|---|---|
-|302|[Found](https://tools.ietf.org/html/rfc7231#section-6.4.3)|Empty responses are sent when, for example, resources are deleted. The HTTP status code for empty responses is
-typically 201.|None|
-|500|[Internal Server Error](https://tools.ietf.org/html/rfc7231#section-6.6.1)|genericError|[genericError](#schemagenericerror)|
+| Status | Meaning | Description | Schema |
+| -------------- | -------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------- | ----------------------------------- |
+| 302 | [Found](https://tools.ietf.org/html/rfc7231#section-6.4.3) | Empty responses are sent when, for example, resources are deleted. The HTTP status code for empty responses is |
+| typically 201. | None |
+| 500 | [Internal Server Error](https://tools.ietf.org/html/rfc7231#section-6.6.1) | genericError | [genericError](#schemagenericerror) |
##### Examples
@@ -6374,9 +6399,7 @@ typically 201.|None|
}
```
-
+
#### Code samples
@@ -6402,7 +6425,7 @@ import (
)
func main() {
- headers := map[string][]string{
+ headers := map[string][]string{
"Accept": []string{"application/json"},
}
@@ -6422,20 +6445,20 @@ func main() {
```javascript
-const fetch = require('node-fetch');
+const fetch = require('node-fetch')
const headers = {
- 'Accept': 'application/json'
+ Accept: 'application/json'
}
fetch('/self-service/settings/browser/flows', {
method: 'GET',
headers
})
-.then(r => r.json())
-.then((body) => {
+ .then((r) => r.json())
+ .then((body) => {
console.log(body)
-})
+ })
```
@@ -6513,23 +6536,26 @@ Accept: application/json
```
-Use this endpoint to complete a settings flow by sending an identity's updated password. This endpoint
-behaves differently for API and browser flows.
+Use this endpoint to complete a settings flow by sending an identity's updated
+password. This endpoint behaves differently for API and browser flows.
-API-initiated flows expect `application/json` to be sent in the body and respond with
-HTTP 200 and an application/json body with the session token on success;
-HTTP 302 redirect to a fresh settings flow if the original flow expired with the appropriate error messages set;
-HTTP 400 on form validation errors.
-HTTP 401 when the endpoint is called without a valid session token.
-HTTP 403 when `selfservice.flows.settings.privileged_session_max_age` was reached.
-Implies that the user needs to re-authenticate.
+API-initiated flows expect `application/json` to be sent in the body and respond
+with HTTP 200 and an application/json body with the session token on success;
+HTTP 302 redirect to a fresh settings flow if the original flow expired with the
+appropriate error messages set; HTTP 400 on form validation errors. HTTP 401
+when the endpoint is called without a valid session token. HTTP 403 when
+`selfservice.flows.settings.privileged_session_max_age` was reached. Implies
+that the user needs to re-authenticate.
-Browser flows expect `application/x-www-form-urlencoded` to be sent in the body and responds with
-a HTTP 302 redirect to the post/after settings URL or the `return_to` value if it was set and if the flow succeeded;
-a HTTP 302 redirect to the Settings UI URL with the flow ID containing the validation errors otherwise.
-a HTTP 302 redirect to the login endpoint when `selfservice.flows.settings.privileged_session_max_age` was reached.
+Browser flows expect `application/x-www-form-urlencoded` to be sent in the body
+and responds with a HTTP 302 redirect to the post/after settings URL or the
+`return_to` value if it was set and if the flow succeeded; a HTTP 302 redirect
+to the Settings UI URL with the flow ID containing the validation errors
+otherwise. a HTTP 302 redirect to the login endpoint when
+`selfservice.flows.settings.privileged_session_max_age` was reached.
-More information can be found at [ORY Kratos User Settings & Profile Management Documentation](../self-service/flows/user-settings).
+More information can be found at
+[ORY Kratos User Settings & Profile Management Documentation](../self-service/flows/user-settings).
#### Request body
@@ -6543,17 +6569,16 @@ More information can be found at [ORY Kratos User Settings & Profile Management
```yaml
csrf_token: string
password: string
-
```
#### Parameters
-|Parameter|In|Type|Required|Description|
-|---|---|---|---|---|
-|flow|query|string|false|Flow is flow ID.|
-|body|body|[CompleteSelfServiceSettingsFlowWithPasswordMethod](#schemacompleteselfservicesettingsflowwithpasswordmethod)|false|none|
+| Parameter | In | Type | Required | Description |
+| --------- | ----- | ------------------------------------------------------------------------------------------------------------- | -------- | ---------------- |
+| flow | query | string | false | Flow is flow ID. |
+| body | body | [CompleteSelfServiceSettingsFlowWithPasswordMethod](#schemacompleteselfservicesettingsflowwithpasswordmethod) | false | none |
#### Responses
@@ -6561,15 +6586,15 @@ password: string
##### Overview
-|Status|Meaning|Description|Schema|
-|---|---|---|---|
-|200|[OK](https://tools.ietf.org/html/rfc7231#section-6.3.1)|settingsViaApiResponse|[settingsViaApiResponse](#schemasettingsviaapiresponse)|
-|302|[Found](https://tools.ietf.org/html/rfc7231#section-6.4.3)|Empty responses are sent when, for example, resources are deleted. The HTTP status code for empty responses is
-typically 201.|None|
-|400|[Bad Request](https://tools.ietf.org/html/rfc7231#section-6.5.1)|settingsFlow|[settingsFlow](#schemasettingsflow)|
-|401|[Unauthorized](https://tools.ietf.org/html/rfc7235#section-3.1)|genericError|[genericError](#schemagenericerror)|
-|403|[Forbidden](https://tools.ietf.org/html/rfc7231#section-6.5.3)|genericError|[genericError](#schemagenericerror)|
-|500|[Internal Server Error](https://tools.ietf.org/html/rfc7231#section-6.6.1)|genericError|[genericError](#schemagenericerror)|
+| Status | Meaning | Description | Schema |
+| -------------- | -------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------- |
+| 200 | [OK](https://tools.ietf.org/html/rfc7231#section-6.3.1) | settingsViaApiResponse | [settingsViaApiResponse](#schemasettingsviaapiresponse) |
+| 302 | [Found](https://tools.ietf.org/html/rfc7231#section-6.4.3) | Empty responses are sent when, for example, resources are deleted. The HTTP status code for empty responses is |
+| typically 201. | None |
+| 400 | [Bad Request](https://tools.ietf.org/html/rfc7231#section-6.5.1) | settingsFlow | [settingsFlow](#schemasettingsflow) |
+| 401 | [Unauthorized](https://tools.ietf.org/html/rfc7235#section-3.1) | genericError | [genericError](#schemagenericerror) |
+| 403 | [Forbidden](https://tools.ietf.org/html/rfc7231#section-6.5.3) | genericError | [genericError](#schemagenericerror) |
+| 500 | [Internal Server Error](https://tools.ietf.org/html/rfc7231#section-6.6.1) | genericError | [genericError](#schemagenericerror) |
##### Examples
@@ -6711,9 +6736,7 @@ typically 201.|None|
}
```
-
+
#### Code samples
@@ -6739,7 +6762,7 @@ import (
)
func main() {
- headers := map[string][]string{
+ headers := map[string][]string{
"Content-Type": []string{"application/json"},
"Accept": []string{"application/json"},
}
@@ -6856,23 +6879,27 @@ Accept: application/json
```
-Use this endpoint to complete a settings flow by sending an identity's updated traits. This endpoint
-behaves differently for API and browser flows.
+Use this endpoint to complete a settings flow by sending an identity's updated
+traits. This endpoint behaves differently for API and browser flows.
-API-initiated flows expect `application/json` to be sent in the body and respond with
-HTTP 200 and an application/json body with the session token on success;
-HTTP 302 redirect to a fresh settings flow if the original flow expired with the appropriate error messages set;
-HTTP 400 on form validation errors.
-HTTP 401 when the endpoint is called without a valid session token.
-HTTP 403 when `selfservice.flows.settings.privileged_session_max_age` was reached and a sensitive field was
-updated (e.g. recovery email). Implies that the user needs to re-authenticate.
+API-initiated flows expect `application/json` to be sent in the body and respond
+with HTTP 200 and an application/json body with the session token on success;
+HTTP 302 redirect to a fresh settings flow if the original flow expired with the
+appropriate error messages set; HTTP 400 on form validation errors. HTTP 401
+when the endpoint is called without a valid session token. HTTP 403 when
+`selfservice.flows.settings.privileged_session_max_age` was reached and a
+sensitive field was updated (e.g. recovery email). Implies that the user needs
+to re-authenticate.
-Browser flows expect `application/x-www-form-urlencoded` to be sent in the body and responds with
-a HTTP 302 redirect to the post/after settings URL or the `return_to` value if it was set and if the flow succeeded;
-a HTTP 302 redirect to the settings UI URL with the flow ID containing the validation errors otherwise.
-a HTTP 302 redirect to the login endpoint when `selfservice.flows.settings.privileged_session_max_age` was reached.
+Browser flows expect `application/x-www-form-urlencoded` to be sent in the body
+and responds with a HTTP 302 redirect to the post/after settings URL or the
+`return_to` value if it was set and if the flow succeeded; a HTTP 302 redirect
+to the settings UI URL with the flow ID containing the validation errors
+otherwise. a HTTP 302 redirect to the login endpoint when
+`selfservice.flows.settings.privileged_session_max_age` was reached.
-More information can be found at [ORY Kratos User Settings & Profile Management Documentation](../self-service/flows/user-settings).
+More information can be found at
+[ORY Kratos User Settings & Profile Management Documentation](../self-service/flows/user-settings).
#### Responses
@@ -6880,15 +6907,15 @@ More information can be found at [ORY Kratos User Settings & Profile Management
##### Overview
-|Status|Meaning|Description|Schema|
-|---|---|---|---|
-|200|[OK](https://tools.ietf.org/html/rfc7231#section-6.3.1)|settingsFlow|[settingsFlow](#schemasettingsflow)|
-|302|[Found](https://tools.ietf.org/html/rfc7231#section-6.4.3)|Empty responses are sent when, for example, resources are deleted. The HTTP status code for empty responses is
-typically 201.|None|
-|400|[Bad Request](https://tools.ietf.org/html/rfc7231#section-6.5.1)|settingsFlow|[settingsFlow](#schemasettingsflow)|
-|401|[Unauthorized](https://tools.ietf.org/html/rfc7235#section-3.1)|genericError|[genericError](#schemagenericerror)|
-|403|[Forbidden](https://tools.ietf.org/html/rfc7231#section-6.5.3)|genericError|[genericError](#schemagenericerror)|
-|500|[Internal Server Error](https://tools.ietf.org/html/rfc7231#section-6.6.1)|genericError|[genericError](#schemagenericerror)|
+| Status | Meaning | Description | Schema |
+| -------------- | -------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------- | ----------------------------------- |
+| 200 | [OK](https://tools.ietf.org/html/rfc7231#section-6.3.1) | settingsFlow | [settingsFlow](#schemasettingsflow) |
+| 302 | [Found](https://tools.ietf.org/html/rfc7231#section-6.4.3) | Empty responses are sent when, for example, resources are deleted. The HTTP status code for empty responses is |
+| typically 201. | None |
+| 400 | [Bad Request](https://tools.ietf.org/html/rfc7231#section-6.5.1) | settingsFlow | [settingsFlow](#schemasettingsflow) |
+| 401 | [Unauthorized](https://tools.ietf.org/html/rfc7235#section-3.1) | genericError | [genericError](#schemagenericerror) |
+| 403 | [Forbidden](https://tools.ietf.org/html/rfc7231#section-6.5.3) | genericError | [genericError](#schemagenericerror) |
+| 500 | [Internal Server Error](https://tools.ietf.org/html/rfc7231#section-6.6.1) | genericError | [genericError](#schemagenericerror) |
##### Examples
@@ -7005,9 +7032,7 @@ typically 201.|None|
}
```
-
+
#### Code samples
@@ -7033,7 +7058,7 @@ import (
)
func main() {
- headers := map[string][]string{
+ headers := map[string][]string{
"Accept": []string{"application/json"},
}
@@ -7053,20 +7078,20 @@ func main() {
```javascript
-const fetch = require('node-fetch');
+const fetch = require('node-fetch')
const headers = {
- 'Accept': 'application/json'
+ Accept: 'application/json'
}
fetch('/self-service/settings/methods/profile', {
method: 'POST',
headers
})
-.then(r => r.json())
-.then((body) => {
+ .then((r) => r.json())
+ .then((body) => {
console.log(body)
-})
+ })
```
@@ -7143,21 +7168,26 @@ Accept: application/json
```
-This endpoint initiates a verification flow for API clients such as mobile devices, smart TVs, and so on.
+This endpoint initiates a verification flow for API clients such as mobile
+devices, smart TVs, and so on.
-To fetch an existing verification flow call `/self-service/verification/flows?flow=`.
+To fetch an existing verification flow call
+`/self-service/verification/flows?flow=`.
:::warning
-You MUST NOT use this endpoint in client-side (Single Page Apps, ReactJS, AngularJS) nor server-side (Java Server
-Pages, NodeJS, PHP, Golang, ...) browser applications. Using this endpoint in these applications will make
-you vulnerable to a variety of CSRF attacks.
+You MUST NOT use this endpoint in client-side (Single Page Apps, ReactJS,
+AngularJS) nor server-side (Java Server Pages, NodeJS, PHP, Golang, ...) browser
+applications. Using this endpoint in these applications will make you vulnerable
+to a variety of CSRF attacks.
-This endpoint MUST ONLY be used in scenarios such as native mobile apps (React Native, Objective C, Swift, Java, ...).
+This endpoint MUST ONLY be used in scenarios such as native mobile apps (React
+Native, Objective C, Swift, Java, ...).
:::
-More information can be found at [ORY Kratos Email and Phone Verification Documentation](https://www.ory.sh/docs/kratos/selfservice/flows/verify-email-account-activation).
+More information can be found at
+[ORY Kratos Email and Phone Verification Documentation](https://www.ory.sh/docs/kratos/selfservice/flows/verify-email-account-activation).
#### Responses
@@ -7165,11 +7195,11 @@ More information can be found at [ORY Kratos Email and Phone Verification Docume
##### Overview
-|Status|Meaning|Description|Schema|
-|---|---|---|---|
-|200|[OK](https://tools.ietf.org/html/rfc7231#section-6.3.1)|verificationFlow|[verificationFlow](#schemaverificationflow)|
-|400|[Bad Request](https://tools.ietf.org/html/rfc7231#section-6.5.1)|genericError|[genericError](#schemagenericerror)|
-|500|[Internal Server Error](https://tools.ietf.org/html/rfc7231#section-6.6.1)|genericError|[genericError](#schemagenericerror)|
+| Status | Meaning | Description | Schema |
+| ------ | -------------------------------------------------------------------------- | ---------------- | ------------------------------------------- |
+| 200 | [OK](https://tools.ietf.org/html/rfc7231#section-6.3.1) | verificationFlow | [verificationFlow](#schemaverificationflow) |
+| 400 | [Bad Request](https://tools.ietf.org/html/rfc7231#section-6.5.1) | genericError | [genericError](#schemagenericerror) |
+| 500 | [Internal Server Error](https://tools.ietf.org/html/rfc7231#section-6.6.1) | genericError | [genericError](#schemagenericerror) |
##### Examples
@@ -7263,9 +7293,7 @@ More information can be found at [ORY Kratos Email and Phone Verification Docume
}
```
-
+
#### Code samples
@@ -7291,7 +7319,7 @@ import (
)
func main() {
- headers := map[string][]string{
+ headers := map[string][]string{
"Accept": []string{"application/json"},
}
@@ -7311,20 +7339,20 @@ func main() {
```javascript
-const fetch = require('node-fetch');
+const fetch = require('node-fetch')
const headers = {
- 'Accept': 'application/json'
+ Accept: 'application/json'
}
fetch('/self-service/verification/api', {
method: 'GET',
headers
})
-.then(r => r.json())
-.then((body) => {
+ .then((r) => r.json())
+ .then((body) => {
console.log(body)
-})
+ })
```
@@ -7401,12 +7429,16 @@ Accept: application/json
```
-This endpoint initializes a browser-based account verification flow. Once initialized, the browser will be redirected to
-`selfservice.flows.verification.ui_url` with the flow ID set as the query parameter `?flow=`.
+This endpoint initializes a browser-based account verification flow. Once
+initialized, the browser will be redirected to
+`selfservice.flows.verification.ui_url` with the flow ID set as the query
+parameter `?flow=`.
-This endpoint is NOT INTENDED for API clients and only works with browsers (Chrome, Firefox, ...).
+This endpoint is NOT INTENDED for API clients and only works with browsers
+(Chrome, Firefox, ...).
-More information can be found at [ORY Kratos Email and Phone Verification Documentation](https://www.ory.sh/docs/kratos/selfservice/flows/verify-email-account-activation).
+More information can be found at
+[ORY Kratos Email and Phone Verification Documentation](https://www.ory.sh/docs/kratos/selfservice/flows/verify-email-account-activation).
#### Responses
@@ -7414,11 +7446,11 @@ More information can be found at [ORY Kratos Email and Phone Verification Docume
##### Overview
-|Status|Meaning|Description|Schema|
-|---|---|---|---|
-|302|[Found](https://tools.ietf.org/html/rfc7231#section-6.4.3)|Empty responses are sent when, for example, resources are deleted. The HTTP status code for empty responses is
-typically 201.|None|
-|500|[Internal Server Error](https://tools.ietf.org/html/rfc7231#section-6.6.1)|genericError|[genericError](#schemagenericerror)|
+| Status | Meaning | Description | Schema |
+| -------------- | -------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------- | ----------------------------------- |
+| 302 | [Found](https://tools.ietf.org/html/rfc7231#section-6.4.3) | Empty responses are sent when, for example, resources are deleted. The HTTP status code for empty responses is |
+| typically 201. | None |
+| 500 | [Internal Server Error](https://tools.ietf.org/html/rfc7231#section-6.6.1) | genericError | [genericError](#schemagenericerror) |
##### Examples
@@ -7438,9 +7470,7 @@ typically 201.|None|
}
```
-
+
#### Code samples
@@ -7466,7 +7496,7 @@ import (
)
func main() {
- headers := map[string][]string{
+ headers := map[string][]string{
"Accept": []string{"application/json"},
}
@@ -7486,20 +7516,20 @@ func main() {
```javascript
-const fetch = require('node-fetch');
+const fetch = require('node-fetch')
const headers = {
- 'Accept': 'application/json'
+ Accept: 'application/json'
}
fetch('/self-service/verification/browser', {
method: 'GET',
headers
})
-.then(r => r.json())
-.then((body) => {
+ .then((r) => r.json())
+ .then((body) => {
console.log(body)
-})
+ })
```
@@ -7577,22 +7607,28 @@ Accept: application/json
```
-Use this endpoint to complete a verification flow using the link method. This endpoint
-behaves differently for API and browser flows and has several states:
+Use this endpoint to complete a verification flow using the link method. This
+endpoint behaves differently for API and browser flows and has several states:
-`choose_method` expects `flow` (in the URL query) and `email` (in the body) to be sent
-and works with API- and Browser-initiated flows.
-For API clients it either returns a HTTP 200 OK when the form is valid and HTTP 400 OK when the form is invalid
-and a HTTP 302 Found redirect with a fresh verification flow if the flow was otherwise invalid (e.g. expired).
-For Browser clients it returns a HTTP 302 Found redirect to the Verification UI URL with the Verification Flow ID appended.
-`sent_email` is the success state after `choose_method` and allows the user to request another verification email. It
-works for both API and Browser-initiated flows and returns the same responses as the flow in `choose_method` state.
-`passed_challenge` expects a `token` to be sent in the URL query and given the nature of the flow ("sending a verification link")
-does not have any API capabilities. The server responds with a HTTP 302 Found redirect either to the Settings UI URL
-(if the link was valid) and instructs the user to update their password, or a redirect to the Verification UI URL with
-a new Verification Flow ID which contains an error message that the verification link was invalid.
+`choose_method` expects `flow` (in the URL query) and `email` (in the body) to
+be sent and works with API- and Browser-initiated flows. For API clients it
+either returns a HTTP 200 OK when the form is valid and HTTP 400 OK when the
+form is invalid and a HTTP 302 Found redirect with a fresh verification flow if
+the flow was otherwise invalid (e.g. expired). For Browser clients it returns a
+HTTP 302 Found redirect to the Verification UI URL with the Verification Flow ID
+appended. `sent_email` is the success state after `choose_method` and allows the
+user to request another verification email. It works for both API and
+Browser-initiated flows and returns the same responses as the flow in
+`choose_method` state. `passed_challenge` expects a `token` to be sent in the
+URL query and given the nature of the flow ("sending a verification link") does
+not have any API capabilities. The server responds with a HTTP 302 Found
+redirect either to the Settings UI URL (if the link was valid) and instructs the
+user to update their password, or a redirect to the Verification UI URL with a
+new Verification Flow ID which contains an error message that the verification
+link was invalid.
-More information can be found at [ORY Kratos Email and Phone Verification Documentation](https://www.ory.sh/docs/kratos/selfservice/flows/verify-email-account-activation).
+More information can be found at
+[ORY Kratos Email and Phone Verification Documentation](https://www.ory.sh/docs/kratos/selfservice/flows/verify-email-account-activation).
#### Request body
@@ -7606,25 +7642,24 @@ More information can be found at [ORY Kratos Email and Phone Verification Docume
```yaml
csrf_token: string
email: string
-
```
#### Parameters
-|Parameter|In|Type|Required|Description|
-|---|---|---|---|---|
-|token|query|string|false|Verification Token|
-|flow|query|string|false|The Flow ID|
-|body|body|[completeSelfServiceVerificationFlowWithLinkMethod](#schemacompleteselfserviceverificationflowwithlinkmethod)|false|none|
+| Parameter | In | Type | Required | Description |
+| --------- | ----- | ------------------------------------------------------------------------------------------------------------- | -------- | ------------------ |
+| token | query | string | false | Verification Token |
+| flow | query | string | false | The Flow ID |
+| body | body | [completeSelfServiceVerificationFlowWithLinkMethod](#schemacompleteselfserviceverificationflowwithlinkmethod) | false | none |
##### Detailed descriptions
**token**: Verification Token
-The verification token which completes the verification request. If the token
-is invalid (e.g. expired) an error will be shown to the end-user.
+The verification token which completes the verification request. If the token is
+invalid (e.g. expired) an error will be shown to the end-user.
**flow**: The Flow ID
@@ -7636,12 +7671,12 @@ format: uuid
##### Overview
-|Status|Meaning|Description|Schema|
-|---|---|---|---|
-|302|[Found](https://tools.ietf.org/html/rfc7231#section-6.4.3)|Empty responses are sent when, for example, resources are deleted. The HTTP status code for empty responses is
-typically 201.|None|
-|400|[Bad Request](https://tools.ietf.org/html/rfc7231#section-6.5.1)|verificationFlow|[verificationFlow](#schemaverificationflow)|
-|500|[Internal Server Error](https://tools.ietf.org/html/rfc7231#section-6.6.1)|genericError|[genericError](#schemagenericerror)|
+| Status | Meaning | Description | Schema |
+| -------------- | -------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------- | ------------------------------------------- |
+| 302 | [Found](https://tools.ietf.org/html/rfc7231#section-6.4.3) | Empty responses are sent when, for example, resources are deleted. The HTTP status code for empty responses is |
+| typically 201. | None |
+| 400 | [Bad Request](https://tools.ietf.org/html/rfc7231#section-6.5.1) | verificationFlow | [verificationFlow](#schemaverificationflow) |
+| 500 | [Internal Server Error](https://tools.ietf.org/html/rfc7231#section-6.6.1) | genericError | [genericError](#schemagenericerror) |
##### Examples
@@ -7735,9 +7770,7 @@ typically 201.|None|
}
```
-
+
#### Code samples
@@ -7763,7 +7796,7 @@ import (
)
func main() {
- headers := map[string][]string{
+ headers := map[string][]string{
"Content-Type": []string{"application/json"},
"Accept": []string{"application/json"},
}
@@ -7881,10 +7914,12 @@ Accept: application/json
```
-Use this endpoint to revoke a session using its token. This endpoint is particularly useful for API clients
-such as mobile apps to log the user out of the system and invalidate the session.
+Use this endpoint to revoke a session using its token. This endpoint is
+particularly useful for API clients such as mobile apps to log the user out of
+the system and invalidate the session.
-This endpoint does not remove any HTTP Cookies - use the Self-Service Logout Flow instead.
+This endpoint does not remove any HTTP Cookies - use the Self-Service Logout
+Flow instead.
#### Request body
@@ -7898,9 +7933,9 @@ This endpoint does not remove any HTTP Cookies - use the Self-Service Logout Flo
#### Parameters
-|Parameter|In|Type|Required|Description|
-|---|---|---|---|---|
-|body|body|[revokeSession](#schemarevokesession)|true|none|
+| Parameter | In | Type | Required | Description |
+| --------- | ---- | ------------------------------------- | -------- | ----------- |
+| body | body | [revokeSession](#schemarevokesession) | true | none |
#### Responses
@@ -7908,12 +7943,12 @@ This endpoint does not remove any HTTP Cookies - use the Self-Service Logout Flo
##### Overview
-|Status|Meaning|Description|Schema|
-|---|---|---|---|
-|204|[No Content](https://tools.ietf.org/html/rfc7231#section-6.3.5)|Empty responses are sent when, for example, resources are deleted. The HTTP status code for empty responses is
-typically 201.|None|
-|400|[Bad Request](https://tools.ietf.org/html/rfc7231#section-6.5.1)|genericError|[genericError](#schemagenericerror)|
-|500|[Internal Server Error](https://tools.ietf.org/html/rfc7231#section-6.6.1)|genericError|[genericError](#schemagenericerror)|
+| Status | Meaning | Description | Schema |
+| -------------- | -------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------- | ----------------------------------- |
+| 204 | [No Content](https://tools.ietf.org/html/rfc7231#section-6.3.5) | Empty responses are sent when, for example, resources are deleted. The HTTP status code for empty responses is |
+| typically 201. | None |
+| 400 | [Bad Request](https://tools.ietf.org/html/rfc7231#section-6.5.1) | genericError | [genericError](#schemagenericerror) |
+| 500 | [Internal Server Error](https://tools.ietf.org/html/rfc7231#section-6.6.1) | genericError | [genericError](#schemagenericerror) |
##### Examples
@@ -7933,9 +7968,7 @@ typically 201.|None|
}
```
-
+
#### Code samples
@@ -7961,7 +7994,7 @@ import (
)
func main() {
- headers := map[string][]string{
+ headers := map[string][]string{
"Content-Type": []string{"application/json"},
"Accept": []string{"application/json"},
}
@@ -8077,9 +8110,11 @@ Accept: application/json
```
-Uses the HTTP Headers in the GET request to determine (e.g. by using checking the cookies) who is authenticated.
-Returns a session object in the body or 401 if the credentials are invalid or no credentials were sent.
-Additionally when the request it successful it adds the user ID to the 'X-Kratos-Authenticated-Identity-Id' header in the response.
+Uses the HTTP Headers in the GET request to determine (e.g. by using checking
+the cookies) who is authenticated. Returns a session object in the body or 401
+if the credentials are invalid or no credentials were sent. Additionally when
+the request it successful it adds the user ID to the
+'X-Kratos-Authenticated-Identity-Id' header in the response.
This endpoint is useful for reverse proxies and API Gateways.
@@ -8089,11 +8124,11 @@ This endpoint is useful for reverse proxies and API Gateways.
##### Overview
-|Status|Meaning|Description|Schema|
-|---|---|---|---|
-|200|[OK](https://tools.ietf.org/html/rfc7231#section-6.3.1)|session|[session](#schemasession)|
-|403|[Forbidden](https://tools.ietf.org/html/rfc7231#section-6.5.3)|genericError|[genericError](#schemagenericerror)|
-|500|[Internal Server Error](https://tools.ietf.org/html/rfc7231#section-6.6.1)|genericError|[genericError](#schemagenericerror)|
+| Status | Meaning | Description | Schema |
+| ------ | -------------------------------------------------------------------------- | ------------ | ----------------------------------- |
+| 200 | [OK](https://tools.ietf.org/html/rfc7231#section-6.3.1) | session | [session](#schemasession) |
+| 403 | [Forbidden](https://tools.ietf.org/html/rfc7231#section-6.5.3) | genericError | [genericError](#schemagenericerror) |
+| 500 | [Internal Server Error](https://tools.ietf.org/html/rfc7231#section-6.6.1) | genericError | [genericError](#schemagenericerror) |
##### Examples
@@ -8132,9 +8167,7 @@ This endpoint is useful for reverse proxies and API Gateways.
}
```
-
+
#### Code samples
@@ -8160,7 +8193,7 @@ import (
)
func main() {
- headers := map[string][]string{
+ headers := map[string][]string{
"Accept": []string{"application/json"},
}
@@ -8180,20 +8213,20 @@ func main() {
```javascript
-const fetch = require('node-fetch');
+const fetch = require('node-fetch')
const headers = {
- 'Accept': 'application/json'
+ Accept: 'application/json'
}
fetch('/sessions/whoami', {
method: 'GET',
headers
})
-.then(r => r.json())
-.then((body) => {
+ .then((r) => r.json())
+ .then((body) => {
console.log(body)
-})
+ })
```
@@ -8274,13 +8307,14 @@ Accept: application/json
```
-This endpoint returns the service version typically notated using semantic versioning.
+This endpoint returns the service version typically notated using semantic
+versioning.
If the service supports TLS Edge Termination, this endpoint does not require the
`X-Forwarded-Proto` header to be set.
-Be aware that if you are running multiple nodes of this service, the health status will never
-refer to the cluster state, only to a single instance.
+Be aware that if you are running multiple nodes of this service, the health
+status will never refer to the cluster state, only to a single instance.
#### Responses
@@ -8288,9 +8322,9 @@ refer to the cluster state, only to a single instance.
##### Overview
-|Status|Meaning|Description|Schema|
-|---|---|---|---|
-|200|[OK](https://tools.ietf.org/html/rfc7231#section-6.3.1)|version|[version](#schemaversion)|
+| Status | Meaning | Description | Schema |
+| ------ | ------------------------------------------------------- | ----------- | ------------------------- |
+| 200 | [OK](https://tools.ietf.org/html/rfc7231#section-6.3.1) | version | [version](#schemaversion) |
##### Examples
@@ -8302,9 +8336,7 @@ refer to the cluster state, only to a single instance.
}
```
-
+
#### Code samples
@@ -8330,7 +8362,7 @@ import (
)
func main() {
- headers := map[string][]string{
+ headers := map[string][]string{
"Accept": []string{"application/json"},
}
@@ -8350,20 +8382,20 @@ func main() {
```javascript
-const fetch = require('node-fetch');
+const fetch = require('node-fetch')
const headers = {
- 'Accept': 'application/json'
+ Accept: 'application/json'
}
fetch('/version', {
method: 'GET',
headers
})
-.then(r => r.json())
-.then((body) => {
+ .then((r) => r.json())
+ .then((body) => {
console.log(body)
-})
+ })
```
@@ -8443,15 +8475,14 @@ p JSON.parse(result)
"csrf_token": "string",
"password": "string"
}
-
```
#### Properties
-|Name|Type|Required|Restrictions|Description|
-|---|---|---|---|---|
-|csrf_token|string|false|none|CSRFToken is the anti-CSRF token
type: string|
-|password|string|true|none|Password is the updated password
type: string|
+| Name | Type | Required | Restrictions | Description |
+| ---------- | ------ | -------- | ------------ | ---------------------------------------------------- |
+| csrf_token | string | false | none | CSRFToken is the anti-CSRF token
type: string |
+| password | string | true | none | Password is the updated password
type: string |
@@ -8464,15 +8495,14 @@ p JSON.parse(result)
"schema_id": "string",
"traits": {}
}
-
```
#### Properties
-|Name|Type|Required|Restrictions|Description|
-|---|---|---|---|---|
-|schema_id|string|true|none|SchemaID is the ID of the JSON Schema to be used for validating the identity's traits.|
-|traits|object|true|none|Traits represent an identity's traits. The identity is able to create, modify, and delete traits in a self-service manner. The input will always be validated against the JSON Schema defined in `schema_url`.|
+| Name | Type | Required | Restrictions | Description |
+| --------- | ------ | -------- | ------------ | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
+| schema_id | string | true | none | SchemaID is the ID of the JSON Schema to be used for validating the identity's traits. |
+| traits | object | true | none | Traits represent an identity's traits. The identity is able to create, modify, and delete traits in a self-service manner. The input will always be validated against the JSON Schema defined in `schema_url`. |
@@ -8485,15 +8515,14 @@ p JSON.parse(result)
"expires_in": "string",
"identity_id": "string"
}
-
```
#### Properties
-|Name|Type|Required|Restrictions|Description|
-|---|---|---|---|---|
-|expires_in|string|false|none|Link Expires In
The recovery link will expire at that point in time. Defaults to the configuration value of `selfservice.flows.recovery.request_lifespan`.|
-|identity_id|[UUID](#schemauuid)|true|none|none|
+| Name | Type | Required | Restrictions | Description |
+| ----------- | ------------------- | -------- | ------------ | -------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
+| expires_in | string | false | none | Link Expires In
The recovery link will expire at that point in time. Defaults to the configuration value of `selfservice.flows.recovery.request_lifespan`. |
+| identity_id | [UUID](#schemauuid) | true | none | none |
@@ -8503,16 +8532,16 @@ p JSON.parse(result)
```json
"string"
-
```
-*CredentialsType represents several different credential types, like password credentials, passwordless credentials,*
+_CredentialsType represents several different credential types, like password
+credentials, passwordless credentials,_
#### Properties
-|Name|Type|Required|Restrictions|Description|
-|---|---|---|---|---|
-|CredentialsType represents several different credential types, like password credentials, passwordless credentials,|string|false|none|and so on.|
+| Name | Type | Required | Restrictions | Description |
+| ------------------------------------------------------------------------------------------------------------------- | ------ | -------- | ------------ | ----------- |
+| CredentialsType represents several different credential types, like password credentials, passwordless credentials, | string | false | none | and so on. |
@@ -8551,17 +8580,16 @@ p JSON.parse(result)
],
"method": "string"
}
-
```
#### Properties
-|Name|Type|Required|Restrictions|Description|
-|---|---|---|---|---|
-|action|string|true|none|Action should be used as the form action URL `