# Homerun

> Manage job applications, notes, files and tags in Homerun, read vacancies and their questions, and watch for new and changed applications and vacancies.

App · 23 actions. Web page: https://docs.lodol.com/docs/integrations/homerun

## Actions

### Add a note

Add a note to a job application.

**Inputs**

- Job application ID (`job_application_id`, text, required): The ID of the job application.
- Note (`note`, text, required): The note, up to 2,000 characters.
- Author name (`display_name`, text, required): The name shown as the note's author.
- Sensitive (`is_sensitive`, true/false): Mark the note as sensitive.

**Outputs**

- `data` (object): The response from Homerun.

**Example output**

```json
{
  "data": {
    "data": {
      "created_at": "example",
      "display_name": "example",
      "id": "example",
      "is_sensitive": false,
      "note": "example",
      "updated_at": "example"
    }
  }
}
```

### Create a job application

Add a candidate to Homerun, on a vacancy or on the candidates page.

**Inputs**

- First name (`first_name`, text, required): The candidate's first name.
- Last name (`last_name`, text, required): The candidate's last name.
- Email (`email`, text, required): The candidate's email address.
- Vacancy (`vacancy_id`, text): The open or private vacancy the candidate applies to. Leave it empty to add them to the candidates page only.
- Phone number (`phone_number`, text): The candidate's phone number.
- City (`city`, text): The city the candidate lives in.
- Country (`country`, text): The country the candidate lives in.
- Date of birth (`date_of_birth`, date): The candidate's date of birth.
- Sourced (`sourced`, true/false): Whether your team sourced the candidate, rather than the candidate applying.
- LinkedIn (`linkedin`, text): A link to the candidate's LinkedIn profile.
- Website (`website`, text): A link to the candidate's website.
- GitHub (`github`, text): A link to the candidate's GitHub profile.
- Experience (`experience`, text): The candidate's work experience, as text.
- Education (`education`, text): The candidate's education, as text.
- Pronouns (`pronouns`, text): The candidate's pronouns.
- Assignment (`assignment`, text): The text part of the candidate's assignment.
- Custom data (`custom_data`, object): Extra details to keep on the application, as names and values.
- Consented (`consented`, true/false): Whether the candidate agreed to their details being kept for longer.
- Retention period ends at (`retention_period_ends_at`, date and time): When Homerun stops keeping the candidate's details. Must be after today. Leave it empty to use your company's retention settings.

**Outputs**

- `data` (object): The response from Homerun.

**Example output**

```json
{
  "data": {
    "data": {
      "assignment": "example",
      "consented": false,
      "created_at": "example",
      "custom_data": {
        "different_key": "example",
        "key": "example"
      },
      "disqualification_reason": {
        "name": "example"
      },
      "disqualified": false,
      "education": "example",
      "experience": "example",
      "facebook": "example",
      "files": [],
      "first_reply_at": "example",
      "github": "example",
      "hired_at": "example",
      "homerun_url": "example",
      "id": "example",
      "linkedin": "example",
      "notes": [],
      "personal_info": {
        "city": "example",
        "country": "example",
        "date_of_birth": "example",
        "email": "example",
        "first_name": "example",
        "last_name": "example",
        "phone_number": "example",
        "photo": "example"
      },
      "pronouns": "example",
      "question_answers": [],
      "rating": 1.0,
      "retention_period_ends_at": "example",
      "retention_request_status": "no_request",
      "skype": "example",
      "sourced": false,
      "sources": [],
      "stage": {
        "id": "example",
        "name": "example"
      },
      "total_votes": 1,
      "traffic_source": {
        "domain": "example",
        "name": "example"
      },
      "twitter": "example",
      "vacancy_id": "example",
      "website": "example"
    }
  }
}
```

### Create a tag

Create a tag.

**Inputs**

- Name (`name`, text, required): The tag's name, unique in your company regardless of case. Up to 128 characters.

**Outputs**

- `data` (object): The response from Homerun.

**Example output**

```json
{
  "data": {
    "data": {
      "id": "example",
      "name": "example"
    }
  }
}
```

### Delete a job application

Delete a job application.

**Inputs**

- Job application ID (`job_application_id`, text, required): The ID of the job application.

**Outputs**

- `data` (object): The response from Homerun.

**Example output**

```json
{
  "data": {}
}
```

### Delete a note

Delete a note from a job application.

**Inputs**

- Job application ID (`job_application_id`, text, required): The ID of the job application.
- Note ID (`note_id`, text, required): The ID of the note.

**Outputs**

- `data` (object): The response from Homerun.

**Example output**

```json
{
  "data": {}
}
```

