JavaScript
import Morphik from 'morphik';
const client = new Morphik({
apiKey: process.env['MORPHIK_API_KEY'], // This is the default and can be omitted
});
const apiKey = await client.apiKeys.create({ api_key: 'api_key', provider: 'provider' });
console.log(apiKey);curl https://api.morphik.ai/api-keys \
-H 'Content-Type: application/json' \
-H "Authorization: Bearer $MORPHIK_API_KEY" \
-d '{
"api_key": "api_key",
"provider": "provider"
}'{}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}models
Save Api Key
Save API key for a provider.
POST
/
api-keys
JavaScript
import Morphik from 'morphik';
const client = new Morphik({
apiKey: process.env['MORPHIK_API_KEY'], // This is the default and can be omitted
});
const apiKey = await client.apiKeys.create({ api_key: 'api_key', provider: 'provider' });
console.log(apiKey);curl https://api.morphik.ai/api-keys \
-H 'Content-Type: application/json' \
-H "Authorization: Bearer $MORPHIK_API_KEY" \
-d '{
"api_key": "api_key",
"provider": "provider"
}'{}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Was this page helpful?

