Application
Application endpoints
Get All
Description
Get all applications.
Parameters
headers
Authorization
string
Required
Description:
Bearer token - JWT
Example:
"Bearer <token>"
Responses
200
OK
Type:
Array of Application objects
Example:
1 2 3 4
{ _id: "0f9c0b0b4f0c6b0017f0e3b1", type: "Application" }
401
Unauthorized
Type:
Error object
Example:
1 2 3 4 5
{ name: "Invalid Role", message: "You do not have the required role to access this resource", status: 401 }
404
Not Found
Type:
Error object
Example:
1 2 3 4 5
{ name: "Entity not found", message: "Entity not found", status: 404 }
500
Internal Server Error
Type:
Error object
Example:
1 2 3 4 5
{ name: "Internal Server Error", message: "Internal Server Error", status: 500 }
get
/application/
Request
1 2 3 4
curl https://app.fassport.co/api/v1/application/ \ -X GET \ -H 'Authorization: Bearer <token>' \
Response
1 2 3 4
{ _id: "0f9c0b0b4f0c6b0017f0e3b1", type: "Application" }
Get by id
Description
Find the application that matches the {applicationId} query parameter.
Parameters
headers
Authorization
string
Required
Description:
Bearer token - JWT
Example:
"Bearer <token>"
params
applicationId
string
Required
Description:
The id of the application
Example:
"0f9c0b0b4f0c6b0017f0e3b1"
Responses
200
OK
Type:
Application object
Example:
1 2 3 4
{ _id: "0f9c0b0b4f0c6b0017f0e3b1", type: "Application" }
401
Unauthorized
Type:
Error object
Example:
1 2 3 4 5
{ name: "Invalid Role", message: "You do not have the required role to access this resource", status: 401 }
404
Not Found
Type:
Error object
Example:
1 2 3 4 5
{ name: "Entity not found", message: "Entity not found", status: 404 }
500
Internal Server Error
Type:
Error object
Example:
1 2 3 4 5
{ name: "Internal Server Error", message: "Internal Server Error", status: 500 }
get
/application/:applicationId
Request
1 2 3 4
curl https://app.fassport.co/api/v1/application/:applicationId \ -X GET \ -H 'Authorization: Bearer <token>' \
Response
1 2 3 4
{ _id: "0f9c0b0b4f0c6b0017f0e3b1", type: "Application" }
Update
Description
Update the application that matches the {applicationId} query parameter.
Parameters
headers
Authorization
string
Required
Description:
Bearer token - JWT
Example:
"Bearer <token>"
params
applicationId
string
Required
Description:
The id of the application
Example:
"0f9c0b0b4f0c6b0017f0e3b1"
Responses
200
OK
Type:
Application object
Example:
1 2 3 4
{ _id: "0f9c0b0b4f0c6b0017f0e3b1", type: "Application" }
401
Unauthorized
Type:
Error object
Example:
1 2 3 4 5
{ name: "Invalid Role", message: "You do not have the required role to access this resource", status: 401 }
404
Not Found
Type:
Error object
Example:
1 2 3 4 5
{ name: "Entity not found", message: "Entity not found", status: 404 }
500
Internal Server Error
Type:
Error object
Example:
1 2 3 4 5
{ name: "Internal Server Error", message: "Internal Server Error", status: 500 }
put
/application/:applicationId
Request
1 2 3 4
curl https://app.fassport.co/api/v1/application/:applicationId \ -X PUT \ -H 'Authorization: Bearer <token>' \
Response
1 2 3 4
{ _id: "0f9c0b0b4f0c6b0017f0e3b1", type: "Application" }
Get events
Description
Get all events for the application that matches the {applicationId} query parameter.
Parameters
headers
Authorization
string
Required
Description:
Bearer token - JWT
Example:
"Bearer <token>"
params
applicationId
string
Required
Description:
The id of the application
Example:
"0f9c0b0b4f0c6b0017f0e3b1"
Responses
200
OK
Type:
Array of Event objects
Example:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
{ _id: "0f9c0b0b4f0c6b0017f0e3b1", type: "updated", message: "User 0f9c0b0b4f0c6b0017f0e3b1 updated forwarder 0f9c0b0b4f0c6b0017f0e3b1", user: "0f9c0b0b4f0c6b0017f0e3b1", entity: "0f9c0b0b4f0c6b0017f0e3b1", entityType: "Application", refs: [ { entity: "0f9c0b0b4f0c6b0017f0e3b1", entityType: "Application" }, { entity: "0f9c0b0b4f0c6b0017f0e3b1", entityType: "Business" } ] }
401
Unauthorized
Type:
Error object
Example:
1 2 3 4 5
{ name: "Invalid Role", message: "You do not have the required role to access this resource", status: 401 }
404
Not Found
Type:
Error object
Example:
1 2 3 4 5
{ name: "Entity not found", message: "Entity not found", status: 404 }
500
Internal Server Error
Type:
Error object
Example:
1 2 3 4 5
{ name: "Internal Server Error", message: "Internal Server Error", status: 500 }
get
/application/:applicationId/events
Request
1 2 3 4
curl https://app.fassport.co/api/v1/application/:applicationId/events \ -X GET \ -H 'Authorization: Bearer <token>' \
Response
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
{ _id: "0f9c0b0b4f0c6b0017f0e3b1", type: "updated", message: "User 0f9c0b0b4f0c6b0017f0e3b1 updated forwarder 0f9c0b0b4f0c6b0017f0e3b1", user: "0f9c0b0b4f0c6b0017f0e3b1", entity: "0f9c0b0b4f0c6b0017f0e3b1", entityType: "Application", refs: [ { entity: "0f9c0b0b4f0c6b0017f0e3b1", entityType: "Application" }, { entity: "0f9c0b0b4f0c6b0017f0e3b1", entityType: "Business" } ] }
Get documents
Description
Get all documents for the application that matches the {applicationId} query parameter.
Parameters
headers
Authorization
string
Required
Description:
Bearer token - JWT
Example:
"Bearer <token>"
params
applicationId
string
Required
Description:
The id of the application
Example:
"0f9c0b0b4f0c6b0017f0e3b1"
Responses
200
OK
Type:
Array of Document objects
Example:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
{ _id: "0f9c0b0b4f0c6b0017f0e3b1", type: "Document", entityType: "User", tags: [ "2024", "W2" ], name: "Fassport", originalName: "Fassport", description: "Fassport", uploadedBy: "0f9c0b0b4f0c6b0017f0e3b1", uploadedAt: "2025-01-18T06:04:42.114Z", generatedBy: "0f9c0b0b4f0c6b0017f0e3b1", generatedAt: "2025-01-18T06:04:42.114Z", mimeType: "application/pdf", size: 1000 }
401
Unauthorized
Type:
Error object
Example:
1 2 3 4 5
{ name: "Invalid Role", message: "You do not have the required role to access this resource", status: 401 }
404
Not Found
Type:
Error object
Example:
1 2 3 4 5
{ name: "Entity not found", message: "Entity not found", status: 404 }
500
Internal Server Error
Type:
Error object
Example:
1 2 3 4 5
{ name: "Internal Server Error", message: "Internal Server Error", status: 500 }
get
/application/:applicationId/documents
Request
1 2 3 4
curl https://app.fassport.co/api/v1/application/:applicationId/documents \ -X GET \ -H 'Authorization: Bearer <token>' \
Response
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
{ _id: "0f9c0b0b4f0c6b0017f0e3b1", type: "Document", entityType: "User", tags: [ "2024", "W2" ], name: "Fassport", originalName: "Fassport", description: "Fassport", uploadedBy: "0f9c0b0b4f0c6b0017f0e3b1", uploadedAt: "2025-01-18T06:04:42.114Z", generatedBy: "0f9c0b0b4f0c6b0017f0e3b1", generatedAt: "2025-01-18T06:04:42.114Z", mimeType: "application/pdf", size: 1000 }
Resources
Docs
Pricing
Roadmap
About
Integrations