Skip to contentSkip to navigationSkip to topbar
On this page
Looking for more inspiration?Visit the
(information)
You're in the right place! Segment documentation is now part of Twilio Docs. The content you are used to is still here—just in a new home with a refreshed look.

Moesif API Analytics Source


Source Info
  • The Moesif API Analytics Source is an Event Cloud source. This means that it sends data as events, which are behaviors or occurrences tied to a user and a point in time. Data from these sources can be loaded into your Segment warehouses, and also sent to Segment streaming destinations. Learn more about cloud sources.
  • This integration is partner owned. Please reach out to the partner's support for any issues.
(warning)

This Source is supported in US data processing regions.

This Source is only supported in workspaces configured to process data in the US region. Workspaces configured with data processing regions outside of the US cannot connect to this source. For more information, see Regional Segment.

Moesif API Analytics(link takes you to an external page) helps you drive API adoption, usage, and retention. With Moesif, track your customer journey from initial ad click to first API call while identifying at-risk customers struggling to integrate with your APIs.

The Moesif SDKs and API gateway plugins(link takes you to an external page) are open-source and support REST, GraphQL, and other APIs.

This source is maintained by Moesif. For any issues with the source, contact the Moesif team.


Getting started

getting-started page anchor
  1. From your Segment UI's Sources page click on "Add Source".
  2. Select Moesif API Analytics within the Source Catalog and confirm adding the source.
  3. Give the Source a nickname and follow the set up flow to "Add Source".
  4. Copy the Write Key from the added source. You'll need this later in Moesif.
  5. Log into your Moesif account(link takes you to an external page), go to the Settings menu and click Extensions.
  6. Select the Segment Extension within the extensions gallery and add your write key under Add Partner Key.

Moesif sends an identify() message to Segment which consists of the userId and the user traits.

Field(s)TypeDescription
userIdStringUnique identifier for the user in Moesif
contextObjectUser context like IP address and location.
traitsObjectCustom traits of the user (See Traits Object)

The integration maps user metadata in Moesif to the Segment trait called metadata. If the user is linked to a company in Moesif, the integration maps the associated company to a Segment object called company.

FieldTypeDescription
idStringUser Id (Same as userId in parent object)
createdAtDateTime when user was created in Moesif
modifiedTimeDateTime when user was last modified
firstSeenTimeDateTime user was first seen on the API
lastSeenTimeDateTime user was last seen on the API
nameStringUser's Full Name
emailStringUser's email
usernameStringUsername such as a Twitter handle
companyObjectCompany in Moesif (See Company Object)
campaignObjectMarketing campaign attribution like UTM parameters
clearbitObjectClearbit lookup results for the user
companyObjectAssociated company in Moesif (See Company Object)
last24HourAggResultsObjectRollup of user's API activity from last 24 hours
metadataObjectYour user metadata
userAgentObjectLast user agent details

Contains info for the associated company. Any company metadata set in Moesif is mapped to the Segment trait company.metadata

FieldTypeDescription
idStringUnique identifier for the company in Moesif
createdDateTime when company was created in Moesif
modifiedTimeDateTime when company was last modified
firstSeenTimeDateTime user was first seen on the API
lastSeenTimeDateTime user was last seen on the API
ipAddressStringCompany's last IP address
companyDomainStringCompany's website domain
ttfhw_sIntegerTime to First Hello World in seconds
metadataObjectYour company metadata

Now that your Source is set up, you can connect it with destinations.

Log into your downstream tools and check to see that your events are populating and they contains all the properties you expect. If all your events and properties are not showing up, refer to the Destination docs for troubleshooting.

If you experience any issues with how the events arrive in Segment, contact the Moesif team.