### Delete a tag

Delete a tag. It is also removed from every candidate it was on.

**Inputs**

- Tag (`tag_id`, text, required): The tag.

**Outputs**

- `data` (object): The response from Homerun.

**Example output**

```json
{
  "data": {}
}
```

### Get a job application

Get one job application, with its stage.

**Inputs**

- Job application ID (`job_application_id`, text, required): The ID of the job application.
- Include (`include`, list): Extra details to include. One or more of: `notes`, `sources`, `vacancy`, `trafficSource`, `disqualificationReason`, `questionAnswers`.

**Outputs**

- `data` (object): The response from Homerun.

**Example output**

```json
{
  "data": {
    "data": {
      "assignment": "example",
      "consented": false,
      "created_at": "example",
      "custom_data": {
        "different_key": "example",
        "key": "example"
      },
      "disqualification_reason": {
        "name": "example"
      },
      "disqualified": false,
      "education": "example",
      "experience": "example",
      "facebook": "example",
      "files": [],
      "first_reply_at": "example",
      "github": "example",
      "hired_at": "example",
      "homerun_url": "example",
      "id": "example",
      "linkedin": "example",
      "notes": [],
      "personal_info": {
        "city": "example",
        "country": "example",
        "date_of_birth": "example",
        "email": "example",
        "first_name": "example",
        "last_name": "example",
        "phone_number": "example",
        "photo": "example"
      },
      "pronouns": "example",
      "question_answers": [],
      "rating": 1.0,
      "retention_period_ends_at": "example",
      "retention_request_status": "no_request",
      "skype": "example",
      "sourced": false,
      "sources": [],
      "stage": {
        "id": "example",
        "name": "example"
      },
      "total_votes": 1,
      "traffic_source": {
        "domain": "example",
        "name": "example"
      },
      "twitter": "example",
      "vacancy_id": "example",
      "website": "example"
    }
  }
}
```

### Get a vacancy

Get one vacancy.

**Inputs**

- Vacancy (`vacancy_id`, text, required): The vacancy.
- Include (`include`, list): Extra details to include, such as its hiring `stages`. One or more of: `location`, `department`, `stages`, `salaryIndication`, `total_candidate_count` (Total candidate count), `page_content` (Page content).

**Outputs**

- `data` (object): The response from Homerun.

**Example output**

```json
{
  "data": {
    "data": {
      "application_form_url": "example",
      "created_at": "example",
      "department": {
        "name": "example"
      },
      "description": "example",
      "expires_at": "example",
      "id": "example",
      "is_remote": false,
      "job_url": "example",
      "location": {
        "address": "example",
        "city": "example",
        "country": "example",
        "name": "example",
        "postal_code": "example",
        "region": "example"
      },
      "location_type": "on-site",
      "page_content": "example",
      "salary_indication": {
        "currency": "example",
        "experience_level": "entry",
        "max_salary_value": "example",
        "salary_value": "example",
        "time_period": "hour"
      },
      "share_image_url": "example",
      "stages": [],
      "status": "public",
      "title": "example",
      "total_candidate_count": 1,
      "type": "Contracted"
    }
  }
}
```

### List a candidate's tags

List the tags on a job application.

**Inputs**

- Job application ID (`job_application_id`, text, required): The ID of the job application.
- Page (`page`, number): Which page of results to return, starting at 1. At least 1.
- Per page (`per_page`, number): How many records to return on each page, up to 100. From 1 to 100.

**Outputs**

- `data` (object): The response from Homerun.

**Example output**

```json
{
  "data": {
    "data": []
  }
}
```

### List job applications

List job applications, with filters for vacancy, stage, hire date and disqualification.

**Inputs**

- Vacancy (`vacancy_id`, text): Only applications to this vacancy.
- Stage (`stage`, text): Only applications in the stage with this name, such as `hired`.
- Hired after (`hired_after`, date): Only candidates hired after this date.
- Disqualified (`disqualified`, true/false): Only disqualified, or only qualified, applications.
- Include (`include`, list): Extra details to include with each application. One or more of: `sources`, `stage`, `vacancy`, `trafficSource`, `disqualificationReason`, `questionAnswers`.
- Page (`page`, number): Which page of results to return, starting at 1. At least 1.
- Per page (`per_page`, number): How many records to return on each page, up to 100. From 1 to 100.

**Outputs**

- `data` (object): The response from Homerun.

**Example output**

```json
{
  "data": {
    "data": []
  }
}
```

### List notes

List the notes on a job application.

**Inputs**

