Superface

Get CV

recruitment/get-cv@1.0.0
14 providers

Get CV

Get a candidate's CV document, by candidate ID. Returns either a URL, or binary data of the CV document, depending on the provider.

Input
Contact ID
Result
Curriculum Vitae
Rate limit

1.Choose a provider

2.Use GetCV with mock in your code

Below instructions are for our Node.js SDK. Use OneService for other languages.
npm i @superfaceai/one-sdk
const { SuperfaceClient } = require('@superfaceai/one-sdk');

// You can manage tokens here: https://superface.ai/insights
const sdk = new SuperfaceClient({ sdkAuthToken: '<< Login to get your token >>' });

async function run() {
  // Load the profile
  const profile = await sdk.getProfile('recruitment/get-cv@1.0.0');

  // Use the profile
  const result = await profile
    .getUseCase('GetCV')
    .perform({
      candidateId: 'CANDIATE_ID'
    }, {
      provider: 'mock'
    });

  // Handle the result
  try {
    const data = result.unwrap();
    console.log(data);
  } catch (error) {
    console.error(error);
  }
}

run();

Structure details

Input (object)

candidateId
Unique identifier of the candidate. Use the `recruitment/list-candidates` profile to get candidate IDs.

Example

{
  "candidateId": "CANDIATE_ID"
}

Result (object)

cv
The CV of the candidate.
createdAt
ISO8601 timestamp of when the CV was uploaded.
document
Binary content and file name of the CV document.
fileName
The file name of the CV document.
content
The content of the CV document.
documentUrl
The URL of the CV document.
rateLimit
Rate limit details.
bucket
Different parts of the API may have different rate limits. Bucket identifies which part of API the rate limits apply to.
totalRequests
Total requests available in the time window.
remainingRequests
Remaining requests available in the time window.
remainingRequestsPercentage
Remaining requests available in the time window in percents.
resetTimestamp
Timestamp when the rate limits will reset (in Unix Timestamp format). Available only for providers without rolling rate limit window.

Example

{
  "cv": {
    "createdAt": "2023-01-05T10:04:58.325Z",
    "document": {
      "fileName": "cv.pdf",
      "content": "<BinaryData>"
    }
  }
}

Implementation details

Provider
mock
Use case
GetCV
Author
@superface
Source
Verified