## Get Origin Post-Quantum Encryption setting `client.OriginPostQuantumEncryption.Get(ctx, query) (*OriginPostQuantumEncryptionGetResponse, error)` **get** `/zones/{zone_id}/cache/origin_post_quantum_encryption` Instructs Cloudflare to use Post-Quantum (PQ) key agreement algorithms when connecting to your origin. Preferred instructs Cloudflare to opportunistically send a Post-Quantum keyshare in the first message to the origin (for fastest connections when the origin supports and prefers PQ), supported means that PQ algorithms are advertised but only used when requested by the origin, and off means that PQ algorithms are not advertised. ### Parameters - `query OriginPostQuantumEncryptionGetParams` - `ZoneID param.Field[string]` Identifier. ### Returns - `type OriginPostQuantumEncryptionGetResponse struct{…}` - `ID OriginPostQuantumEncryptionGetResponseID` The identifier of the caching setting. - `const OriginPostQuantumEncryptionGetResponseIDOriginPqe OriginPostQuantumEncryptionGetResponseID = "origin_pqe"` - `Editable bool` Whether the setting is editable. - `Value OriginPostQuantumEncryptionGetResponseValue` Value of the Origin Post Quantum Encryption Setting. - `const OriginPostQuantumEncryptionGetResponseValuePreferred OriginPostQuantumEncryptionGetResponseValue = "preferred"` - `const OriginPostQuantumEncryptionGetResponseValueSupported OriginPostQuantumEncryptionGetResponseValue = "supported"` - `const OriginPostQuantumEncryptionGetResponseValueOff OriginPostQuantumEncryptionGetResponseValue = "off"` - `ModifiedOn Time` Last time this setting was modified. ### Example ```go package main import ( "context" "fmt" "github.com/cloudflare/cloudflare-go" "github.com/cloudflare/cloudflare-go/option" "github.com/cloudflare/cloudflare-go/origin_post_quantum_encryption" ) func main() { client := cloudflare.NewClient( option.WithAPIToken("Sn3lZJTBX6kkg7OdcBUAxOO963GEIyGQqnFTOFYY"), ) originPostQuantumEncryption, err := client.OriginPostQuantumEncryption.Get(context.TODO(), origin_post_quantum_encryption.OriginPostQuantumEncryptionGetParams{ ZoneID: cloudflare.F("023e105f4ecef8ad9ca31a8372d0c353"), }) if err != nil { panic(err.Error()) } fmt.Printf("%+v\n", originPostQuantumEncryption.ID) } ``` #### Response ```json { "errors": [ { "code": 1000, "message": "message", "documentation_url": "documentation_url", "source": { "pointer": "pointer" } } ], "messages": [ { "code": 1000, "message": "message", "documentation_url": "documentation_url", "source": { "pointer": "pointer" } } ], "success": true, "result": { "id": "origin_pqe", "editable": true, "value": "preferred", "modified_on": "2014-01-01T05:20:00.12345Z" } } ```