curl
or Postman, to complete the following steps. You must have the following:
unstructured-client
package installed into your local Python virtual environment.
curl
or Postman installed on your local development machine.
https://platform.unstructuredapp.io/api/v1
.
However, you should always use the URL that was provided to you when your Unstructured account was created.UNSTRUCTURED_API_URL
, set to the Workflow Endpoint API URL for your Unstructured user account.UNSTRUCTURED_API_KEY
, set to the API key for your Unstructured user account.Python
curl
pem_key
field from the output. Ignore the tenant_id
and user_id
fields.Postman
unstructured-api-key
, Value: {{UNSTRUCTURED_API_KEY}}
accept
, Value: application/json
pem_key
field from the response body. Ignore the tenant_id
and user_id
fields.
encrypted_aes_key
, aes_iv
, encrypted_value
, and type
. All of the keys’ values except the one for type
are
Base64-encoded.
This step can be completed only by using Python on your local development machine.
Python
cryptography
package into your
Python virtual environment.The following envelope_encrypt
function encrypts the target plain-text string by using envelope encryption. You must supply the function with the
PEM version of the public key for your Unstructured user account that you got from the previous step, and the plain-text version
of the secret that you want to encrypt.envelope_encrypt
function with code similar to the following. This code gets
the plain-text contents of the specified service account key file for
a Google Cloud service account. The code then encrypts the plain-text contents
by using the PEM version of the public key file for the user in the Unstructured account.id
and type
.
Python
curl
Postman
unstructured-api-key
, Value: {{UNSTRUCTURED_API_KEY}}
accept
, Value: application/json
Content-Type
, Value: application/json
Python
curl
Postman
unstructured-api-key
, Value: {{UNSTRUCTURED_API_KEY}}
accept
, Value: application/json
content-Type
, Value: application/json