- Job application ID (`job_application_id`, text, required): The ID of the job application.
- Page (`page`, number): Which page of results to return, starting at 1. At least 1.
- Per page (`per_page`, number): How many records to return on each page, up to 100. From 1 to 100.

**Outputs**

- `data` (object): The response from Homerun.

**Example output**

```json
{
  "data": {
    "data": []
  }
}
```

### List tags

List your company's tags.

**Inputs**

- Page (`page`, number): Which page of results to return, starting at 1. At least 1.
- Per page (`per_page`, number): How many records to return on each page, up to 100. From 1 to 100.

**Outputs**

- `data` (object): The response from Homerun.

**Example output**

```json
{
  "data": {
    "data": []
  }
}
```

### List vacancies

List your vacancies, optionally by status.

**Inputs**

- Status (`status`, list): Only vacancies with these statuses. One or more of: `public`, `private`, `draft`, `closed`.
- Include (`include`, list): Extra details to include with each vacancy. One or more of: `location`, `department`, `stages`, `salaryIndication`, `total_candidate_count` (Total candidate count), `page_content` (Page content).
- Page (`page`, number): Which page of results to return, starting at 1. At least 1.
- Per page (`per_page`, number): How many records to return on each page, up to 100. From 1 to 100.

**Outputs**

- `data` (object): The response from Homerun.

**Example output**

```json
{
  "data": {
    "data": []
  }
}
```

### List vacancy questions

List the questions on a vacancy's application form, in its default language.

**Inputs**

- Vacancy (`vacancy_id`, text, required): The vacancy.

**Outputs**

- `data` (object): The response from Homerun.

**Example output**

```json
{
  "data": {
    "data": []
  }
}
```

### Rename a tag

Rename a tag.

**Inputs**

- Tag (`tag_id`, text, required): The tag.
- Name (`name`, text, required): The tag's new name, up to 128 characters.

**Outputs**

- `data` (object): The response from Homerun.

**Example output**

```json
{
  "data": {
    "data": {
      "id": "example",
      "name": "example"
    }
  }
}
```

### Send the confirmation email

Send the candidate the vacancy's "thanks for applying" email. Homerun sends it at most once per application.

**Inputs**

- Job application ID (`job_application_id`, text, required): The ID of the job application.

**Outputs**

- `data` (object): The response from Homerun.

**Example output**

```json
{
  "data": {
    "data": {
      "created_at": "example",
      "language": "example",
      "subject": "example",
      "to_email": "example"
    }
  }
}
```

### Submit answers

Answer the vacancy's application-form questions for a candidate.

**Inputs**

- Job application ID (`job_application_id`, text, required): The ID of the job application.
- Answers (`answers`, object, required): The candidate's answers, by question ID from **List vacancy questions**: text as text, yes-no as `yes` or `no`, multiple choice as a list of the chosen options. Sending an answer again replaces it.

**Outputs**

- `data` (object): The response from Homerun.

**Example output**

```json
{
  "data": {
    "data": []
  }
}
```

### Tag a candidate

Add an existing tag to a job application. Its other tags stay.

**Inputs**

- Job application ID (`job_application_id`, text, required): The ID of the job application.
- Tag (`tag_id`, text, required): The tag to add.

**Outputs**

- `data` (object): The response from Homerun.

**Example output**

```json
{
  "data": {
    "data": {
      "id": "example",
      "name": "example"
    }
  }
}
```

### Untag a candidate

Remove a tag from a job application. The tag itself stays.

**Inputs**

- Job application ID (`job_application_id`, text, required): The ID of the job application.
- Tag (`tag_id`, text, required): The tag.

**Outputs**

- `data` (object): The response from Homerun.

**Example output**

```json
{
  "data": {}
}
```

### Update a job application

Change a candidate's details or move the application to another stage or vacancy. Only the fields you fill in are changed.

**Inputs**

- Job application ID (`job_application_id`, text, required): The ID of the job application.
- First name (`first_name`, text): The candidate's first name.
- Last name (`last_name`, text): The candidate's last name.
- Email (`email`, text): The candidate's email address.
- Vacancy (`vacancy_id`, text): Move the application to this open or private vacancy.
- Phone number (`phone_number`, text): The candidate's phone number.
- City (`city`, text): The city the candidate lives in.
- Country (`country`, text): The country the candidate lives in.
- Date of birth (`date_of_birth`, date): The candidate's date of birth.
- Sourced (`sourced`, true/false): Whether your team sourced the candidate, rather than the candidate applying.
- LinkedIn (`linkedin`, text): A link to the candidate's LinkedIn profile.
- Website (`website`, text): A link to the candidate's website.
- GitHub (`github`, text): A link to the candidate's GitHub profile.
- Experience (`experience`, text): The candidate's work experience, as text.
- Education (`education`, text): The candidate's education, as text.
- Pronouns (`pronouns`, text): The candidate's pronouns.
- Assignment (`assignment`, text): The text part of the candidate's assignment.
- Custom data (`custom_data`, object): Extra details to keep on the application, as names and values.
- Consented (`consented`, true/false): Whether the candidate agreed to their details being kept for longer.
- Retention period ends at (`retention_period_ends_at`, date and time): When Homerun stops keeping the candidate's details. Must be after today. Leave it empty to use your company's retention settings.
- Stage ID (`stage_id`, text): Move the application to this hiring stage of its vacancy. The vacancy's stages are listed by **Get a vacancy** with `stages` included.

