Skip to Content

Split Full Name

Split a full name into first and last name.

Billable OperationProviderBilling Mode
Docs
Connection
Docs
Cost per operation
Docs
pipe0-split-name
P
pipe0
Always
Managed

0.00 credits

Input Fields

string
name

Output Fields

string
first_name
string
last_name

const options = {
  method: 'POST',
  headers: {'content-type': 'application/json', authorization: 'Bearer <TOKEN>'},
  body: JSON.stringify({
    config: {environment: 'production'},
    pipes: [{pipe_id: 'people:name:split@1'}],
    input: [{id: '1', name: 'John Doe'}]
  })
};

fetch('https://api.pipe0.com/v1/pipes/run', options)
  .then(res => res.json())
  .then(res => console.log(res))
  .catch(err => console.error(err));