This page is for a WordPress site whose job application form is built with Gravity Forms. Each new entry is sent from your WordPress server to Recruit Swipe by Gravity Forms’ Webhooks add-on, so the key stays on the server and the form looks exactly as it does today. If your Gravity Forms license does not include the Webhooks add-on, skip to without the add-on.
What you need
- A secret key (
rs_sk_…) from Settings → Sources → Developer & API in the app. Use a secret key here, not a public form key: the request comes from your WordPress server, which sends no browser origin, so a public key would be refused. - The job id of the job the form is for. Copy it from
GET /jobs(see the quickstart). - The Gravity Forms Webhooks add-on, installed and active. Whether your license includes it depends on your Gravity Forms plan.
1. Add a hidden job field
In the form editor, add a Hidden field, label it “Job ID”, and set its default value to the job id. One form per job is simplest. For one form across several jobs, use a Drop Down field instead whose choice values are job ids.
2. Create the webhook feed
Open the form’s Settings → Webhooks and add a new feed:
| Setting | Value |
|---|---|
| Request URL | https://lbhikadtsmbnzkzetpyb.supabase.co/functions/v1/api/v1/applications |
| Request Method | POST |
| Request Format | JSON (FORM also works) |
| Request Headers | Name X-Api-Key, value your rs_sk_… key |
| Request Body | Select Fields |
Choose Select Fields rather than All Fields. All Fields sends Gravity Forms’ internal field numbers (1.3, 4) as names, which we would not recognise and would keep as answers called “1.3”.
3. Map the fields
Under Field Values, add one row per field. The key on the left is our field name; the value on the right is your form field.
| Key | Gravity Forms value |
|---|---|
job_id |
The hidden Job ID field |
first_name |
Name (First) |
last_name |
Name (Last) |
email |
|
phone |
Phone |
linkedin |
Your LinkedIn URL field, if you have one |
resume_url |
The File Upload field |
idempotency_key |
Add Custom Value: gf-{entry_id} |
source |
Add Custom Value: website |
Any question, e.g. Why do you want this role? |
That question’s field |
Notes on a few of them:
- Name. If your form uses a single text field for the name, map it to
nameinstead offirst_nameandlast_name. - Resume. A Gravity Forms file upload is stored on your WordPress site, and the field’s value is its address. Mapped to
resume_url, that address is saved on the candidate as a link. We never download it, so it only opens for people who can reach that address; if your uploads folder is protected, the link will not open from the app. Keep the field to a single file: with multiple files allowed, Gravity Forms sends a list of addresses instead of one. idempotency_key.{entry_id}is Gravity Forms’ merge tag for the entry number. If Gravity Forms resends an entry, we recognise the key and answer200with the existing application rather than making a second one.- Answers. Every key that is not one of our field names is kept on the application as an answer under that key. Values must be text: up to 40 answers, keys up to 64 characters, values up to 4,000. The API reference has the full list of names we recognise.
Save the feed, submit a test entry from the live form, and look for the person in the job’s Applied stage.
Checking a failed send
Gravity Forms records each webhook request in the entry’s Notes and, with logging turned on in Forms → Settings → Logging, the full response in the Webhooks add-on log. Our response body says what went wrong:
{
"error": "validation_failed",
"message": "Some fields are missing or invalid.",
"fields": { "email": "Give an email, a phone number or a LinkedIn URL." }
}
Without the add-on
Gravity Forms itself cannot post anywhere else, but WordPress can hold a plain HTML form. Add a Custom HTML block to your careers page and paste the form from the HTML form page, with a public form key (rs_pk_…) whose allowed origins include your site, for example https://www.example.com. That form posts from the visitor’s browser straight to us, so Gravity Forms is not involved and the entries do not appear in WordPress.
Some WordPress setups remove <form> or <script> tags from posts for users who are not administrators. Add the block as an administrator, and if the job picker’s script is stripped, use the hidden job_id version.
If it doesn’t work
401 invalid_key. TheX-Api-Keyheader is missing, misspelled, or holds a revoked key. Check the header name in the feed.402 plan_required. The workspace owner is not on a paid plan.403 origin_not_allowed. You used a public key in the feed. Feeds need a secret key.404 not_found. The Job ID field’s value is not one of your workspace’s jobs.422 job_not_open. The job was closed or put on hold, or it is a job synced from your ATS. Reopen it, or point the form at an open job you created in the app.422 validation_failed. Thefieldsobject names what is missing. Usually the name mapping (name, orfirst_namewithlast_name) or all ofemail,phoneandlinkedinare unmapped.