**Outputs**

- `data` (object): The response from Homerun.

**Example output**

```json
{
  "data": {
    "data": {
      "assignment": "example",
      "consented": false,
      "created_at": "example",
      "custom_data": {
        "different_key": "example",
        "key": "example"
      },
      "disqualification_reason": {
        "name": "example"
      },
      "disqualified": false,
      "education": "example",
      "experience": "example",
      "facebook": "example",
      "files": [],
      "first_reply_at": "example",
      "github": "example",
      "hired_at": "example",
      "homerun_url": "example",
      "id": "example",
      "linkedin": "example",
      "notes": [],
      "personal_info": {
        "city": "example",
        "country": "example",
        "date_of_birth": "example",
        "email": "example",
        "first_name": "example",
        "last_name": "example",
        "phone_number": "example",
        "photo": "example"
      },
      "pronouns": "example",
      "question_answers": [],
      "rating": 1.0,
      "retention_period_ends_at": "example",
      "retention_request_status": "no_request",
      "skype": "example",
      "sourced": false,
      "sources": [],
      "stage": {
        "id": "example",
        "name": "example"
      },
      "total_votes": 1,
      "traffic_source": {
        "domain": "example",
        "name": "example"
      },
      "twitter": "example",
      "vacancy_id": "example",
      "website": "example"
    }
  }
}
```

### Update a note

Change a note's text or whether it is sensitive. Its author can't be changed.

**Inputs**

- Job application ID (`job_application_id`, text, required): The ID of the job application.
- Note ID (`note_id`, text, required): The ID of the note.
- Note (`note`, text): The note's new text, up to 2,000 characters.
- Sensitive (`is_sensitive`, true/false): Mark the note as sensitive, or not.

**Outputs**

- `data` (object): The response from Homerun.

**Example output**

```json
{
  "data": {
    "data": {
      "created_at": "example",
      "display_name": "example",
      "id": "example",
      "is_sensitive": false,
      "note": "example",
      "updated_at": "example"
    }
  }
}
```

### Upload a file

Attach a résumé or assignment file to a job application.

**Inputs**

- Job application ID (`job_application_id`, text, required): The ID of the job application.
- File type (`type`, text, required): What the file is. One of: `resume`, `assignment`.
- File (`file`, text, required): The file, from the workflow or a public link. Up to 25 MB.

**Outputs**

- `data` (object): The response from Homerun.

**Example output**

```json
{
  "data": {
    "data": {
      "name": "example",
      "temporary_download_url": "example",
      "type": "resume"
    }
  }
}
```

### Upload a photo

Set the candidate's photo, replacing any photo they already have.

**Inputs**

- Job application ID (`job_application_id`, text, required): The ID of the job application.
- Photo (`file`, text, required): A JPG, PNG or GIF image, from the workflow or a public link. Up to 5 MB.

**Outputs**

- `data` (object): The response from Homerun.

**Example output**

```json
{
  "data": {
    "data": {
      "consented": false,
      "created_at": "example",
      "disqualification_reason": {
        "name": "example"
      },
      "disqualified": false,
      "first_reply_at": "example",
      "hired_at": "example",
      "homerun_url": "example",
      "id": "example",
      "notes": [],
      "personal_info": {
        "city": "example",
        "country": "example",
        "date_of_birth": "example",
        "email": "example",
        "first_name": "example",
        "last_name": "example",
        "phone_number": "example",
        "photo": "example"
      },
      "question_answers": [],
      "rating": 1.0,
      "retention_period_ends_at": "example",
      "retention_request_status": "no_request",
      "sourced": false,
      "sources": [],
      "stage": {
        "id": "example",
        "name": "example"
      },
      "total_votes": 1,
      "traffic_source": {
        "domain": "example",
        "name": "example"
      },
      "vacancy_id": "example"
    }
  }
}
```
