apideck.lead
Module apideck.lead
Definitions
ballerinax/apideck.lead Ballerina library
Overview
The Apideck Lead API v5.3.0 connector(https://www.apideck.com/lead-api) OpenAPI specification.
You can use this API to access all Lead API endpoints.
Key Features
- Programmatic access to create and manage resources via REST API
- Manage user accounts and profiles
- Secure authentication with API key or OAuth support
Prerequisites
Before using this connector in your Ballerina application, complete the following:
- Create a Apideck account
- Obtain tokens by following this guide
Clients
apideck.lead: Client
This is a generated connector from Apideck Lead API v5.3.0 OpenAPI specification. You can use this API to access all Lead API endpoints.
Constructor
Gets invoked to initialize the connector.
The connector initialization requires setting the API credentials.
Unify API accounts have sandbox mode and live mode API keys. To change modes just use the appropriate key to get a live or test object.
You can find your API keys on the unify settings of your Apideck app.Your Apideck application_id can also be found on the same page.
Obtain API keys following this guide.
init (ApiKeysConfig apiKeyConfig, ConnectionConfig config, string serviceUrl)- apiKeyConfig ApiKeysConfig - API keys for authorization
- config ConnectionConfig {} - The configurations to be used when initializing the
connector
- serviceUrl string "https://unify.apideck.com" - URL of the target service
leadsAll
function leadsAll(string xApideckConsumerId, string xApideckAppId, boolean raw, string? xApideckServiceId, string? cursor, int 'limit) returns InlineResponse200|errorList leads
Parameters
- xApideckConsumerId string - ID of the consumer which you want to get or push data from
- xApideckAppId string - The ID of your Unify application
- raw boolean (default true) - Include raw response. Mostly used for debugging purposes
- xApideckServiceId string? (default ()) - Provide the service id you want to call (e.g., pipedrive). See the full list in the connector section. Only needed when a consumer has activated multiple integrations for a Unified API.
- cursor string? (default ()) - Cursor to start from. You can find cursors for next/previous pages in the meta.cursors property of the response.
- 'limit int (default 20) - Number of records to return
Return Type
- InlineResponse200|error - Leads
leadsAdd
function leadsAdd(string xApideckConsumerId, string xApideckAppId, Lead payload, boolean raw, string? xApideckServiceId) returns InlineResponse201|errorCreate lead
Parameters
- xApideckConsumerId string - ID of the consumer which you want to get or push data from
- xApideckAppId string - The ID of your Unify application
- payload Lead - Lead information
- raw boolean (default true) - Include raw response. Mostly used for debugging purposes
- xApideckServiceId string? (default ()) - Provide the service id you want to call (e.g., pipedrive). See the full list in the connector section. Only needed when a consumer has activated multiple integrations for a Unified API.
Return Type
- InlineResponse201|error - Lead created
leadsOne
function leadsOne(string id, string xApideckConsumerId, string xApideckAppId, string? xApideckServiceId, boolean raw) returns InlineResponse2001|errorGet lead
Parameters
- id string - ID of the record you are acting upon.
- xApideckConsumerId string - ID of the consumer which you want to get or push data from
- xApideckAppId string - The ID of your Unify application
- xApideckServiceId string? (default ()) - Provide the service id you want to call (e.g., pipedrive). See the full list in the connector section. Only needed when a consumer has activated multiple integrations for a Unified API.
- raw boolean (default true) - Include raw response. Mostly used for debugging purposes
Return Type
- InlineResponse2001|error - Lead
leadsDelete
function leadsDelete(string id, string xApideckConsumerId, string xApideckAppId, string? xApideckServiceId, boolean raw) returns InlineResponse201|errorDelete lead
Parameters
- id string - ID of the record you are acting upon.
- xApideckConsumerId string - ID of the consumer which you want to get or push data from
- xApideckAppId string - The ID of your Unify application
- xApideckServiceId string? (default ()) - Provide the service id you want to call (e.g., pipedrive). See the full list in the connector section. Only needed when a consumer has activated multiple integrations for a Unified API.
- raw boolean (default true) - Include raw response. Mostly used for debugging purposes
Return Type
- InlineResponse201|error - Lead deleted
leadsUpdate
function leadsUpdate(string id, string xApideckConsumerId, string xApideckAppId, Lead payload, string? xApideckServiceId, boolean raw) returns InlineResponse201|errorUpdate lead
Parameters
- id string - ID of the record you are acting upon.
- xApideckConsumerId string - ID of the consumer which you want to get or push data from
- xApideckAppId string - The ID of your Unify application
- payload Lead - Lead information
- xApideckServiceId string? (default ()) - Provide the service id you want to call (e.g., pipedrive). See the full list in the connector section. Only needed when a consumer has activated multiple integrations for a Unified API.
- raw boolean (default true) - Include raw response. Mostly used for debugging purposes
Return Type
- InlineResponse201|error - Lead updated
Records
apideck.lead: Address
Fields
- id? string? - ID
- 'type? string - Address type
- 'string? string? - The address string. Some APIs don't provide structured address data.
- name? string? - Name
- line1? string? - Line 1 of the address e.g. number, street, suite, apt #, etc.
- line2? string? - Line 2 of the address
- city? string? - Name of city.
- state? string? - Name of state
- postal_code? string? - Zip code or equivalent.
- country? string? - country code according to ISO 3166-1 alpha-2.
- latitude? string? - Latitude
- longitude? string? - Longitude
apideck.lead: ApiKeysConfig
Provides API key configurations needed when communicating with a remote HTTP endpoint.
Fields
- authorization string - To use API you have to sign up and get your own API key. Unify API accounts have sandbox mode and live mode API keys.
To change modes just use the appropriate key to get a live or test object. You can find your API keys on the unify settings of your Apideck app.
Your Apideck application_id can also be found on the same page.
Authenticate your API requests by including your test or live secret API key in the request header.
- Bearer authorization header:
Authorization: Bearer <your-apideck-api-key> - Application id header:
x-apideck-app-id: <your-apideck-app-id>
- Bearer authorization header:
apideck.lead: BadRequest
Fields
- status_code? decimal - HTTP status code
- 'error? string - Contains an explanation of the status_code as defined in HTTP/1.1 standard (RFC 7231)
- type_name? string - The type of error returned
- message? string - A human-readable message providing more details about the error.
- detail? string|record {} - Contains parameter or domain specific information related to the error and why it occured.
- ref? string - Link to documentation of error type
apideck.lead: BankAccount
Fields
- iban? string? -
- bic? string? -
- bsb_number? string? - A BSB is a 6 digit numeric code used for identifying the branch of an Australian or New Zealand bank or financial institution.
- bank_code? string? - A bank code is a code assigned by a central bank, a bank supervisory body or a Bankers Association in a country to all its licensed member banks or financial institutions.
- account_number? string? - A bank account number is a number that is tied to your bank account. If you have several bank accounts, such as personal, joint, business (and so on), each account will have a different account number.
- account_name? string? - The name which you used in opening your bank account.
apideck.lead: ClientHttp1Settings
Provides settings related to HTTP/1.x protocol.
Fields
- keepAlive KeepAlive(default http:KEEPALIVE_AUTO) - Specifies whether to reuse a connection for multiple requests
- chunking Chunking(default http:CHUNKING_AUTO) - The chunking behaviour of the request
- proxy? ProxyConfig - Proxy server related options
apideck.lead: ConnectionConfig
Provides a set of configurations for controlling the behaviours when communicating with a remote HTTP endpoint.
Fields
- httpVersion HttpVersion(default http:HTTP_2_0) - The HTTP version understood by the client
- http1Settings? ClientHttp1Settings - Configurations related to HTTP/1.x protocol
- http2Settings? ClientHttp2Settings - Configurations related to HTTP/2 protocol
- timeout decimal(default 60) - The maximum time to wait (in seconds) for a response before closing the connection
- forwarded string(default "disable") - The choice of setting
forwarded/x-forwardedheader
- poolConfig? PoolConfiguration - Configurations associated with request pooling
- cache? CacheConfig - HTTP caching related configurations
- compression Compression(default http:COMPRESSION_AUTO) - Specifies the way of handling compression (
accept-encoding) header
- circuitBreaker? CircuitBreakerConfig - Configurations associated with the behaviour of the Circuit Breaker
- retryConfig? RetryConfig - Configurations associated with retrying
- responseLimits? ResponseLimitConfigs - Configurations associated with inbound response size limits
- secureSocket? ClientSecureSocket - SSL/TLS-related options
- proxy? ProxyConfig - Proxy server related options
- validation boolean(default true) - Enables the inbound payload validation functionality which provided by the constraint package. Enabled by default
apideck.lead: CustomField
Fields
- id string - ID
apideck.lead: Email
Fields
- id? string - ID
- email string - Email address
- 'type? string - Email type
apideck.lead: InlineResponse200
Fields
- status_code int - HTTP Response Status Code
- status string - HTTP Response Status
- 'service string - Apideck ID of service provider
- 'resource string - Unified API resource name
- operation string - Operation performed
- data Lead[] -
- meta? Meta - Reponse metadata
- links? Links - Links to navigate to previous or next pages through the API
apideck.lead: InlineResponse2001
Fields
- status_code int - HTTP Response Status Code
- status string - HTTP Response Status
- 'service string - Apideck ID of service provider
- 'resource string - Unified API resource name
- operation string - Operation performed
- data Lead -
apideck.lead: InlineResponse201
Fields
- status_code int - HTTP Response Status Code
- status string - HTTP Response Status
- 'service string - Apideck ID of service provider
- 'resource string - Unified API resource name
- operation string - Operation performed
- data UnifiedId -
apideck.lead: Lead
Fields
- id? string - Lead ID
- name string - Lead name
- company_name string? - Company name
- owner_id? string - Owner ID
- company_id? string? - Company ID
- contact_id? string? - Contact ID
- lead_source? string? - Lead source
- first_name? string? - First name
- last_name? string? - Last name
- description? string? - Lead description
- prefix? string? - Salutation
- title? string? - Title
- language? string? - language code according to ISO 639-1. For the United States - EN
- status? string? - Comapny status
- monetary_amount? decimal? - Monetory amount
- currency? string? - Currency
- fax? string? - Fax number
- websites? Website[] - Company websites
- addresses? Address[] - Company addresses
- social_links? SocialLink[] - Social links
- phone_numbers? PhoneNumber[] - Phone numbers
- emails? Email[] - Emails
- custom_fields? CustomField[] - Custom fields
- tags? Tags -
- updated_at? string - Updated date
- created_at? string - Created date
apideck.lead: Links
Links to navigate to previous or next pages through the API
Fields
- previous? string? - Link to navigate to the previous page through the API
- current? string - Link to navigate to the current page through the API
- next? string? - Link to navigate to the previous page through the API
apideck.lead: Meta
Reponse metadata
Fields
- items_on_page? int - Number of items returned in the data property of the response
- cursors? MetaCursors - Cursors to navigate to previous or next pages through the API
apideck.lead: MetaCursors
Cursors to navigate to previous or next pages through the API
Fields
- previous? string? - Cursor to navigate to the previous page of results through the API
- current? string? - Cursor to navigate to the current page of results through the API
- next? string? - Cursor to navigate to the next page of results through the API
apideck.lead: NotFoundResponse
Fields
- status_code? decimal - HTTP status code
- 'error? string - Contains an explanation of the status_code as defined in HTTP/1.1 standard (RFC 7231)
- type_name? string - The type of error returned
- message? string - A human-readable message providing more details about the error.
- detail? string|record {} - Contains parameter or domain specific information related to the error and why it occured.
- ref? string - Link to documentation of error type
apideck.lead: NotImplemented
Fields
- status_code? decimal - HTTP status code
- 'error? string - Contains an explanation of the status_code as defined in HTTP/1.1 standard (RFC 7231)
- type_name? string - The type of error returned
- message? string - A human-readable message providing more details about the error.
- detail? string|record {} - Contains parameter or domain specific information related to the error and why it occured.
- ref? string - Link to documentation of error type
apideck.lead: PaymentRequired
Fields
- status_code? decimal - HTTP status code
- 'error? string - Contains an explanation of the status_code as defined in HTTP/1.1 standard (RFC 7231)
- type_name? string - The type of error returned
- message? string - A human-readable message providing more details about the error.
- detail? string - Contains parameter or domain specific information related to the error and why it occured.
- ref? string - Link to documentation of error type
apideck.lead: PhoneNumber
Fields
- id? string? - ID
- number string - Phone number
- 'type? string - Type
apideck.lead: ProxyConfig
Proxy server configurations to be used with the HTTP client endpoint.
Fields
- host string(default "") - Host name of the proxy server
- port int(default 0) - Proxy server port
- userName string(default "") - Proxy server username
- password string(default "") - Proxy server password
apideck.lead: SocialLink
Fields
- id? string? - ID
- url string - Social link
- 'type? string? - Type
apideck.lead: Unauthorized
Fields
- status_code? decimal - HTTP status code
- 'error? string - Contains an explanation of the status_code as defined in HTTP/1.1 standard (RFC 7231)
- type_name? string - The type of error returned
- message? string - A human-readable message providing more details about the error.
- detail? string - Contains parameter or domain specific information related to the error and why it occured.
- ref? string - Link to documentation of error type
apideck.lead: UnexpectedError
Fields
- status_code? decimal - HTTP status code
- 'error? string - Contains an explanation of the status_code as defined in HTTP/1.1 standard (RFC 7231)
- type_name? string - The type of error returned
- message? string - A human-readable message providing more details about the error.
- detail? string|record {} - Contains parameter or domain specific information related to the error and why it occured.
- ref? string - Link to documentation of error type
apideck.lead: UnifiedId
Fields
- id string - Unified ID
apideck.lead: Unprocessable
Fields
- status_code? decimal - HTTP status code
- 'error? string - Contains an explanation of the status_code as defined in HTTP/1.1 standard (RFC 7231)
- type_name? string - The type of error returned
- message? string - A human-readable message providing more details about the error.
- detail? string - Contains parameter or domain specific information related to the error and why it occured.
- ref? string - Link to documentation of error type
apideck.lead: Website
Fields
- id? string? - ID
- url string - Website URL
- 'type? string - Type
Array types
apideck.lead: Tags
Tags
Import
import ballerinax/apideck.lead;Metadata
Released date: 3 days ago
Version: 1.5.2
License: Apache-2.0
Compatibility
Platform: any
Ballerina version: 2201.8.0
GraalVM compatible: Yes
Pull count
Total: 27
Current verison: 0
Weekly downloads
Keywords
Type/Connector
Vendor/Apideck
Area/CRM & Sales
Sales & CRM/Customer Relationship Management
Cost/Freemium
Contributors