Please wait.
loading...
Log In
Email:
Password:
visibility
Don't know your password?
Security Code:
Trust this computer
Log In
Log In with Facebook
Documentation
Discussions
Explorer
Applications
Geni requires JavaScript! Please enable JavaScript in your browser's settings to use this part of Geni.
Introduction
Welcome
Terms of Use
Branding Guidelines
Rate Limits
Authentication
Introduction
Server Side Flow
Client Side Flow
Desktop Apps
Mobile Apps
Trusted Apps
App Login
Geni Applications
SDKs & Tools
JavaScript SDK
iOS SDK
API Reference
v
1
0
Introduction
▼
►
Document
add
comment
comments
delete
projects
tag
tags
untag
update
▼
►
Photo
add
comment
comments
delete
tag
tags
untag
update
▼
►
Photo Album
add
photos
update
▼
►
Profile
add
add-child
add-document
add-mugshot
add-parent
add-partner
add-photo
add-sibling
add-video
ancestors
compare
delete
documents
follow
immediate-family
merge
path-to
photos
search
unfollow
update
update-basics
videos
▼
►
Project
add_documents
add_profiles
collaborators
followers
profiles
▼
►
Relation
▼
►
Revision
▼
►
Stats
world-family-tree
▼
►
Surname
followers
profiles
▼
►
Union
add-child
add-partner
update
▼
►
User
add
followed-documents
followed-profiles
followed-projects
followed-surnames
managed-profiles
max-family
metadata
my-albums
my-labels
update-metadata
uploaded-documents
uploaded-photos
uploaded-videos
▼
►
Video
add
comment
comments
delete
tag
tags
untag
update
document/add
Uploads and creates a document.
Usage
Requires POST.
https://www.geni.com/api/document/add?title=foo&text=text-doc
Parameters
Name
Type
Description
Required
content_type
String
Content type of the file, required if file is provided
false
date
Date
The document's date in JSON form
false
description
String
The document's description
false
file
String
Base64 encoded file to create document from
false
file_name
String
Name of the file, required if file is provided
false
labels
String
The document's comma separated labels
false
source_url
String
Source URL for the document
false
text
String
Text to create document from
false
title
String
The document's title
true
Returned Fields
Name
Type
Description
attribution
String
The document's attribution
content_type
String
The document's original content type
created_at
String
Timestamp of when the document was created
date
Date
The document's date
description
String
The document's description
guid
String
The old GUID
id
String
The document's id
labels
Array of Strings
The document's labels in a comma separated list
location
Location
The document's location
page_count
Number
Number of pages in the document
sizes
DocumentImageSizeMap
URLs to the document's sizes
source_url
String
Source URL for the document
tags
Array of Strings
URLs (or ids) of profiles tagged in the document
title
String
The document's title
updated_at
String
Timestamp of when the document was last updated
url
String
The api url of the document
Note: Blank fields will not be returned to save bandwidth.
English (US)
eesti
Svenska
Español (España)
Français
עברית
Norsk (bokmål)
dansk
Nederlands
Deutsch
»
rails-1a-012
To enable the proper functioning and security of the website, we collect information via cookies as specified in our
Cookie Policy
. Geni does not use any third-party cookies.
Great!