POST /user/:userID/resume

Upload PDF/DOCX resume file or custom JSON file

PDF/DOCX IMPORT

Upload a resume file

POST https://open-api.rezi.ai/v1/user/:userID/resume

Path Parameters

Name
Type
Description

userID*

String

User ID

Headers

Name
Type
Description

Content-Type*

String

application/pdf

Content-Length*

Integer

File length

Request Body

Name
Type
Description

file*

file

file

{
    // Response
}

CURL Example:

curl --location --request POST 'https://open-api.rezi.ai/v1/user/{userID}/resume' \
--header 'Authorization: Bearer {YOUR PRIVATE TOKEN}' \
--form '=@"/path/to/file/resume.pdf"'

NODE JS (REQUEST) Example:

var request = require('request');
var fs = require('fs');
var options = {
  'method': 'POST',
  'url': 'https://open-api.rezi.ai/v1/user/{userID}/resume',
  'headers': {
    'Authorization': 'Bearer {YOUR PRIVATE TOKEN}'
  },
  formData: {
    '': {
      'value': fs.createReadStream('/path/to/file/resume.pdf'),
      'options': {
        'filename': 'resume.pdf',
        'contentType': null
      }
    }
  }
};
request(options, function (error, response) {
  if (error) throw new Error(error);
  console.log(response.body);
});

JSON IMPORT

To use JSON import, first contact your account administrator to get your custom JSON parser integrated to our system.

Upload a resume file

POST https://open-api.rezi.ai/v1/user/:userID/resume

Path Parameters

Name
Type
Description

userID*

String

User ID

Query Parameters

Name
Type
Description

type*

String

"JSON"

client

String

"your_rms_name", you need to communicate your json format to the team first

Headers

Name
Type
Description

Content-Type*

String

application/json

Content-Length*

Integer

File length

Request Body

Name
Type
Description

*

String

{
    // Response
}

CURL Example:

curl --location --request POST 'https://open-api.rezi.ai/v1/user/{userID}/resume?type=json&client=your_rms_name' \
--header 'Authorization: Bearer {YOUR PRIVATE TOKEN}' \
--header 'Content-Type: application/json' \
--data-raw '{
    "Result": {
        "Success": true,
        "ErrorMessage": ""
    },
    "Data": {
        "Student": {
           ...
        },
        "Records": [
            {...},
            {...}
        ]
    }
}'

NODE JS (REQUEST) Example:

var request = require('request');
var options = {
  'method': 'POST',
  'url': 'https://open-api.rezi.ai/v1/user/{userID}/resume?type=json&client=your_rms_name'
  'headers': {
    'Content-Type': 'application/json',
    'Authorization': 'Bearer {YOUR PRIVATE TOKEN}'
  },
  body: JSON.stringify({
    "Result": {
      "Success": true,
      "ErrorMessage": ""
    },
    "Data": {
        "Student": {
           ...
        },
        "Records": [
            {...},
            {...}
        ]
    }
  })

};
request(options, function (error, response) {
  if (error) throw new Error(error);
  console.log(response.body);
});

Last updated