Skip to content

Skyvern: Apply to a job

Skyvern recipes.applyToJob: arguments, response, policy and SDK examples.

← Recipes operations · Get started

Operation skyvern.apply_to_job_v1_recipes_jobs_apply_post

Provider route: POST /v1/recipes/jobs/apply. Alter supplies the connection’s credentials and routing.

Install @alter-ai/sdk @alter-ai/skyvern with npm, or alter-sdk-skyvern with pip. Supply your connected customer’s grant ID and the arguments described below.

import { App } from "@alter-ai/sdk";
import { SkyvernIntegration } from "@alter-ai/skyvern";
async function execute(input: Parameters<SkyvernIntegration["recipes"]["applyToJob"]>[0]) {
const app = new App({ apiKey: process.env.ALTER_API_KEY! });
try {
const provider = new SkyvernIntegration(app, { grantId: process.env.PROVIDER_GRANT_ID! });
const call = await provider.recipes.applyToJob(input);
const result = await call.wait();
return result.bodyJson();
} finally {
await app.close();
}
}
import os
from alter_sdk import App
from alter_sdk_skyvern import SkyvernIntegration
async def execute(arguments):
async with App(api_key=os.environ["ALTER_API_KEY"]) as app:
provider = SkyvernIntegration(app, {"grant_id": os.environ["PROVIDER_GRANT_ID"]})
call = await provider.recipes.apply_to_job(arguments)
result = await call.wait()
return result.body_json()
FieldTypePresenceDescription and constraints
$objectRootAdditional keys: not allowed
bodyobjectRequired within parentOpenAPI representation of the text and file parts accepted by Apply.
Additional keys: not allowed
body.2fa_identifierJSONOptional
body.2fa_identifier (anyOf 1)stringAlternative
body.2fa_identifier (anyOf 2)nullAlternative
body.custom_promptstringRequired within parent
body.error_code_mappingJSONOptionalJSON text containing an object of error codes and descriptions. Omit for the recipe default; JSON null or {} disables mapping. A supplied mapping replaces the default independently of terminate_criterion.
Default: {“job_expired”: “The requested job posting explicitly states that it is expired, closed, filled, or no longer accepting applications.”}
body.error_code_mapping (anyOf 1)stringAlternative
body.error_code_mapping (anyOf 2)nullAlternative
body.job_urlstringRequired within parentFormat: uri
body.other_informationJSONOptional
body.other_information (anyOf 1)stringAlternative
body.other_information (anyOf 2)nullAlternative
body.passwordJSONOptional
body.password (anyOf 1)stringAlternative
body.password (anyOf 2)nullAlternative
body.persist_credentialsJSONOptional
body.persist_credentials (anyOf 1)stringAlternativePattern: ^true$
body.persist_credentials (anyOf 2)nullAlternative
body.proxy_locationJSONOptionalA ProxyLocation name such as RESIDENTIAL_GB, or JSON text for a GeoTarget or custom proxy object. Omit it or send blank text to use the default; Skyvern Cloud then uses RESIDENTIAL.
body.proxy_location (anyOf 1)stringAlternative
body.proxy_location (anyOf 2)nullAlternative
body.resume_fileobjectRequired within parentAdditional keys: not allowed
body.resume_file.filenamestringRequired within parentMinimum length: 1
body.resume_file.content_typestringRequired within parentMinimum length: 1
body.resume_file.content_base64stringRequired within parent
body.terminate_criterionJSONOptionalCondition that stops Apply. Omit for the recipe default; empty text disables it.
Default: Terminate when the requested job posting explicitly states that it is expired, closed, filled, or no longer accepting applications. A missing Apply button or redirect alone is insufficient.
body.terminate_criterion (anyOf 1)stringAlternative
body.terminate_criterion (anyOf 2)nullAlternative
body.usernameJSONOptional
body.username (anyOf 1)stringAlternativeMinimum length: 1
body.username (anyOf 2)nullAlternative
body.webhook_urlJSONOptionalAfter a run is finished, send an update to this URL. Refer to https://www.skyvern.com/docs/running-tasks/webhooks-faq for more details.
Format: uri
body.webhook_url (anyOf 1)stringAlternative
body.webhook_url (anyOf 2)nullAlternative

Response media type: application/json. The table describes the pinned successful response. Referenced models link to their complete fields.

FieldTypePresenceDescription and constraints
$ModelRootExpand Apply to a job — response body

Referenced models: Apply to a job — response body

Apply to a job — response body
FieldTypePresenceDescription and constraints
$objectRootAdditional keys: not allowed
workflow_run_idstringRequired within parentPattern: ^wr_

SDK function policy ID: skyvern.apply_to_job_v1_recipes_jobs_apply_post. Catalog operation: apply_to_job_v1_recipes_jobs_apply_post. Rules can name either ID; function rules distinguish managed calls and conservatively cover raw calls sharing the route. Existing grant permissions and policy rules apply. wait() returns an immediate result or waits for a required approval; it never approves the request itself. Persist the approval ID to resume after a restart.

Provider errors retain their response; JSON decoding raises ProviderAPIError for provider failures. ManagedOperationError identifies contract/input/retention errors. See error handling and provider-specific behavior. Sensitive input may be refused before approval storage. A decoding error never resubmits a write.

Official provider source

Report an issue with this page

Necessary

Required for sign-in, security, authorization, and remembering your choices.

Always active

Analytics

Helps us understand which product and documentation features are useful.

Performance diagnostics

Uses performance tracing and privacy-masked session replay to diagnose problems.

You can change these choices at any time from Cookie settings.